|
Blender V5.0
|
#include <GHOST_SystemHeadless.hh>
Inherits GHOST_System.
Definition at line 26 of file GHOST_SystemHeadless.hh.
|
inline |
Definition at line 28 of file GHOST_SystemHeadless.hh.
References GHOST_System::GHOST_System().
|
overridedefault |
|
inlineoverridevirtual |
Create a new off-screen context. Never explicitly delete the context, use disposeContext() instead.
Implements GHOST_System.
Definition at line 114 of file GHOST_SystemHeadless.hh.
References GHOST_GPUSettings::context_type, GHOST_CONTEXT_PARAMS_FROM_GPU_SETTINGS_OFFSCREEN, GHOST_kVulkanPlatformHeadless, GHOST_OPENGL_EGL_CONTEXT_FLAGS, GHOST_OPENGL_EGL_RESET_NOTIFICATION_STRATEGY, GHOST_System::GHOST_System(), and GHOST_GPUSettings::preferred_device.
|
inlineoverridevirtual |
Create a new window. The new window is added to the list of windows managed. Never explicitly delete the window, use disposeWindow() instead.
| title | The name of the window (displayed in the title bar of the window if the OS supports it). |
| left | The coordinate of the left edge of the window. |
| top | The coordinate of the top edge of the window. |
| width | The width the window. |
| height | The height the window. |
| state | The state of the window when opened. |
| gpu_settings | Misc GPU settings. |
| exclusive | Use to show the window on top and ignore others (used full-screen). |
| is_dialog | Stay on top of parent window, no icon in taskbar, can't be minimized. |
| parent_window | Parent (embedder) window |
Implements GHOST_ISystem.
Definition at line 202 of file GHOST_SystemHeadless.hh.
References GHOST_GPUSettings::context_type, GHOST_CONTEXT_PARAMS_FROM_GPU_SETTINGS, left, state, and top.
|
inlineoverridevirtual |
Dispose of a context.
| context | Pointer to the context to be disposed. |
Implements GHOST_ISystem.
Definition at line 184 of file GHOST_SystemHeadless.hh.
References GHOST_kSuccess.
|
inlineoverridevirtual |
Returns the combine dimensions of all monitors.
Implements GHOST_ISystem.
Definition at line 111 of file GHOST_SystemHeadless.hh.
|
inlineoverridevirtual |
Returns the state of the mouse buttons (outside the message queue).
| buttons | The state of the buttons. |
Implements GHOST_System.
Definition at line 45 of file GHOST_SystemHeadless.hh.
References GHOST_kSuccess.
|
inlineoverridevirtual |
Return features supported by the system back-end.
The resulting value doesn't change at run-time.
Implements GHOST_ISystem.
Definition at line 49 of file GHOST_SystemHeadless.hh.
References GHOST_CAPABILITY_FLAG_ALL, GHOST_kCapabilityClipboardImage, GHOST_kCapabilityClipboardPrimary, GHOST_kCapabilityCursorGenerator, GHOST_kCapabilityCursorRGBA, GHOST_kCapabilityCursorWarp, GHOST_kCapabilityDesktopSample, GHOST_kCapabilityInputIME, GHOST_kCapabilityKeyboardHyperKey, GHOST_kCapabilityMultiMonitorPlacement, GHOST_kCapabilityWindowDecorationStyles, and GHOST_kCapabilityWindowPosition.
|
inlineoverridevirtual |
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 85 of file GHOST_SystemHeadless.hh.
|
inlineoverridevirtual |
Returns the current location of the cursor (location in screen coordinates)
Implements GHOST_ISystem.
Definition at line 100 of file GHOST_SystemHeadless.hh.
References GHOST_kFailure.
|
inlineoverridevirtual |
Returns the dimensions of the main display on this system.
Implements GHOST_ISystem.
Definition at line 108 of file GHOST_SystemHeadless.hh.
|
inlineoverridevirtual |
Returns the system time. Returns the number of milliseconds since the start of the system.
Implements GHOST_ISystem.
Definition at line 92 of file GHOST_SystemHeadless.hh.
|
inlineoverridevirtual |
Returns the state of all modifier keys.
| keys | The state of all modifier keys (true == pressed). |
Implements GHOST_System.
Definition at line 41 of file GHOST_SystemHeadless.hh.
References GHOST_kSuccess.
|
inlineoverridevirtual |
Returns the number of displays on this system.
Implements GHOST_ISystem.
Definition at line 96 of file GHOST_SystemHeadless.hh.
|
inlineoverridevirtual |
Get the Window under the cursor. Although coordinates of the mouse are supplied, platform- specific implementations are free to ignore these and query the mouse location themselves, due to them possibly being incorrect under certain conditions, for example when using multiple monitors that vary in scale and/or DPI.
Reimplemented from GHOST_System.
Definition at line 226 of file GHOST_SystemHeadless.hh.
|
inlineoverridevirtual |
Initialize the system.
Reimplemented from GHOST_System.
Definition at line 191 of file GHOST_SystemHeadless.hh.
References GHOST_kFailure, GHOST_kSuccess, and GHOST_System::init().
|
inlineoverridevirtual |
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 33 of file GHOST_SystemHeadless.hh.
|
inlineoverridevirtual |
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 89 of file GHOST_SystemHeadless.hh.
|
inlineoverridevirtual |
Set the Console State
| action | console state |
Implements GHOST_ISystem.
Definition at line 37 of file GHOST_SystemHeadless.hh.
|
inlineoverridevirtual |
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 104 of file GHOST_SystemHeadless.hh.
References GHOST_kFailure.