2015-08-16 19:56:39 -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.
|
|
|
|
*/
|
|
|
|
|
2019-04-08 19:55:06 -05:00
|
|
|
#ifndef uiprivIncludeGuard_ui_darwin_h
|
|
|
|
#define uiprivIncludeGuard_ui_darwin_h
|
2015-08-16 19:56:39 -05:00
|
|
|
|
2015-11-16 09:55:44 -06:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-06-09 20:16:13 -05:00
|
|
|
struct uiControlOSVtable {
|
|
|
|
size_t Size;
|
2020-05-25 21:13:48 -05:00
|
|
|
id (*Handle)(uiControl *c, void *implData);
|
|
|
|
// TODO provide events for handle creation and destruction
|
2019-06-09 20:16:13 -05:00
|
|
|
};
|
|
|
|
|
2020-05-25 21:13:48 -05:00
|
|
|
uiprivExtern id uiDarwinControlHandle(uiControl *c);
|
|
|
|
|
2015-11-16 09:55:44 -06:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-08-16 19:56:39 -05:00
|
|
|
#endif
|