class
ModalWindow
Base implementation of a window that when open doesn't allow you to interact with other windows.
Modal windows are similar to editor windows but cannot be docked, and are meant to be used for temporary operations like dialog boxes and progress bars.
Public
Constructors
ModalWindow
*********************************************************************
Methods
SetSize
Size of the window.
SetContentSize
Width & height of the content area of the window, in pixels.
The content area represents the area of the window not including the titlebar and the border.
GetContentSize
ScreenToWindowPosition
Converts screen coordinates to coordinates relative to the window's GUI content panel.
WindowToScreenPosition
Converts coordinates relative to the window's GUI content panel to screen coordinates.
GetContent
Returns the GUI panel at the root of the window.
You should all your own GUI elements as children of this element.
SetAllowCloseButton
staticGetRttiStatic
Protected
Constructors
ModalWindow
Methods
GetContentArea
Returns the area in which the GUI contents are displayed (not including title bar and other default elements).
Area is relative to window.
Initialize
Initializes data that cannot be initialized in the constructor.
Must be called right after construction.
DoOnWindowResized
Callback that triggers whenever the underlying render window changes size.
Fields
mContent
Private
Methods
UpdateSize
Updates the placement of child GUI elements and their non-client areas (used for OS move/resize operations).
Should be called after window size changes.
GetTitleBarHeight
Returns the height in pixels taken up by the title bar.