|
Blender V4.3
|
#include <GHOST_SystemSDL.hh>
Inherits GHOST_System.
Definition at line 29 of file GHOST_SystemSDL.hh.
| GHOST_SystemSDL::GHOST_SystemSDL | ( | ) |
Definition at line 23 of file GHOST_SystemSDL.cc.
| GHOST_SystemSDL::~GHOST_SystemSDL | ( | ) |
Definition at line 36 of file GHOST_SystemSDL.cc.
| void GHOST_SystemSDL::addDirtyWindow | ( | GHOST_WindowSDL * | bad_wind | ) |
Definition at line 765 of file GHOST_SystemSDL.cc.
References GHOST_ASSERT.
Referenced by GHOST_WindowSDL::invalidate().
|
overridevirtual |
Create a new off-screen context. Never explicitly delete the context, use disposeContext() instead.
Implements GHOST_System.
Definition at line 136 of file GHOST_SystemSDL.cc.
References GHOST_GPUSettings::context_type, GHOST_OPENGL_SDL_CONTEXT_FLAGS, and GHOST_OPENGL_SDL_RESET_NOTIFICATION_STRATEGY.
|
overridevirtual |
Dispose of a context.
| context | Pointer to the context to be disposed. |
Implements GHOST_ISystem.
Definition at line 166 of file GHOST_SystemSDL.cc.
References GHOST_kSuccess.
|
overridevirtual |
Returns the dimensions of the main display on this system.
Implements GHOST_ISystem.
Definition at line 109 of file GHOST_SystemSDL.cc.
|
overridevirtual |
Returns the state of the mouse buttons (outside the message queue).
| buttons | The state of the buttons. |
Implements GHOST_System.
Definition at line 772 of file GHOST_SystemSDL.cc.
References GHOST_kButtonMaskLeft, GHOST_kButtonMaskMiddle, GHOST_kButtonMaskRight, GHOST_kSuccess, GHOST_Buttons::set(), and state.
|
overridevirtual |
Return features supported by the system back-end.
The resulting value doesn't change at run-time.
Implements GHOST_ISystem.
Definition at line 782 of file GHOST_SystemSDL.cc.
References GHOST_CAPABILITY_FLAG_ALL, GHOST_kCapabilityClipboardImages, GHOST_kCapabilityDesktopSample, GHOST_kCapabilityInputIME, and GHOST_kCapabilityPrimaryClipboard.
|
overridevirtual |
Returns the selection buffer
| selection | Only used on X11. |
Implements GHOST_System.
Definition at line 797 of file GHOST_SystemSDL.cc.
|
overridevirtual |
Returns the current location of the cursor (location in screen coordinates)
| x | The x-coordinate of the cursor. |
| y | The y-coordinate of the cursor. |
Implements GHOST_ISystem.
Definition at line 648 of file GHOST_SystemSDL.cc.
References GHOST_kSuccess.
|
overridevirtual |
Returns the dimensions of the main display on this system.
Implements GHOST_ISystem.
Definition at line 120 of file GHOST_SystemSDL.cc.
|
overridevirtual |
Returns the system time. Returns the number of milliseconds since the start of the system.
Implements GHOST_ISystem.
Definition at line 807 of file GHOST_SystemSDL.cc.
Referenced by processEvents().
|
overridevirtual |
Returns the state of all modifier keys.
| keys | The state of all modifier keys (true == pressed). |
Implements GHOST_System.
Definition at line 173 of file GHOST_SystemSDL.cc.
References GHOST_kModifierKeyLeftAlt, GHOST_kModifierKeyLeftControl, GHOST_kModifierKeyLeftOS, GHOST_kModifierKeyLeftShift, GHOST_kModifierKeyRightAlt, GHOST_kModifierKeyRightControl, GHOST_kModifierKeyRightOS, GHOST_kModifierKeyRightShift, GHOST_kSuccess, mod(), and GHOST_ModifierKeys::set().
|
overridevirtual |
Returns the number of displays on this system.
Implements GHOST_ISystem.
Definition at line 131 of file GHOST_SystemSDL.cc.
|
overridevirtual |
Retrieves events from the system and stores them in the queue.
| waitForEvent | Flag to wait for an event (or return immediately). |
Implements GHOST_ISystem.
Definition at line 696 of file GHOST_SystemSDL.cc.
References GHOST_TimerManager::fireTimers(), getMilliSeconds(), GHOST_System::getTimerManager(), GHOST_kFireTimeNever, next, and GHOST_TimerManager::nextFireTime().
|
overridevirtual |
Put data to the Clipboard
| buffer | The buffer to copy to the clipboard. |
| selection | The clipboard to copy too only used on X11. |
Implements GHOST_System.
Definition at line 802 of file GHOST_SystemSDL.cc.
|
inlineoverridevirtual |
Set the Console State
| action | console state |
Implements GHOST_ISystem.
Definition at line 38 of file GHOST_SystemSDL.hh.
|
overridevirtual |
Updates the location of the cursor (location in screen coordinates). Not all operating systems allow the cursor to be moved (without the input device being moved).
| x | The x-coordinate of the cursor. |
| y | The y-coordinate of the cursor. |
Implements GHOST_ISystem.
Definition at line 662 of file GHOST_SystemSDL.cc.
References GHOST_kSuccess.