libui/ui_windows.h

32 lines
857 B
C
Raw Normal View History

// 21 april 2016
/*
This file assumes that you have included <windows.h> and "ui.h" beforehand. It provides API-specific functions for interfacing with foreign controls in Windows.
*/
#ifndef uiprivIncludeGuard_ui_windows_h
#define uiprivIncludeGuard_ui_windows_h
2015-11-16 09:55:44 -06:00
#ifdef __cplusplus
extern "C" {
#endif
struct uiControlOSVtable {
size_t Size;
HWND (*Handle)(uiControl *c, void *implData);
HWND (*ParentHandleForChild)(uiControl *c, void *implData, uiControl *child);
2022-07-29 22:53:25 -05:00
HRESULT (*SetControlPos)(uiControl *c, void *implData, const RECT *r);
};
uiprivExtern HWND uiWindowsControlHandle(uiControl *c);
uiprivExtern HWND uiWindowsControlParentHandle(uiControl *c);
2022-07-29 22:53:25 -05:00
uiprivExtern HRESULT uiWindowsSetControlPos(uiControl *c, const RECT *r);
uiprivExtern HRESULT uiWindowsSetControlHandlePos(HWND hwnd, const RECT *r);
2015-11-16 09:55:44 -06:00
#ifdef __cplusplus
}
#endif
#endif