class
DropDownWindow
This is a generic GUI drop down window class that can be used for displaying custom drop down content.
Public
Constructors
DropDownWindow
Methods
~DropDownWindow
SetPosition
Top-left corner of the window in screen space.
GetPosition
SetSize
Size of the window.
GetSize
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;
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.
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.
staticGetRttiStatic
Protected
Constructors
DropDownWindow
Fields
mContent
Private
Methods
DropDownFocusGained
Triggered when the user clicks outside of the drop down area.