libui/ui_haiku.h

27 lines
640 B
C
Raw Permalink Normal View History

2020-01-12 21:48:28 -06:00
// 12 january 2020
/*
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;
void *(*Handle)(uiControl *c, void *implData);
2020-01-12 21:48:28 -06: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