|
Blender V5.0
|
#include <GHOST_SystemSDL.hh>
Inherits GHOST_System.
Definition at line 28 of file GHOST_SystemSDL.hh.
| GHOST_SystemSDL::GHOST_SystemSDL | ( | ) |
Definition at line 23 of file GHOST_SystemSDL.cc.
References GHOST_System::GHOST_System().
| GHOST_SystemSDL::~GHOST_SystemSDL | ( | ) |
Definition at line 36 of file GHOST_SystemSDL.cc.
| void GHOST_SystemSDL::addDirtyWindow | ( | GHOST_WindowSDL * | bad_wind | ) |
Definition at line 771 of file GHOST_SystemSDL.cc.
References GHOST_ASSERT.
|
overridevirtual |
Create a new off-screen context. Never explicitly delete the context, use disposeContext() instead.
Implements GHOST_System.
Definition at line 134 of file GHOST_SystemSDL.cc.
References GHOST_GPUSettings::context_type, GHOST_CONTEXT_PARAMS_FROM_GPU_SETTINGS_OFFSCREEN, 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 167 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 107 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 778 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 788 of file GHOST_SystemSDL.cc.
References GHOST_CAPABILITY_FLAG_ALL, GHOST_kCapabilityClipboardImage, GHOST_kCapabilityClipboardPrimary, GHOST_kCapabilityCursorGenerator, GHOST_kCapabilityCursorRGBA, GHOST_kCapabilityDesktopSample, GHOST_kCapabilityInputIME, GHOST_kCapabilityKeyboardHyperKey, GHOST_kCapabilityMultiMonitorPlacement, and GHOST_kCapabilityWindowDecorationStyles.
|
overridevirtual |
Return the clipboard buffer or null.
| selection | Use the "primary" selection. Check the GHOST_kCapabilityClipboardPrimary for backends that support this. |
Implements GHOST_System.
Definition at line 814 of file GHOST_SystemSDL.cc.
|
overridevirtual |
Returns the current location of the cursor (location in screen coordinates)
Implements GHOST_ISystem.
Definition at line 654 of file GHOST_SystemSDL.cc.
References GHOST_kSuccess, x, and y.
|
overridevirtual |
Returns the dimensions of the main display on this system.
Implements GHOST_ISystem.
Definition at line 118 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 824 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 174 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 129 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 702 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 819 of file GHOST_SystemSDL.cc.
|
inlineoverridevirtual |
Set the Console State
| action | console state |
Implements GHOST_ISystem.
Definition at line 37 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).
Implements GHOST_ISystem.
Definition at line 668 of file GHOST_SystemSDL.cc.
References GHOST_kSuccess, x, and y.