|
Blender V4.3
|
#include <GHOST_WindowSDL.hh>
Inherits GHOST_Window.
Additional Inherited Members | |
Protected Attributes inherited from GHOST_Window | |
| 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 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 = GHOST_kDrawingContextTypeNone, | ||
| const bool | stereoVisual = false, | ||
| const bool | exclusive = false, | ||
| const GHOST_IWindow * | parentWindow = nullptr ) |
Definition at line 16 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess, GHOST_PRINT, GHOST_Window::setDrawingContextType(), and setTitle().
| GHOST_WindowSDL::~GHOST_WindowSDL | ( | ) |
Definition at line 55 of file GHOST_WindowSDL.cc.
References GHOST_Window::releaseNativeHandles().
|
inlineoverrideprotectedvirtual |
Implements GHOST_IWindow.
Definition at line 121 of file GHOST_WindowSDL.hh.
References GHOST_kFailure.
|
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 209 of file GHOST_WindowSDL.cc.
|
inlineoverrideprotectedvirtual |
Implements GHOST_IWindow.
Definition at line 126 of file GHOST_WindowSDL.hh.
References GHOST_kFailure.
|
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 166 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 644 of file GHOST_WindowSDL.cc.
References int.
|
inline |
Definition at line 52 of file GHOST_WindowSDL.hh.
Referenced by GHOST_DisplayManagerSDL::setCurrentDisplaySetting().
|
overrideprotectedvirtual |
Returns the state of the window (normal, minimized, maximized).
Implements GHOST_IWindow.
Definition at line 130 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 156 of file GHOST_WindowSDL.cc.
|
overridevirtual |
Returns indication as to whether the window is valid.
Reimplemented from GHOST_Window.
Definition at line 146 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 161 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 614 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 96 of file GHOST_WindowSDL.cc.
References GHOST_SystemSDL::addDirtyWindow(), and 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::m_wantStereoVisual.
|
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 200 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 186 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 194 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 178 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 114 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 106 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 151 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 598 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess.
|
overrideprotectedvirtual |
Sets the cursor shape on the window using native window system calls.
Implements GHOST_Window.
Definition at line 603 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 638 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess.
|
overrideprotectedvirtual |
Sets the cursor shape on the window using native window system calls.
Implements GHOST_Window.
Definition at line 619 of file GHOST_WindowSDL.cc.
References GHOST_kSuccess, 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 64 of file GHOST_WindowSDL.hh.