|
Blender
V2.93
|
#include <GHOST_WindowWayland.h>
Inherits GHOST_Window.
Definition at line 31 of file GHOST_WindowWayland.h.
| GHOST_WindowWayland::GHOST_WindowWayland | ( | GHOST_SystemWayland * | system, |
| const char * | title, | ||
| GHOST_TInt32 | left, | ||
| GHOST_TInt32 | top, | ||
| GHOST_TUns32 | width, | ||
| GHOST_TUns32 | height, | ||
| GHOST_TWindowState | state, | ||
| const GHOST_IWindow * | parentWindow, | ||
| GHOST_TDrawingContextType | type, | ||
| const bool | is_dialog, | ||
| const bool | stereoVisual, | ||
| const bool | exclusive | ||
| ) |
Definition at line 139 of file GHOST_WindowWayland.cpp.
References GHOST_SystemWayland::compositor(), GHOST_SystemWayland::display(), GHOST_kFailure, GHOST_PRINT, height, GHOST_Window::setDrawingContextType(), setState(), setTitle(), GHOST_SystemWayland::shell(), state, surface_listener, toplevel_listener, type, w(), width, and window_t::xdg_toplevel.
|
override |
Definition at line 308 of file GHOST_WindowWayland.cpp.
References GHOST_Window::releaseNativeHandles(), and w().
| GHOST_TSuccess GHOST_WindowWayland::activate | ( | void | ) |
Definition at line 203 of file GHOST_WindowWayland.cpp.
References GHOST_System::getMilliSeconds(), GHOST_System::getWindowManager(), GHOST_kEventWindowActivate, GHOST_kFailure, GHOST_System::pushEvent(), and GHOST_WindowManager::setActiveWindow().
Referenced by surface_configure().
|
overrideprotectedvirtual |
Implements GHOST_IWindow.
Definition at line 379 of file GHOST_WindowWayland.cpp.
References GHOST_kSuccess, and w().
|
overrideprotectedvirtual |
Converts a point in screen coordinates to client rectangle coordinates
| inX | The x-coordinate in the client rectangle. |
| inY | The y-coordinate in the client rectangle. |
| outX | The x-coordinate on the screen. |
| outY | The y-coordinate on the screen. |
Implements GHOST_IWindow.
Definition at line 299 of file GHOST_WindowWayland.cpp.
| GHOST_TSuccess GHOST_WindowWayland::close | ( | ) |
Definition at line 197 of file GHOST_WindowWayland.cpp.
References GHOST_System::getMilliSeconds(), GHOST_kEventWindowClose, and GHOST_System::pushEvent().
| GHOST_TSuccess GHOST_WindowWayland::deactivate | ( | void | ) |
Definition at line 212 of file GHOST_WindowWayland.cpp.
References GHOST_System::getMilliSeconds(), GHOST_System::getWindowManager(), GHOST_kEventWindowDeactivate, GHOST_System::pushEvent(), and GHOST_WindowManager::setWindowInactive().
Referenced by surface_configure().
|
overrideprotectedvirtual |
Implements GHOST_IWindow.
Definition at line 385 of file GHOST_WindowWayland.cpp.
References GHOST_kSuccess, and w().
|
overrideprotectedvirtual |
Returns the client rectangle dimensions. The left and top members of the rectangle are always zero.
| bounds | The bounding rectangle of the client area of the window. |
Implements GHOST_IWindow.
Definition at line 269 of file GHOST_WindowWayland.cpp.
Referenced by getWindowBounds().
|
overrideprotectedvirtual |
Returns the state of the window (normal, minimized, maximized).
Implements GHOST_IWindow.
Definition at line 356 of file GHOST_WindowWayland.cpp.
References GHOST_kWindowStateFullScreen, GHOST_kWindowStateMaximized, GHOST_kWindowStateNormal, and w().
Referenced by setState().
|
overrideprotectedvirtual |
Returns the title displayed in the title bar.
| title | The title displayed in the title bar. |
Implements GHOST_IWindow.
Definition at line 259 of file GHOST_WindowWayland.cpp.
|
overrideprotectedvirtual |
Returns the window rectangle dimensions. These are screen coordinates.
| bounds | The bounding rectangle of the window. |
Implements GHOST_IWindow.
Definition at line 264 of file GHOST_WindowWayland.cpp.
References bounds(), and getClientBounds().
|
overridevirtual |
Test if the standard cursor shape is supported by current platform.
Implements GHOST_IWindow.
Definition at line 134 of file GHOST_WindowWayland.cpp.
References GHOST_SystemWayland::hasCursorShape().
|
overrideprotectedvirtual |
Invalidates the contents of this window.
Implements GHOST_IWindow.
Definition at line 369 of file GHOST_WindowWayland.cpp.
References GHOST_kSuccess.
|
overrideprotectedvirtual |
Reimplemented from GHOST_Window.
Definition at line 391 of file GHOST_WindowWayland.cpp.
References w().
| GHOST_TSuccess GHOST_WindowWayland::notify_size | ( | ) |
Definition at line 219 of file GHOST_WindowWayland.cpp.
References GHOST_System::getMilliSeconds(), GHOST_kEventWindowSize, and GHOST_System::pushEvent().
Referenced by surface_configure().
|
overrideprotectedvirtual |
Converts a point in screen coordinates to client rectangle coordinates
| inX | The x-coordinate on the screen. |
| inY | The y-coordinate on the screen. |
| outX | The x-coordinate in the client rectangle. |
| outY | The y-coordinate in the client rectangle. |
Implements GHOST_IWindow.
Definition at line 290 of file GHOST_WindowWayland.cpp.
|
overrideprotectedvirtual |
Resizes client rectangle height.
| height | The new height of the client area of the window. |
Implements GHOST_IWindow.
Definition at line 279 of file GHOST_WindowWayland.cpp.
References height, setClientSize(), and w().
|
overrideprotectedvirtual |
Resizes client rectangle.
| width | The new width of the client area of the window. |
| height | The new height of the client area of the window. |
Implements GHOST_IWindow.
Definition at line 284 of file GHOST_WindowWayland.cpp.
References GHOST_kSuccess, height, w(), and width.
Referenced by setClientHeight(), and setClientWidth().
|
overrideprotectedvirtual |
Resizes client rectangle width.
| width | The new width of the client area of the window. |
Implements GHOST_IWindow.
Definition at line 274 of file GHOST_WindowWayland.cpp.
References setClientSize(), w(), and width.
|
overrideprotectedvirtual |
Sets the order of the window (bottom, top).
| order | The order of the window. |
Implements GHOST_IWindow.
Definition at line 374 of file GHOST_WindowWayland.cpp.
References GHOST_kSuccess.
|
overrideprotectedvirtual |
Sets the state of the window (normal, minimized, maximized).
| state | The state of the window. |
Implements GHOST_IWindow.
Definition at line 325 of file GHOST_WindowWayland.cpp.
References getState(), GHOST_kFailure, GHOST_kSuccess, GHOST_kWindowStateEmbedded, GHOST_kWindowStateFullScreen, GHOST_kWindowStateMaximized, GHOST_kWindowStateMinimized, GHOST_kWindowStateNormal, state, and w().
Referenced by GHOST_WindowWayland().
|
overrideprotectedvirtual |
Sets the title displayed in the title bar.
| title | The title to display in the title bar. |
Implements GHOST_IWindow.
Definition at line 252 of file GHOST_WindowWayland.cpp.
References w().
Referenced by GHOST_WindowWayland().
|
overrideprotectedvirtual |
Sets the cursor grab on the window using native window system calls.
Reimplemented from GHOST_Window.
Definition at line 229 of file GHOST_WindowWayland.cpp.
References GHOST_SystemWayland::setCursorGrab(), and w().
|
overrideprotectedvirtual |
Sets the cursor shape on the window using native window system calls.
Implements GHOST_Window.
Definition at line 234 of file GHOST_WindowWayland.cpp.
References GHOST_kStandardCursorDefault, GHOST_kSuccess, GHOST_Window::m_cursorShape, and GHOST_SystemWayland::setCursorShape().
|
overrideprotectedvirtual |
Sets the cursor visibility on the window using native window system calls.
Implements GHOST_Window.
Definition at line 320 of file GHOST_WindowWayland.cpp.
References GHOST_SystemWayland::setCursorVisibility().
|
overrideprotectedvirtual |
Sets the cursor shape on the window using native window system calls.
Implements GHOST_Window.
Definition at line 241 of file GHOST_WindowWayland.cpp.
References mask(), and GHOST_SystemWayland::setCustomCursorShape().