class
EditorRenderWindow
Type of editor window that has a backing RenderWindow.
This means these are actual windows (in operating system terms), while other editor window types may be virtual (i.e. they cannot exist on their own, and they must be docked in an EditorRenderWindow).
Each window contains a GUI widget and a basic window background and frame, and it may be dragged and optionally resized.
Public
Constructors
EditorRenderWindow
*********************************************************************
Methods
~EditorRenderWindow
SetPosition
Top-left corner of the window in screen space.
GetPosition
SetSize
Size of the window.
GetSize
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
GetDPIScale
Returns currently set DPI scale.
Scale of 1.0 corresponds to 96 DPI. physical pixel = logical pixel * DPI scale logical pixel = physical pixel / DPI ccale;
GetRenderWindow
Returns the render window that this editor window is being rendered to.
GetGUIWidget
Returns the GUI widget used for displaying GUI contents in the window.
GetGUICamera
Returns the camera used for rendering the window GUI contents.
Close
Closes and destroys the window.
Hide
Hides the window without closing it.
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.
HasFocus
Checks whether the window currently has keyboard focus.
staticGetRttiStatic
Protected
Methods
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.
DoOnWindowDPIScaleChanged
Callback that triggers whenever the underlying render window DPI scale changes.
staticCreateRenderWindow
Creates a render window suitable for EditorRenderWindow use.
- size
- Size of the window.
- isModal
- True if the window is modal (always in front, non-resizable).