2020-01-12 21:48:28 -06:00
|
|
|
// 12 january 2020
|
|
|
|
|
|
|
|
/*
|
2020-05-31 18:00:03 -05:00
|
|
|
This file assumes that you have included TODO_insert_appropriate_Haiku_headers and "ui.h" beforehand. It provides API-specific functions for interfacing with foreign controls in Haiku.
|
2020-01-12 21:48:28 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef uiprivIncludeGuard_ui_haiku_h
|
|
|
|
#define uiprivIncludeGuard_ui_haiku_h
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct uiControlOSVtable {
|
|
|
|
size_t Size;
|
2020-05-31 18:00:03 -05:00
|
|
|
void *(*Handle)(uiControl *c, void *implData);
|
2020-01-12 21:48:28 -06:00
|
|
|
};
|
|
|
|
|
2020-05-31 18:00:03 -05:00
|
|
|
// TODO return BHandler instead? and NSResponder on Darwin? this depends on how the implementation of this pans out over time
|
|
|
|
uiprivExtern void *uiHaikuControlHandle(uiControl *c);
|
|
|
|
|
2020-01-12 21:48:28 -06:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|