|
Blender V5.0
|
#include <GHOST_WindowSDL.hh>
Inherits GHOST_Window.
Definition at line 27 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 bool | exclusive = false, | ||
| const GHOST_IWindow * | parent_window = nullptr ) |
Definition at line 16 of file GHOST_WindowSDL.cc.
References false, GHOST_kSuccess, GHOST_PRINT, GHOST_Window::GHOST_Window(), left, nullptr, GHOST_Window::setDrawingContextType(), setTitle(), state, and top.
| GHOST_WindowSDL::~GHOST_WindowSDL | ( | ) |
Definition at line 55 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 210 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 167 of file GHOST_WindowSDL.cc.
References bounds(), w(), x, and y.
Referenced by getWindowBounds().
|
overrideprotectedvirtual |
Returns the recommended DPI for this window.
Reimplemented from GHOST_Window.
Definition at line 643 of file GHOST_WindowSDL.cc.
|
inline |
Definition at line 52 of file GHOST_WindowSDL.hh.
|
overrideprotectedvirtual |
Returns the state of the window (normal, minimized, maximized).
Implements GHOST_IWindow.
Definition at line 131 of file GHOST_WindowSDL.cc.
References GHOST_kWindowStateFullScreen, GHOST_kWindowStateMaximized, GHOST_kWindowStateMinimized, and GHOST_kWindowStateNormal.
|
overrideprotectedvirtual |
Returns the title displayed in the title bar.
| title | The title displayed in the title bar. |
Implements GHOST_IWindow.
Definition at line 157 of file GHOST_WindowSDL.cc.
|
overridevirtual |
Returns indication as to whether the window is valid.
Reimplemented from GHOST_Window.
Definition at line 147 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 162 of file GHOST_WindowSDL.cc.
References bounds(), and getClientBounds().
|
overrideprotectedvirtual |
Test if the standard cursor shape is supported by current platform.
Implements GHOST_IWindow.
Definition at line 615 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 97 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess.
|
overrideprotectedvirtual |
| type | The type of rendering context create. |
Implements GHOST_Window.
Definition at line 66 of file GHOST_WindowSDL.cc.
References GHOST_OPENGL_SDL_CONTEXT_FLAGS, GHOST_OPENGL_SDL_RESET_NOTIFICATION_STRATEGY, 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 201 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 187 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 195 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 179 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 112 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 107 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 152 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 599 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess.
|
overrideprotectedvirtual |
Implements GHOST_Window.
Definition at line 604 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 637 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess.
|
overrideprotectedvirtual |
Implements GHOST_Window.
Definition at line 620 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess, mask(), sdl_ghost_CreateCursor(), and size().
|
inline |
called by the X11 system implementation when expose events for the window have been pushed onto the GHOST queue
Definition at line 64 of file GHOST_WindowSDL.hh.