Blender
V3.3
|
#include <GHOST_WindowSDL.h>
Definition at line 25 of file GHOST_WindowSDL.h.
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 = NULL |
||
) |
Definition at line 15 of file GHOST_WindowSDL.cpp.
References GHOST_kSuccess, GHOST_PRINT, height, left, GHOST_Window::setDrawingContextType(), setTitle(), top, type, and width.
GHOST_WindowSDL::~GHOST_WindowSDL | ( | ) |
Definition at line 54 of file GHOST_WindowSDL.cpp.
References GHOST_Window::releaseNativeHandles().
|
inlineprotectedvirtual |
Implements GHOST_IWindow.
Definition at line 119 of file GHOST_WindowSDL.h.
References GHOST_kFailure.
|
protectedvirtual |
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 198 of file GHOST_WindowSDL.cpp.
|
inlineprotectedvirtual |
Implements GHOST_IWindow.
Definition at line 124 of file GHOST_WindowSDL.h.
References GHOST_kFailure.
|
virtual |
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 155 of file GHOST_WindowSDL.cpp.
References bounds(), w(), x, and y.
Referenced by getWindowBounds().
|
protectedvirtual |
Returns the recommended DPI for this window.
Reimplemented from GHOST_Window.
Definition at line 633 of file GHOST_WindowSDL.cpp.
|
inline |
Definition at line 50 of file GHOST_WindowSDL.h.
Referenced by GHOST_DisplayManagerSDL::setCurrentDisplaySetting().
|
protectedvirtual |
Returns the state of the window (normal, minimized, maximized).
Implements GHOST_IWindow.
Definition at line 119 of file GHOST_WindowSDL.cpp.
References GHOST_kWindowStateFullScreen, GHOST_kWindowStateMaximized, GHOST_kWindowStateMinimized, and GHOST_kWindowStateNormal.
|
protectedvirtual |
Returns the title displayed in the title bar.
title | The title displayed in the title bar. |
Implements GHOST_IWindow.
Definition at line 145 of file GHOST_WindowSDL.cpp.
|
virtual |
Returns indication as to whether the window is valid.
Reimplemented from GHOST_Window.
Definition at line 135 of file GHOST_WindowSDL.cpp.
References GHOST_Window::getValid().
|
virtual |
Returns the window rectangle dimensions. These are screen coordinates.
bounds | The bounding rectangle of the window. |
Implements GHOST_IWindow.
Definition at line 150 of file GHOST_WindowSDL.cpp.
References bounds(), and getClientBounds().
|
protectedvirtual |
Test if the standard cursor shape is supported by current platform.
Implements GHOST_IWindow.
Definition at line 603 of file GHOST_WindowSDL.cpp.
References getStandardCursorShape(), GHOST_kFailure, and GHOST_kSuccess.
|
virtual |
Invalidates the contents of this window.
Implements GHOST_IWindow.
Definition at line 85 of file GHOST_WindowSDL.cpp.
References GHOST_SystemSDL::addDirtyWindow(), and GHOST_kSuccess.
|
protectedvirtual |
type | The type of rendering context create. |
Implements GHOST_Window.
Definition at line 65 of file GHOST_WindowSDL.cpp.
References blender::compositor::context, GHOST_kDrawingContextTypeOpenGL, GHOST_OPENGL_SDL_CONTEXT_FLAGS, GHOST_OPENGL_SDL_RESET_NOTIFICATION_STRATEGY, GHOST_Window::m_wantStereoVisual, and type.
|
protectedvirtual |
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 189 of file GHOST_WindowSDL.cpp.
|
protectedvirtual |
Resizes client rectangle height.
height | The new height of the client area of the window. |
Implements GHOST_IWindow.
Definition at line 175 of file GHOST_WindowSDL.cpp.
References GHOST_kSuccess, height, and width.
|
protectedvirtual |
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 183 of file GHOST_WindowSDL.cpp.
References GHOST_kSuccess, height, and width.
|
protectedvirtual |
Resizes client rectangle width.
width | The new width of the client area of the window. |
Implements GHOST_IWindow.
Definition at line 167 of file GHOST_WindowSDL.cpp.
References GHOST_kSuccess, height, and width.
|
inlineprotectedvirtual |
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.h.
References GHOST_kSuccess.
|
protectedvirtual |
Sets the state of the window (normal, minimized, maximized).
state | The state of the window. |
Implements GHOST_IWindow.
Definition at line 95 of file GHOST_WindowSDL.cpp.
References GHOST_kSuccess, GHOST_kWindowStateFullScreen, GHOST_kWindowStateMaximized, GHOST_kWindowStateMinimized, GHOST_kWindowStateNormal, and state.
|
protectedvirtual |
Sets the title displayed in the title bar.
title | The title to display in the title bar. |
Implements GHOST_IWindow.
Definition at line 140 of file GHOST_WindowSDL.cpp.
Referenced by GHOST_WindowSDL().
|
protectedvirtual |
Sets the cursor grab on the window using native window system calls.
Reimplemented from GHOST_Window.
Definition at line 587 of file GHOST_WindowSDL.cpp.
References GHOST_kSuccess.
|
protectedvirtual |
Sets the cursor shape on the window using native window system calls.
Implements GHOST_Window.
Definition at line 592 of file GHOST_WindowSDL.cpp.
References getStandardCursorShape(), GHOST_kStandardCursorDefault, and GHOST_kSuccess.
|
protectedvirtual |
Sets the cursor visibility on the window using native window system calls.
Implements GHOST_Window.
Definition at line 627 of file GHOST_WindowSDL.cpp.
References GHOST_kSuccess.
|
protectedvirtual |
Sets the cursor shape on the window using native window system calls.
Implements GHOST_Window.
Definition at line 608 of file GHOST_WindowSDL.cpp.
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 62 of file GHOST_WindowSDL.h.