2015-04-07 13:42:52 -05:00
|
|
|
// 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.
|
2015-04-08 03:35:50 -05:00
|
|
|
// Your control must call uiDarwinControlFree() on the returned uiControl in its -[dealloc] method.
|
|
|
|
extern uiControl *uiDarwinNewControl(Class class, BOOL inScrollView, BOOL scrollViewHasBorder);
|
|
|
|
extern void uiDarwinControlFree(uiControl *);
|
2015-04-07 13:42:52 -05:00
|
|
|
|
|
|
|
#endif
|