68
61
GHOST_EventConsumerHandle GHOST_CreateEventConsumer(GHOST_EventCallbackProcPtr eventCallback,
69
62
GHOST_TUserDataPtr userdata)
71
return (GHOST_EventConsumerHandle) new GHOST_CallbackEventConsumer (eventCallback, userdata);
64
return (GHOST_EventConsumerHandle) new GHOST_CallbackEventConsumer(eventCallback, userdata);
75
68
GHOST_TSuccess GHOST_DisposeEventConsumer(GHOST_EventConsumerHandle consumerhandle)
77
delete ((GHOST_CallbackEventConsumer*)consumerhandle);
70
delete ((GHOST_CallbackEventConsumer *)consumerhandle);
78
71
return GHOST_kSuccess;
82
75
GHOST_TUns64 GHOST_GetMilliSeconds(GHOST_SystemHandle systemhandle)
84
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
77
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
86
79
return system->getMilliSeconds();
91
84
GHOST_TimerTaskHandle GHOST_InstallTimer(GHOST_SystemHandle systemhandle,
93
GHOST_TUns64 interval,
94
GHOST_TimerProcPtr timerproc,
95
GHOST_TUserDataPtr userdata)
86
GHOST_TUns64 interval,
87
GHOST_TimerProcPtr timerproc,
88
GHOST_TUserDataPtr userdata)
97
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
90
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
99
92
return (GHOST_TimerTaskHandle) system->installTimer(delay, interval, timerproc, userdata);
104
97
GHOST_TSuccess GHOST_RemoveTimer(GHOST_SystemHandle systemhandle,
105
GHOST_TimerTaskHandle timertaskhandle)
98
GHOST_TimerTaskHandle timertaskhandle)
107
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
108
GHOST_ITimerTask* timertask = (GHOST_ITimerTask*) timertaskhandle;
100
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
101
GHOST_ITimerTask *timertask = (GHOST_ITimerTask *) timertaskhandle;
110
103
return system->removeTimer(timertask);
124
117
void GHOST_GetMainDisplayDimensions(GHOST_SystemHandle systemhandle,
126
GHOST_TUns32* height)
119
GHOST_TUns32 *height)
128
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
121
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
130
123
system->getMainDisplayDimensions(*width, *height);
126
void GHOST_GetAllDisplayDimensions(GHOST_SystemHandle systemhandle,
128
GHOST_TUns32 *height)
130
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
132
system->getAllDisplayDimensions(*width, *height);
135
135
GHOST_WindowHandle GHOST_CreateWindow(GHOST_SystemHandle systemhandle,
141
GHOST_TWindowState state,
142
GHOST_TDrawingContextType type,
143
const int stereoVisual,
144
const GHOST_TUns16 numOfAASamples)
141
GHOST_TWindowState state,
142
GHOST_TDrawingContextType type,
143
const int stereoVisual,
144
const GHOST_TUns16 numOfAASamples)
146
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
146
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
147
147
bool bstereoVisual;
150
150
bstereoVisual = true;
152
152
bstereoVisual = false;
154
154
return (GHOST_WindowHandle) system->createWindow(title, left, top, width, height,
155
state, type, bstereoVisual, numOfAASamples);
155
state, type, bstereoVisual, numOfAASamples);
158
158
GHOST_TUserDataPtr GHOST_GetWindowUserData(GHOST_WindowHandle windowhandle)
160
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
160
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
162
162
return window->getUserData();
164
164
void GHOST_SetWindowUserData(GHOST_WindowHandle windowhandle, GHOST_TUserDataPtr userdata)
166
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
166
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
168
168
window->setUserData(userdata);
171
171
GHOST_TSuccess GHOST_DisposeWindow(GHOST_SystemHandle systemhandle,
172
GHOST_WindowHandle windowhandle)
172
GHOST_WindowHandle windowhandle)
174
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
175
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
174
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
175
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
177
177
return system->disposeWindow(window);
182
182
int GHOST_ValidWindow(GHOST_SystemHandle systemhandle,
183
GHOST_WindowHandle windowhandle)
183
GHOST_WindowHandle windowhandle)
185
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
186
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
185
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
186
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
188
188
return (int) system->validWindow(window);
193
193
GHOST_WindowHandle GHOST_BeginFullScreen(GHOST_SystemHandle systemhandle,
194
GHOST_DisplaySetting* setting,
195
const int stereoVisual)
194
GHOST_DisplaySetting *setting,
195
const int stereoVisual)
197
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
198
GHOST_IWindow* window = NULL;
197
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
198
GHOST_IWindow *window = NULL;
199
199
bool bstereoVisual;
202
202
bstereoVisual = true;
204
204
bstereoVisual = false;
231
231
int GHOST_ProcessEvents(GHOST_SystemHandle systemhandle, int waitForEvent)
233
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
233
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
235
return (int) system->processEvents(waitForEvent?true:false);
235
return (int) system->processEvents(waitForEvent ? true : false);
240
240
int GHOST_DispatchEvents(GHOST_SystemHandle systemhandle)
242
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
242
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
244
244
return (int) system->dispatchEvents();
248
248
GHOST_TSuccess GHOST_AddEventConsumer(GHOST_SystemHandle systemhandle, GHOST_EventConsumerHandle consumerhandle)
250
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
250
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
252
return system->addEventConsumer((GHOST_CallbackEventConsumer*)consumerhandle);
252
return system->addEventConsumer((GHOST_CallbackEventConsumer *)consumerhandle);
255
255
GHOST_TSuccess GHOST_RemoveEventConsumer(GHOST_SystemHandle systemhandle, GHOST_EventConsumerHandle consumerhandle)
257
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
257
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
259
return system->removeEventConsumer((GHOST_CallbackEventConsumer*)consumerhandle);
259
return system->removeEventConsumer((GHOST_CallbackEventConsumer *)consumerhandle);
262
GHOST_TSuccess GHOST_SetProgressBar(GHOST_WindowHandle windowhandle,float progress)
262
GHOST_TSuccess GHOST_SetProgressBar(GHOST_WindowHandle windowhandle, float progress)
264
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
264
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
266
266
return window->setProgressBar(progress);
269
269
GHOST_TSuccess GHOST_EndProgressBar(GHOST_WindowHandle windowhandle)
271
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
271
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
273
273
return window->endProgressBar();
286
286
GHOST_TSuccess GHOST_SetCursorShape(GHOST_WindowHandle windowhandle,
287
GHOST_TStandardCursor cursorshape)
287
GHOST_TStandardCursor cursorshape)
289
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
289
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
291
291
return window->setCursorShape(cursorshape);
294
294
GHOST_TSuccess GHOST_SetCustomCursorShape(GHOST_WindowHandle windowhandle,
295
GHOST_TUns8 bitmap[16][2],
296
GHOST_TUns8 mask[16][2],
295
GHOST_TUns8 bitmap[16][2],
296
GHOST_TUns8 mask[16][2],
300
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
300
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
302
302
return window->setCustomCursorShape(bitmap, mask, hotX, hotY);
305
305
GHOST_TSuccess GHOST_SetCustomCursorShapeEx(GHOST_WindowHandle windowhandle,
315
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
315
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
317
return window->setCustomCursorShape(bitmap, mask, sizex, sizey,
318
hotX, hotY, fg_color, bg_color);
317
return window->setCustomCursorShape(bitmap, mask, sizex, sizey,
318
hotX, hotY, fg_color, bg_color);
323
323
int GHOST_GetCursorVisibility(GHOST_WindowHandle windowhandle)
325
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
325
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
327
327
return (int) window->getCursorVisibility();
332
332
GHOST_TSuccess GHOST_SetCursorVisibility(GHOST_WindowHandle windowhandle,
335
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
335
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
337
return window->setCursorVisibility(visible?true:false);
337
return window->setCursorVisibility(visible ? true : false);
342
342
GHOST_TSuccess GHOST_GetCursorPosition(GHOST_SystemHandle systemhandle,
346
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
346
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
348
348
return system->getCursorPosition(*x, *y);
353
353
GHOST_TSuccess GHOST_SetCursorPosition(GHOST_SystemHandle systemhandle,
357
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
357
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
359
359
return system->setCursorPosition(x, y);
363
363
GHOST_TSuccess GHOST_SetCursorGrab(GHOST_WindowHandle windowhandle,
364
GHOST_TGrabCursorMode mode,
364
GHOST_TGrabCursorMode mode,
365
int bounds[4], int mouse_ungrab_xy[2])
367
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
367
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
368
368
GHOST_Rect bounds_rect, bounds_win;
369
GHOST_TInt32 mouse_ungrab_xy_global[2];
371
372
/* if this is X11 specific we need a function that converts */
372
373
window->getClientBounds(bounds_win);
373
374
window->clientToScreen(bounds[0], bounds_win.getHeight() - bounds[1], bounds_rect.m_l, bounds_rect.m_t);
378
return window->setCursorGrab(mode, bounds ? &bounds_rect:NULL);
379
if (mouse_ungrab_xy) {
381
window->getClientBounds(bounds_win);
382
window->clientToScreen(mouse_ungrab_xy[0], bounds_win.getHeight() - mouse_ungrab_xy[1],
383
mouse_ungrab_xy_global[0], mouse_ungrab_xy_global[1]);
386
return window->setCursorGrab(mode,
387
bounds ? &bounds_rect : NULL,
388
mouse_ungrab_xy ? mouse_ungrab_xy_global : NULL);
382
392
GHOST_TSuccess GHOST_GetModifierKeyState(GHOST_SystemHandle systemhandle,
383
GHOST_TModifierKeyMask mask,
393
GHOST_TModifierKeyMask mask,
386
GHOST_ISystem* system = (GHOST_ISystem*) systemhandle;
396
GHOST_ISystem *system = (GHOST_ISystem *) systemhandle;
387
397
GHOST_TSuccess result;
390
400
result = system->getModifierKeyState(mask, isdown);
391
401
*isDown = (int) isdown;
464
474
void GHOST_SetTimerProc(GHOST_TimerTaskHandle timertaskhandle,
465
GHOST_TimerProcPtr timerproc)
475
GHOST_TimerProcPtr timerproc)
467
GHOST_ITimerTask* timertask = (GHOST_ITimerTask*) timertaskhandle;
477
GHOST_ITimerTask *timertask = (GHOST_ITimerTask *) timertaskhandle;
469
479
timertask->setTimerProc(timerproc);
474
484
GHOST_TUserDataPtr GHOST_GetTimerTaskUserData(GHOST_TimerTaskHandle timertaskhandle)
476
GHOST_ITimerTask* timertask = (GHOST_ITimerTask*) timertaskhandle;
486
GHOST_ITimerTask *timertask = (GHOST_ITimerTask *) timertaskhandle;
478
488
return timertask->getUserData();
483
493
void GHOST_SetTimerTaskUserData(GHOST_TimerTaskHandle timertaskhandle,
484
GHOST_TUserDataPtr userdata)
494
GHOST_TUserDataPtr userdata)
486
GHOST_ITimerTask* timertask = (GHOST_ITimerTask*) timertaskhandle;
496
GHOST_ITimerTask *timertask = (GHOST_ITimerTask *) timertaskhandle;
488
498
timertask->setUserData(userdata);
511
521
GHOST_TSuccess GHOST_SetDrawingContextType(GHOST_WindowHandle windowhandle,
512
GHOST_TDrawingContextType type)
522
GHOST_TDrawingContextType type)
514
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
524
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
516
526
return window->setDrawingContextType(type);
521
531
void GHOST_SetTitle(GHOST_WindowHandle windowhandle,
524
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
534
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
526
536
window->setTitle(title);
530
char* GHOST_GetTitle(GHOST_WindowHandle windowhandle)
540
char *GHOST_GetTitle(GHOST_WindowHandle windowhandle)
532
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
542
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
533
543
STR_String title;
535
545
window->getTitle(title);
537
char *ctitle = (char*) malloc(title.Length() + 1);
539
if (ctitle == NULL) return NULL;
547
char *ctitle = (char *) malloc(title.Length() + 1);
549
if (ctitle == NULL) {
540
553
strcpy(ctitle, title.Ptr());
547
560
GHOST_RectangleHandle GHOST_GetWindowBounds(GHOST_WindowHandle windowhandle)
549
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
550
GHOST_Rect* rectangle = NULL;
562
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
563
GHOST_Rect *rectangle = NULL;
552
565
rectangle = new GHOST_Rect();
553
566
window->getWindowBounds(*rectangle);
560
573
GHOST_RectangleHandle GHOST_GetClientBounds(GHOST_WindowHandle windowhandle)
562
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
563
GHOST_Rect* rectangle = NULL;
575
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
576
GHOST_Rect *rectangle = NULL;
565
578
rectangle = new GHOST_Rect();
566
579
window->getClientBounds(*rectangle);
573
586
void GHOST_DisposeRectangle(GHOST_RectangleHandle rectanglehandle)
575
delete (GHOST_Rect*) rectanglehandle;
588
delete (GHOST_Rect *) rectanglehandle;
580
593
GHOST_TSuccess GHOST_SetClientWidth(GHOST_WindowHandle windowhandle,
583
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
596
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
585
598
return window->setClientWidth(width);
611
624
void GHOST_ScreenToClient(GHOST_WindowHandle windowhandle,
617
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
630
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
619
632
window->screenToClient(inX, inY, *outX, *outY);
624
637
void GHOST_ClientToScreen(GHOST_WindowHandle windowhandle,
630
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
643
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
632
645
window->clientToScreen(inX, inY, *outX, *outY);
646
659
GHOST_TSuccess GHOST_SetWindowState(GHOST_WindowHandle windowhandle,
647
GHOST_TWindowState state)
660
GHOST_TWindowState state)
649
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
662
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
651
664
return window->setState(state);
655
668
GHOST_TSuccess GHOST_SetWindowModifiedState(GHOST_WindowHandle windowhandle, GHOST_TUns8 isUnsavedChanges)
657
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
670
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
659
672
return window->setModifiedState(isUnsavedChanges);
663
676
GHOST_TSuccess GHOST_SetWindowOrder(GHOST_WindowHandle windowhandle,
664
GHOST_TWindowOrder order)
677
GHOST_TWindowOrder order)
666
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
679
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
668
681
return window->setOrder(order);
691
704
GHOST_TSuccess GHOST_InvalidateWindow(GHOST_WindowHandle windowhandle)
693
GHOST_IWindow* window = (GHOST_IWindow*) windowhandle;
706
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
695
708
return window->invalidate();
699
extern const GHOST_TabletData* GHOST_GetTabletData(GHOST_WindowHandle windowhandle)
712
extern const GHOST_TabletData *GHOST_GetTabletData(GHOST_WindowHandle windowhandle)
701
return ((GHOST_IWindow*)windowhandle)->GetTabletData();
714
return ((GHOST_IWindow *)windowhandle)->GetTabletData();
705
718
GHOST_TInt32 GHOST_GetWidthRectangle(GHOST_RectangleHandle rectanglehandle)
707
return ((GHOST_Rect*)rectanglehandle)->getWidth();
720
return ((GHOST_Rect *)rectanglehandle)->getWidth();
712
725
GHOST_TInt32 GHOST_GetHeightRectangle(GHOST_RectangleHandle rectanglehandle)
714
return ((GHOST_Rect*)rectanglehandle)->getHeight();
727
return ((GHOST_Rect *)rectanglehandle)->getHeight();
719
732
void GHOST_GetRectangle(GHOST_RectangleHandle rectanglehandle,
725
GHOST_Rect *rect= (GHOST_Rect*) rectanglehandle;
738
GHOST_Rect *rect = (GHOST_Rect *) rectanglehandle;
734
747
void GHOST_SetRectangle(GHOST_RectangleHandle rectanglehandle,
740
((GHOST_Rect*)rectanglehandle)->set(l, t, r, b);
753
((GHOST_Rect *)rectanglehandle)->set(l, t, r, b);
769
782
void GHOST_InsetRectangle(GHOST_RectangleHandle rectanglehandle,
772
((GHOST_Rect*)rectanglehandle)->inset(i);
785
((GHOST_Rect *)rectanglehandle)->inset(i);
777
790
void GHOST_UnionRectangle(GHOST_RectangleHandle rectanglehandle,
778
GHOST_RectangleHandle anotherrectanglehandle)
791
GHOST_RectangleHandle anotherrectanglehandle)
780
((GHOST_Rect*)rectanglehandle)->unionRect(*(GHOST_Rect*)anotherrectanglehandle);
793
((GHOST_Rect *)rectanglehandle)->unionRect(*(GHOST_Rect *)anotherrectanglehandle);
785
798
void GHOST_UnionPointRectangle(GHOST_RectangleHandle rectanglehandle,
789
((GHOST_Rect*)rectanglehandle)->unionPoint(x, y);
802
((GHOST_Rect *)rectanglehandle)->unionPoint(x, y);
794
807
GHOST_TSuccess GHOST_IsInsideRectangle(GHOST_RectangleHandle rectanglehandle,
798
811
GHOST_TSuccess result = GHOST_kFailure;
800
if (((GHOST_Rect*)rectanglehandle)->isInside(x, y))
813
if (((GHOST_Rect *)rectanglehandle)->isInside(x, y))
801
814
result = GHOST_kSuccess;
808
821
GHOST_TVisibility GHOST_GetRectangleVisibility(GHOST_RectangleHandle rectanglehandle,
809
GHOST_RectangleHandle anotherrectanglehandle)
822
GHOST_RectangleHandle anotherrectanglehandle)
811
824
GHOST_TVisibility visible = GHOST_kNotVisible;
813
visible = ((GHOST_Rect*)rectanglehandle)->getVisibility(*(GHOST_Rect*)anotherrectanglehandle);
826
visible = ((GHOST_Rect *)rectanglehandle)->getVisibility(*(GHOST_Rect *)anotherrectanglehandle);
820
833
void GHOST_SetCenterRectangle(GHOST_RectangleHandle rectanglehandle,
824
((GHOST_Rect*)rectanglehandle)->setCenter(cx, cy);
837
((GHOST_Rect *)rectanglehandle)->setCenter(cx, cy);
829
842
void GHOST_SetRectangleCenter(GHOST_RectangleHandle rectanglehandle,
835
((GHOST_Rect*)rectanglehandle)->setCenter(cx, cy, w, h);
848
((GHOST_Rect *)rectanglehandle)->setCenter(cx, cy, w, h);
840
853
GHOST_TSuccess GHOST_ClipRectangle(GHOST_RectangleHandle rectanglehandle,
841
GHOST_RectangleHandle anotherrectanglehandle)
854
GHOST_RectangleHandle anotherrectanglehandle)
843
856
GHOST_TSuccess result = GHOST_kFailure;
845
if (((GHOST_Rect*)rectanglehandle)->clip(*(GHOST_Rect*)anotherrectanglehandle))
858
if (((GHOST_Rect *)rectanglehandle)->clip(*(GHOST_Rect *)anotherrectanglehandle))
846
859
result = GHOST_kSuccess;
851
GHOST_TUns8* GHOST_getClipboard(int selection)
864
GHOST_TUns8 *GHOST_getClipboard(int selection)
853
GHOST_ISystem* system = GHOST_ISystem::getSystem();
866
GHOST_ISystem *system = GHOST_ISystem::getSystem();
854
867
return system->getClipboard(selection);
857
870
void GHOST_putClipboard(GHOST_TInt8 *buffer, int selection)
859
GHOST_ISystem* system = GHOST_ISystem::getSystem();
872
GHOST_ISystem *system = GHOST_ISystem::getSystem();
860
873
system->putClipboard(buffer, selection);
863
876
int GHOST_toggleConsole(int action)
865
GHOST_ISystem* system = GHOST_ISystem::getSystem();
878
GHOST_ISystem *system = GHOST_ISystem::getSystem();
866
879
return system->toggleConsole(action);
870
int GHOST_confirmQuit(GHOST_WindowHandle windowhandle){
871
GHOST_ISystem* system = GHOST_ISystem::getSystem();
872
return system->confirmQuit((GHOST_IWindow*) windowhandle);
883
int GHOST_confirmQuit(GHOST_WindowHandle windowhandle)
885
GHOST_ISystem *system = GHOST_ISystem::getSystem();
886
return system->confirmQuit((GHOST_IWindow *) windowhandle);
889
int GHOST_UseNativePixels(void)
891
GHOST_ISystem *system = GHOST_ISystem::getSystem();
892
return system->useNativePixel();
895
float GHOST_GetNativePixelSize(GHOST_WindowHandle windowhandle)
897
GHOST_IWindow *window = (GHOST_IWindow *) windowhandle;
899
return window->getNativePixelSize();