summaryrefslogtreecommitdiff
path: root/new/ui_darwin.h
blob: 0e7afb2a4e0a4e993ffc607f84b5664cae7d972b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 7 april 2015

/*
This file assumes that you have imported <Cocoa/Cocoa.h> and "ui.h" beforehand. It provides API-specific functions for interfacing with foreign controls on Mac OS X.
*/

#ifndef __UI_UI_DARWIN_H__
#define __UI_UI_DARWIN_H__

// uiDarwinNewControl() creates a new uiControl with the given Cocoa control inside.
// The first parameter should come from [RealControlType class].
// The two scrollView parameters allow placing scrollbars on the new control.
// The data parameter can be accessed with uiDarwinControlData().
extern uiControl *uiDarwinNewControl(Class class, gboolean inScrollView, gboolean scrollViewHasBorder, void *data);
extern void *uiDarwinControlData(uiControl *c);

#endif