|
Blender V5.3
|
#include <GHOST_WindowSDL.hh>
Inherits GHOST_Window.
Definition at line 21 of file GHOST_WindowSDL.hh.
| GHOST_WindowSDL::GHOST_WindowSDL | ( | GHOST_SystemSDL * | system, |
| const char * | title, | ||
| int32_t | left, | ||
| int32_t | top, | ||
| uint32_t | width, | ||
| uint32_t | height, | ||
| GHOST_TWindowState | state, | ||
| GHOST_TDrawingContextType | type, | ||
| const GHOST_ContextParams & | context_params, | ||
| const GHOST_GPUDevice & | preferred_device, | ||
| const bool | exclusive = false, | ||
| const GHOST_IWindow * | parent_window = nullptr ) |
Definition at line 20 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess, GHOST_PRINT, GHOST_Window::GHOST_Window(), GHOST_Window::setDrawingContextType(), setTitle(), and state.
| GHOST_WindowSDL::~GHOST_WindowSDL | ( | ) |
Definition at line 74 of file GHOST_WindowSDL.cc.
References GHOST_Window::releaseNativeHandles().
|
overrideprotectedvirtual |
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 241 of file GHOST_WindowSDL.cc.
|
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 198 of file GHOST_WindowSDL.cc.
References GHOST_Rect::b_, GHOST_Rect::l_, GHOST_Rect::r_, GHOST_Rect::t_, w(), x, and y.
Referenced by getWindowBounds().
|
overrideprotectedvirtual |
Returns the recommended DPI for this window.
Reimplemented from GHOST_Window.
Definition at line 679 of file GHOST_WindowSDL.cc.
References scale().
|
inline |
Definition at line 48 of file GHOST_WindowSDL.hh.
|
overrideprotectedvirtual |
Returns the state of the window (normal, minimized, maximized).
Implements GHOST_IWindow.
Definition at line 162 of file GHOST_WindowSDL.cc.
References GHOST_kWindowStateFullScreen, GHOST_kWindowStateMaximized, GHOST_kWindowStateMinimized, and GHOST_kWindowStateNormal.
|
overrideprotectedvirtual |
Returns the title displayed in the title bar.
Implements GHOST_IWindow.
Definition at line 188 of file GHOST_WindowSDL.cc.
|
overridevirtual |
Returns indication as to whether the window is valid.
Reimplemented from GHOST_Window.
Definition at line 178 of file GHOST_WindowSDL.cc.
References GHOST_Window::getValid().
|
overridevirtual |
Returns the window rectangle dimensions. These are screen coordinates.
| bounds | The bounding rectangle of the window. |
Implements GHOST_IWindow.
Definition at line 193 of file GHOST_WindowSDL.cc.
References getClientBounds().
|
overrideprotectedvirtual |
Test if the standard cursor shape is supported by current platform.
Implements GHOST_IWindow.
Definition at line 646 of file GHOST_WindowSDL.cc.
References getStandardCursorShape(), GHOST_kFailure, and GHOST_kSuccess.
|
overridevirtual |
Invalidates the contents of this window.
Implements GHOST_IWindow.
Definition at line 128 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess.
|
overrideprotectedvirtual |
| type | The type of rendering context create. |
Implements GHOST_Window.
Definition at line 85 of file GHOST_WindowSDL.cc.
References GHOST_ContextSDL::GHOST_ContextSDL(), GHOST_ContextVK::GHOST_ContextVK(), GHOST_OPENGL_SDL_CONTEXT_FLAGS, GHOST_OPENGL_SDL_RESET_NOTIFICATION_STRATEGY, GHOST_Window::hdr_info_, and GHOST_Window::want_context_params_.
|
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 232 of file GHOST_WindowSDL.cc.
|
overrideprotectedvirtual |
Resizes client rectangle height.
| height | The new height of the client area of the window. |
Implements GHOST_IWindow.
Definition at line 218 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess.
|
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 226 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess.
|
overrideprotectedvirtual |
Resizes client rectangle width.
| width | The new width of the client area of the window. |
Implements GHOST_IWindow.
Definition at line 210 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess.
|
inlineoverrideprotectedvirtual |
Sets the order of the window (bottom, top).
| order | The order of the window. |
Implements GHOST_IWindow.
Definition at line 108 of file GHOST_WindowSDL.hh.
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 138 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess, GHOST_kWindowStateFullScreen, GHOST_kWindowStateMaximized, GHOST_kWindowStateMinimized, GHOST_kWindowStateNormal, and state.
|
overrideprotectedvirtual |
Sets the title displayed in the title bar.
| title | The title to display in the title bar. |
Implements GHOST_IWindow.
Definition at line 183 of file GHOST_WindowSDL.cc.
Referenced by GHOST_WindowSDL().
|
overrideprotectedvirtual |
Sets the cursor grab on the window using native window system calls.
Reimplemented from GHOST_Window.
Definition at line 630 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess.
|
overrideprotectedvirtual |
Implements GHOST_Window.
Definition at line 635 of file GHOST_WindowSDL.cc.
References getStandardCursorShape(), GHOST_kStandardCursorDefault, and GHOST_kSuccess.
|
overrideprotectedvirtual |
Sets the cursor visibility on the window using native window system calls.
Implements GHOST_Window.
Definition at line 668 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess.
|
overrideprotectedvirtual |
Implements GHOST_Window.
Definition at line 651 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess, mask(), and sdl_ghost_CreateCursor().
|
inline |
called by the X11 system implementation when expose events for the window have been pushed onto the GHOST queue
Definition at line 60 of file GHOST_WindowSDL.hh.