class
IEditorWindow
Provides a common interface for all editor window types.
Public
Methods
~IEditorWindow
SetPosition
Top-left corner of the window in screen space.
GetPosition
SetSize
Size of the window.
GetSize
SetLogicalSize
Sets the size of the window in logical units.
This means window will scale with DPI scale.
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;
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.
staticGetRttiStatic
Internal
Methods
GetContent
Returns the GUI panel at the root of the window.
You should all your own GUI elements as children of this element.
Initialize
Initializes data that cannot be initialized in the constructor.
Must be called right after construction.
Update
Called once every frame.
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.