Blender
V3.3
|
#include <GHOST_WindowWayland.h>
Additional Inherited Members | |
![]() | |
GHOST_TSuccess | releaseNativeHandles () |
![]() | |
GHOST_TDrawingContextType | m_drawingContextType |
GHOST_TUserDataPtr | m_userData |
bool | m_cursorVisible |
GHOST_TGrabCursorMode | m_cursorGrab |
GHOST_TAxisFlag | m_cursorGrabAxis |
int32_t | m_cursorGrabInitPos [2] |
int32_t | m_cursorGrabAccumPos [2] |
GHOST_Rect | m_cursorGrabBounds |
GHOST_TStandardCursor | m_cursorShape |
bool | m_progressBarVisible |
bool | m_canAcceptDragOperation |
bool | m_isUnsavedChanges |
bool | m_fullScreen |
bool | m_wantStereoVisual |
uint32_t | m_fullScreenWidth |
uint32_t | m_fullScreenHeight |
float | m_nativePixelSize |
Definition at line 20 of file GHOST_WindowWayland.h.
GHOST_WindowWayland::GHOST_WindowWayland | ( | GHOST_SystemWayland * | system, |
const char * | title, | ||
int32_t | left, | ||
int32_t | top, | ||
uint32_t | width, | ||
uint32_t | height, | ||
GHOST_TWindowState | state, | ||
const GHOST_IWindow * | parentWindow, | ||
GHOST_TDrawingContextType | type, | ||
const bool | is_dialog, | ||
const bool | stereoVisual, | ||
const bool | exclusive | ||
) |
Definition at line 424 of file GHOST_WindowWayland.cpp.
References GHOST_SystemWayland::compositor(), GHOST_SystemWayland::display(), GHOST_System::getWindowManager(), GHOST_kFailure, GHOST_PRINT, ghost_wl_surface_tag(), height, libdecor_decorate, libdecor_dispatch, libdecor_frame_map, libdecor_frame_set_min_content_size, libdecor_frame_set_parent, GHOST_SystemWayland::outputs(), outputs_max_scale_or_default(), GHOST_Window::setDrawingContextType(), setState(), GHOST_Window::setSwapInterval(), setTitle(), state, toplevel_decoration_v1_listener, toplevel_listener, type, UNPACK2, w(), width, window_manager, wl_display_roundtrip, wl_egl_window_create, wl_surface_listener, GHOST_SystemWayland::xdg_decoration_manager(), GHOST_SystemWayland::xdg_shell(), xdg_surface_listener, and window_t::xdg_toplevel.
|
override |
Definition at line 668 of file GHOST_WindowWayland.cpp.
References GHOST_SystemWayland::display(), libdecor_frame_unref, GHOST_Window::releaseNativeHandles(), w(), GHOST_SystemWayland::window_surface_unref(), wl_display_flush, and wl_egl_window_destroy.
GHOST_TSuccess GHOST_WindowWayland::activate | ( | ) |
Definition at line 904 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 pointer_handle_enter(), tablet_tool_handle_proximity_in(), and xdg_surface_handle_configure().
|
overridevirtual |
Implements GHOST_IWindow.
Definition at line 780 of file GHOST_WindowWayland.cpp.
References GHOST_kSuccess, libdecor_frame_set_fullscreen, and w().
|
overridevirtual |
Converts a point in client rectangle coordinates to screen 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 659 of file GHOST_WindowWayland.cpp.
GHOST_TSuccess GHOST_WindowWayland::close | ( | ) |
Definition at line 898 of file GHOST_WindowWayland.cpp.
References GHOST_System::getMilliSeconds(), GHOST_kEventWindowClose, and GHOST_System::pushEvent().
GHOST_TSuccess GHOST_WindowWayland::deactivate | ( | ) |
Definition at line 913 of file GHOST_WindowWayland.cpp.
References GHOST_System::getMilliSeconds(), GHOST_System::getWindowManager(), GHOST_kEventWindowDeactivate, GHOST_System::pushEvent(), and GHOST_WindowManager::setWindowInactive().
Referenced by pointer_handle_leave(), and xdg_surface_handle_configure().
uint16_t GHOST_WindowWayland::dpi | ( | ) | const |
Definition at line 870 of file GHOST_WindowWayland.cpp.
References w().
|
overridevirtual |
Implements GHOST_IWindow.
Definition at line 790 of file GHOST_WindowWayland.cpp.
References GHOST_kSuccess, libdecor_frame_unset_fullscreen, and w().
|
overridevirtual |
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 619 of file GHOST_WindowWayland.cpp.
References bounds(), UNPACK2, and w().
Referenced by getWindowBounds(), relative_pointer_handle_relative_motion_impl(), and setWindowCursorGrab().
|
overridevirtual |
Reimplemented from GHOST_Window.
Definition at line 591 of file GHOST_WindowWayland.cpp.
References GHOST_SystemWayland::getCursorBitmap().
|
overridevirtual |
Return true when a software cursor should be used.
Reimplemented from GHOST_Window.
Definition at line 580 of file GHOST_WindowWayland.cpp.
References GHOST_SystemWayland::getCursorGrabUseSoftwareDisplay(), and GHOST_Window::m_cursorGrab.
|
overridevirtual |
Returns the recommended DPI for this window.
Reimplemented from GHOST_Window.
Definition at line 698 of file GHOST_WindowWayland.cpp.
References w().
|
overridevirtual |
Returns the state of the window (normal, minimized, maximized).
Implements GHOST_IWindow.
Definition at line 759 of file GHOST_WindowWayland.cpp.
References GHOST_kWindowStateFullScreen, GHOST_kWindowStateMaximized, GHOST_kWindowStateNormal, and w().
Referenced by setState().
|
overridevirtual |
Returns the title displayed in the title bar.
title | The title displayed in the title bar. |
Implements GHOST_IWindow.
Definition at line 609 of file GHOST_WindowWayland.cpp.
|
overridevirtual |
Returns the window rectangle dimensions. These are screen coordinates.
bounds | The bounding rectangle of the window. |
Implements GHOST_IWindow.
Definition at line 614 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 419 of file GHOST_WindowWayland.cpp.
References GHOST_SystemWayland::hasCursorShape().
|
overridevirtual |
Invalidates the contents of this window.
Implements GHOST_IWindow.
Definition at line 770 of file GHOST_WindowWayland.cpp.
References GHOST_kSuccess.
|
overridevirtual |
Reimplemented from GHOST_Window.
Definition at line 800 of file GHOST_WindowWayland.cpp.
References w().
GHOST_TSuccess GHOST_WindowWayland::notify_size | ( | ) |
Definition at line 920 of file GHOST_WindowWayland.cpp.
References GHOST_System::getMilliSeconds(), GHOST_kEventWindowSize, and GHOST_System::pushEvent().
Referenced by setClientSize(), and xdg_surface_handle_configure().
const std::vector< output_t * > & GHOST_WindowWayland::outputs | ( | ) |
Definition at line 885 of file GHOST_WindowWayland.cpp.
References w().
Referenced by outputs_changed_update_scale(), outputs_enter(), and outputs_leave().
bool GHOST_WindowWayland::outputs_changed_update_scale | ( | ) |
Definition at line 938 of file GHOST_WindowWayland.cpp.
References window_t::dpi, outputs(), outputs_max_scale_or_default(), window_t::scale, window_t::size_pending, UNLIKELY, and w().
Referenced by output_handle_scale(), surface_handle_enter(), and surface_handle_leave().
Definition at line 971 of file GHOST_WindowWayland.cpp.
References outputs(), and w().
Referenced by surface_handle_enter().
Definition at line 982 of file GHOST_WindowWayland.cpp.
References outputs(), and w().
Referenced by surface_handle_leave().
int GHOST_WindowWayland::scale | ( | ) | const |
Definition at line 875 of file GHOST_WindowWayland.cpp.
References w().
Referenced by data_device_handle_drop(), dnd_events(), getCursorPositionClientRelative_impl(), pointer_handle_enter(), pointer_handle_motion(), relative_pointer_handle_relative_motion(), relative_pointer_handle_relative_motion_impl(), setCursorGrab_use_software_confine(), setCursorPositionClientRelative_impl(), and tablet_tool_handle_frame().
|
overridevirtual |
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 650 of file GHOST_WindowWayland.cpp.
|
overridevirtual |
Resizes client rectangle height.
height | The new height of the client area of the window. |
Implements GHOST_IWindow.
Definition at line 629 of file GHOST_WindowWayland.cpp.
References height, setClientSize(), and w().
|
overridevirtual |
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 634 of file GHOST_WindowWayland.cpp.
References GHOST_kSuccess, height, notify_size(), w(), width, and wl_egl_window_resize.
Referenced by setClientHeight(), and setClientWidth().
|
overridevirtual |
Resizes client rectangle width.
width | The new width of the client area of the window. |
Implements GHOST_IWindow.
Definition at line 624 of file GHOST_WindowWayland.cpp.
References setClientSize(), w(), and width.
|
overridevirtual |
Sets the order of the window (bottom, top).
order | The order of the window. |
Implements GHOST_IWindow.
Definition at line 775 of file GHOST_WindowWayland.cpp.
References GHOST_kSuccess.
|
overridevirtual |
Sets the state of the window (normal, minimized, maximized).
state | The state of the window. |
Implements GHOST_IWindow.
Definition at line 708 of file GHOST_WindowWayland.cpp.
References getState(), GHOST_kFailure, GHOST_kSuccess, GHOST_kWindowStateEmbedded, GHOST_kWindowStateFullScreen, GHOST_kWindowStateMaximized, GHOST_kWindowStateMinimized, GHOST_kWindowStateNormal, libdecor_frame_set_fullscreen, libdecor_frame_set_maximized, libdecor_frame_set_minimized, libdecor_frame_unset_fullscreen, libdecor_frame_unset_maximized, state, and w().
Referenced by GHOST_WindowWayland().
|
overridevirtual |
Sets the title displayed in the title bar.
title | The title to display in the title bar. |
Implements GHOST_IWindow.
Definition at line 596 of file GHOST_WindowWayland.cpp.
References libdecor_frame_set_app_id, libdecor_frame_set_title, and w().
Referenced by GHOST_WindowWayland().
|
overridevirtual |
Sets the cursor grab on the window using native window system calls.
Reimplemented from GHOST_Window.
Definition at line 551 of file GHOST_WindowWayland.cpp.
References bounds(), getClientBounds(), GHOST_Window::getCursorGrabBounds(), GHOST_kFailure, GHOST_kGrabWrap, GHOST_kSuccess, GHOST_Window::m_cursorGrab, GHOST_Window::m_cursorGrabAxis, GHOST_Window::m_cursorGrabInitPos, w(), and GHOST_SystemWayland::window_cursor_grab_set().
|
overridevirtual |
Sets the cursor shape on the window using native window system calls.
Implements GHOST_Window.
Definition at line 573 of file GHOST_WindowWayland.cpp.
References GHOST_kStandardCursorDefault, GHOST_kSuccess, GHOST_Window::m_cursorShape, and GHOST_SystemWayland::setCursorShape().
|
overridevirtual |
Sets the cursor visibility on the window using native window system calls.
Implements GHOST_Window.
Definition at line 703 of file GHOST_WindowWayland.cpp.
References GHOST_SystemWayland::setCursorVisibility().
|
overridevirtual |
Sets the cursor shape on the window using native window system calls.
Implements GHOST_Window.
Definition at line 585 of file GHOST_WindowWayland.cpp.
References mask(), and GHOST_SystemWayland::setCustomCursorShape().
wl_surface * GHOST_WindowWayland::surface | ( | ) | const |
Definition at line 880 of file GHOST_WindowWayland.cpp.
References w().