Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_C-api.cpp
| Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | |||||
| int GHOST_GetFullScreen(GHOST_SystemHandle systemhandle) | int GHOST_GetFullScreen(GHOST_SystemHandle systemhandle) | ||||
| { | { | ||||
| GHOST_ISystem *system = (GHOST_ISystem *)systemhandle; | GHOST_ISystem *system = (GHOST_ISystem *)systemhandle; | ||||
| return (int)system->getFullScreen(); | return (int)system->getFullScreen(); | ||||
| } | } | ||||
| GHOST_WindowHandle GHOST_GetWindowUnderCursor(GHOST_SystemHandle systemhandle, | |||||
| int32_t x, | |||||
| int32_t y, | |||||
| const GHOST_WindowHandle below_window) | |||||
| { | |||||
| GHOST_ISystem *system = (GHOST_ISystem *)systemhandle; | |||||
| GHOST_IWindow *window = system->getWindowUnderCursor(x, y, (const GHOST_IWindow *)below_window); | |||||
| return (GHOST_WindowHandle)window; | |||||
| } | |||||
| bool GHOST_ProcessEvents(GHOST_SystemHandle systemhandle, bool waitForEvent) | bool GHOST_ProcessEvents(GHOST_SystemHandle systemhandle, bool waitForEvent) | ||||
| { | { | ||||
| GHOST_ISystem *system = (GHOST_ISystem *)systemhandle; | GHOST_ISystem *system = (GHOST_ISystem *)systemhandle; | ||||
| return system->processEvents(waitForEvent); | return system->processEvents(waitForEvent); | ||||
| } | } | ||||
| void GHOST_DispatchEvents(GHOST_SystemHandle systemhandle) | void GHOST_DispatchEvents(GHOST_SystemHandle systemhandle) | ||||
| ▲ Show 20 Lines • Show All 848 Lines • Show Last 20 Lines | |||||