Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_C-api.cpp
| Show First 20 Lines • Show All 744 Lines • ▼ Show 20 Lines | |||||
| GHOST_TSuccess GHOST_InvalidateWindow(GHOST_WindowHandle windowhandle) | GHOST_TSuccess GHOST_InvalidateWindow(GHOST_WindowHandle windowhandle) | ||||
| { | { | ||||
| GHOST_IWindow *window = (GHOST_IWindow *) windowhandle; | GHOST_IWindow *window = (GHOST_IWindow *) windowhandle; | ||||
| return window->invalidate(); | return window->invalidate(); | ||||
| } | } | ||||
| void GHOST_SetTabletAPI(GHOST_SystemHandle systemhandle, GHOST_TTabletAPI api) | |||||
| { | |||||
| GHOST_ISystem *system = (GHOST_ISystem *) systemhandle; | |||||
| system->setTabletAPI(api); | |||||
| } | |||||
| extern const GHOST_TabletData *GHOST_GetTabletData(GHOST_WindowHandle windowhandle) | const GHOST_TabletData *GHOST_GetTabletData(GHOST_WindowHandle windowhandle) | ||||
| { | { | ||||
| return ((GHOST_IWindow *)windowhandle)->GetTabletData(); | return ((GHOST_IWindow *)windowhandle)->GetTabletData(); | ||||
| } | } | ||||
| GHOST_TInt32 GHOST_GetWidthRectangle(GHOST_RectangleHandle rectanglehandle) | GHOST_TInt32 GHOST_GetWidthRectangle(GHOST_RectangleHandle rectanglehandle) | ||||
| { | { | ||||
| return ((GHOST_Rect *)rectanglehandle)->getWidth(); | return ((GHOST_Rect *)rectanglehandle)->getWidth(); | ||||
| ▲ Show 20 Lines • Show All 217 Lines • Show Last 20 Lines | |||||