From a013fe638412809fe3dd18f0231d68d1ce469d56 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 14:42:52 -0400 Subject: Added the uiDarwinControl logic. --- new/ui_darwin.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 new/ui_darwin.h (limited to 'new/ui_darwin.h') diff --git a/new/ui_darwin.h b/new/ui_darwin.h new file mode 100644 index 0000000..0e7afb2 --- /dev/null +++ b/new/ui_darwin.h @@ -0,0 +1,17 @@ +// 7 april 2015 + +/* +This file assumes that you have imported 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 -- cgit v1.2.3