Blender
V3.3
|
#include <GHOST_SystemSDL.h>
Definition at line 27 of file GHOST_SystemSDL.h.
GHOST_SystemSDL::GHOST_SystemSDL | ( | ) |
Definition at line 20 of file GHOST_SystemSDL.cpp.
GHOST_SystemSDL::~GHOST_SystemSDL | ( | ) |
Definition at line 33 of file GHOST_SystemSDL.cpp.
void GHOST_SystemSDL::addDirtyWindow | ( | GHOST_WindowSDL * | bad_wind | ) |
Definition at line 736 of file GHOST_SystemSDL.cpp.
References GHOST_ASSERT.
Referenced by GHOST_WindowSDL::invalidate().
|
virtual |
Create a new off-screen context. Never explicitly delete the context, use disposeContext() instead.
Implements GHOST_System.
Definition at line 128 of file GHOST_SystemSDL.cpp.
References blender::compositor::context, GHOST_OPENGL_SDL_CONTEXT_FLAGS, and GHOST_OPENGL_SDL_RESET_NOTIFICATION_STRATEGY.
|
virtual |
Dispose of a context.
context | Pointer to the context to be disposed. |
Implements GHOST_ISystem.
Definition at line 146 of file GHOST_SystemSDL.cpp.
References blender::compositor::context, and GHOST_kSuccess.
Returns the dimensions of the main display on this system.
Implements GHOST_ISystem.
Definition at line 107 of file GHOST_SystemSDL.cpp.
|
virtual |
Returns the state of the mouse buttons (outside the message queue).
buttons | The state of the buttons. |
Implements GHOST_System.
Definition at line 743 of file GHOST_SystemSDL.cpp.
References GHOST_kButtonMaskLeft, GHOST_kButtonMaskMiddle, GHOST_kButtonMaskRight, GHOST_kSuccess, GHOST_Buttons::set(), and state.
|
virtual |
Returns the selection buffer
selection | Only used on X11. |
Implements GHOST_System.
Definition at line 753 of file GHOST_SystemSDL.cpp.
|
virtual |
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 621 of file GHOST_SystemSDL.cpp.
References GHOST_kSuccess, x, and y.
|
virtual |
Returns the dimensions of the main display on this system.
Implements GHOST_ISystem.
Definition at line 115 of file GHOST_SystemSDL.cpp.
uint64_t GHOST_SystemSDL::getMilliSeconds | ( | ) |
Definition at line 763 of file GHOST_SystemSDL.cpp.
Referenced by processEvents().
|
virtual |
Returns the state of all modifier keys.
keys | The state of all modifier keys (true == pressed). |
Implements GHOST_System.
Definition at line 153 of file GHOST_SystemSDL.cpp.
References GHOST_kModifierKeyLeftAlt, GHOST_kModifierKeyLeftControl, GHOST_kModifierKeyLeftShift, GHOST_kModifierKeyOS, GHOST_kModifierKeyRightAlt, GHOST_kModifierKeyRightControl, GHOST_kModifierKeyRightShift, GHOST_kSuccess, mod(), and GHOST_ModifierKeys::set().
|
virtual |
Returns the number of displays on this system.
Implements GHOST_ISystem.
Definition at line 123 of file GHOST_SystemSDL.cpp.
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 667 of file GHOST_SystemSDL.cpp.
References GHOST_TimerManager::fireTimers(), getMilliSeconds(), GHOST_System::getTimerManager(), GHOST_kFireTimeNever, next, and GHOST_TimerManager::nextFireTime().
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 758 of file GHOST_SystemSDL.cpp.
References buffer.
|
inlinevirtual |
Set the Console State
action | console state |
Implements GHOST_ISystem.
Definition at line 36 of file GHOST_SystemSDL.h.
|
virtual |
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 635 of file GHOST_SystemSDL.cpp.
References GHOST_kSuccess, x, and y.