|
Blender
V2.93
|
#include <GHOST_SystemWayland.h>
Inherits GHOST_System.
Definition at line 37 of file GHOST_SystemWayland.h.
| GHOST_SystemWayland::GHOST_SystemWayland | ( | ) |
Definition at line 1306 of file GHOST_SystemWayland.cpp.
References display_t::cursor_theme, input_t::data_device, data_device_listener, display_t::data_device_manager, default_cursor_size, display_t::display, display_destroy(), display_t::inputs, registry_listener, input_t::seat, display_t::shm, size(), display_t::system, and display_t::xdg_shell.
|
override |
Definition at line 1350 of file GHOST_SystemWayland.cpp.
References display_destroy().
| wl_compositor * GHOST_SystemWayland::compositor | ( | ) |
Definition at line 1567 of file GHOST_SystemWayland.cpp.
References display_t::compositor.
Referenced by createOffscreenContext(), GHOST_WindowWayland::GHOST_WindowWayland(), and seat_capabilities().
|
overridevirtual |
Create a new offscreen context. Never explicitly delete the context, use disposeContext() instead.
Implements GHOST_System.
Definition at line 1484 of file GHOST_SystemWayland.cpp.
References compositor(), context, display_t::display, GHOST_OPENGL_EGL_CONTEXT_FLAGS, GHOST_OPENGL_EGL_RESET_NOTIFICATION_STRATEGY, GHOST_PRINT, display_t::os_egl_windows, and display_t::os_surfaces.
|
overridevirtual |
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. |
| type | The type of drawing context installed in this window. |
| glSettings | Misc OpenGL 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. |
| parentWindow | Parent (embedder) window |
Implements GHOST_ISystem.
Definition at line 1521 of file GHOST_SystemWayland.cpp.
References GHOST_WindowManager::addWindow(), GHOST_GLSettings::flags, GHOST_System::getMilliSeconds(), GHOST_Window::getValid(), GHOST_glStereoVisual, GHOST_kEventWindowSize, height, left, GHOST_System::m_windowManager, GHOST_System::pushEvent(), GHOST_WindowManager::setActiveWindow(), state, top, type, and width.
| wl_display * GHOST_SystemWayland::display | ( | ) |
Definition at line 1562 of file GHOST_SystemWayland.cpp.
References display_t::display.
Referenced by data_device_drop(), and GHOST_WindowWayland::GHOST_WindowWayland().
|
overridevirtual |
Dispose of a context.
| context | Pointer to the context to be disposed. |
Implements GHOST_ISystem.
Definition at line 1515 of file GHOST_SystemWayland.cpp.
References context, and GHOST_kSuccess.
|
overridevirtual |
Returns the combine dimensions of all monitors.
Implements GHOST_ISystem.
Definition at line 1479 of file GHOST_SystemWayland.cpp.
References getMainDisplayDimensions(), height, and width.
|
overridevirtual |
Returns the state of the mouse buttons (outside the message queue).
| buttons | The state of the buttons. |
Implements GHOST_System.
Definition at line 1405 of file GHOST_SystemWayland.cpp.
References GHOST_kFailure, GHOST_kSuccess, and display_t::inputs.
|
overridevirtual |
Returns the selection buffer
| selection | Only used on X11. |
Implements GHOST_System.
Definition at line 1414 of file GHOST_SystemWayland.cpp.
|
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 1453 of file GHOST_SystemWayland.cpp.
References GHOST_kFailure, GHOST_kSuccess, display_t::inputs, x, and y.
|
overridevirtual |
Returns the dimensions of the main display on this system.
Implements GHOST_ISystem.
Definition at line 1470 of file GHOST_SystemWayland.cpp.
References getNumDisplays(), height, display_t::outputs, and width.
Referenced by getAllDisplayDimensions().
|
overridevirtual |
Returns the state of all modifier keys.
| keys | The state of all modifier keys (true == pressed). |
Implements GHOST_System.
Definition at line 1374 of file GHOST_SystemWayland.cpp.
References GHOST_kFailure, GHOST_kModifierKeyLeftAlt, GHOST_kModifierKeyLeftControl, GHOST_kModifierKeyLeftShift, GHOST_kModifierKeyNumMasks, GHOST_kModifierKeyOS, GHOST_kModifierKeyRightAlt, GHOST_kModifierKeyRightControl, GHOST_kModifierKeyRightShift, GHOST_kSuccess, display_t::inputs, and GHOST_ModifierKeys::set().
|
overridevirtual |
Returns the number of displays on this system.
Implements GHOST_ISystem.
Definition at line 1448 of file GHOST_SystemWayland.cpp.
References display_t::outputs.
Referenced by getMainDisplayDimensions().
| GHOST_TSuccess GHOST_SystemWayland::hasCursorShape | ( | GHOST_TStandardCursor | cursorShape | ) |
Definition at line 1632 of file GHOST_SystemWayland.cpp.
References cursors.
Referenced by GHOST_WindowWayland::hasCursorShape().
|
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 1355 of file GHOST_SystemWayland.cpp.
References display_t::display, GHOST_TimerManager::fireTimers(), GHOST_System::getEventManager(), GHOST_System::getMilliSeconds(), GHOST_EventManager::getNumEvents(), and GHOST_System::getTimerManager().
|
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 1421 of file GHOST_SystemWayland.cpp.
References buffer, data_source_t::buffer_out, display_t::data_device_manager, data_source_t::data_source, data_source_listener, display_t::inputs, mime_send, data_source_t::source_serial, and type.
| GHOST_TSuccess GHOST_SystemWayland::setCursorGrab | ( | const GHOST_TGrabCursorMode | mode, |
| wl_surface * | surface | ||
| ) |
Definition at line 1735 of file GHOST_SystemWayland.cpp.
References GHOST_kFailure, GHOST_kGrabDisable, GHOST_kGrabHide, GHOST_kGrabNormal, GHOST_kGrabWrap, GHOST_kSuccess, display_t::inputs, input_t::locked_pointer, input_t::pointer, display_t::pointer_constraints, input_t::relative_pointer, relative_pointer_listener, display_t::relative_pointer_manager, setCursorVisibility(), and surface.
Referenced by GHOST_WindowWayland::setWindowCursorGrab().
|
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 1465 of file GHOST_SystemWayland.cpp.
References GHOST_kFailure.
| GHOST_TSuccess GHOST_SystemWayland::setCursorShape | ( | GHOST_TStandardCursor | shape | ) |
Definition at line 1603 of file GHOST_SystemWayland.cpp.
References buffer, Freestyle::c, display_t::cursor_theme, cursors, GHOST_kFailure, GHOST_kStandardCursorDefault, GHOST_kSuccess, GHOST_PRINT, display_t::inputs, and set_cursor_buffer().
Referenced by GHOST_WindowWayland::setWindowCursorShape().
| GHOST_TSuccess GHOST_SystemWayland::setCursorVisibility | ( | bool | visible | ) |
Definition at line 1712 of file GHOST_SystemWayland.cpp.
References cursor_t::buffer, input_t::cursor, GHOST_kFailure, GHOST_kSuccess, display_t::inputs, set_cursor_buffer(), and cursor_t::visible.
Referenced by setCursorGrab(), and GHOST_WindowWayland::setWindowCursorVisibility().
| GHOST_TSuccess GHOST_SystemWayland::setCustomCursorShape | ( | GHOST_TUns8 * | bitmap, |
| GHOST_TUns8 * | mask, | ||
| int | sizex, | ||
| int | sizey, | ||
| int | hotX, | ||
| int | hotY, | ||
| bool | canInvertColor | ||
| ) |
Definition at line 1637 of file GHOST_SystemWayland.cpp.
References buffer, cursor_t::buffer, cursor_buffer_listener, buffer_t::data, cursor_t::file_buffer, GHOST_kFailure, GHOST_kSuccess, cursor_t::image, display_t::inputs, mask(), blender::compositor::pool, set_cursor_buffer(), display_t::shm, buffer_t::size, stride, x, and y.
Referenced by GHOST_WindowWayland::setWindowCustomCursorShape().
| void GHOST_SystemWayland::setSelection | ( | const std::string & | selection | ) |
Definition at line 1577 of file GHOST_SystemWayland.cpp.
| xdg_wm_base * GHOST_SystemWayland::shell | ( | ) |
Definition at line 1572 of file GHOST_SystemWayland.cpp.
References display_t::xdg_shell.
Referenced by GHOST_WindowWayland::GHOST_WindowWayland().
|
overridevirtual |
Toggles console
| action |
|
Implements GHOST_ISystem.
Definition at line 1369 of file GHOST_SystemWayland.cpp.