class MainEditorWindow

Inherits: EditorRenderWindow

Primary editor window, containing the menu bar, status bar and the dock area.

Public

Constructors

MainEditorWindow

MainEditorWindow() = default

*********************************************************************

Methods

~MainEditorWindow

~MainEditorWindow() noexcept

Update

void Update() override

Called once every frame.

GetDockManager

DockManager &GetDockManager() const

Gets the DockManager that is responsible for docking and placement of dockable editors windows on the main window.

GetMenuBar

GUIMenuBar &GetMenuBar() const

Gets the primary menu bar element.

GetStatusBar

GUIStatusBar &GetStatusBar() const

Gets status bar GUI element.

staticCreate

static MainEditorWindow *Create(const SPtr<RenderWindow> &renderWindow)

Creates a new main editor window.

If one is already open this method will return the existing one.

renderWindow
Previously created render window to initialize the main editor window in.

Returns: Instance of the main editor window.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Protected

Constructors

MainEditorWindow

MainEditorWindow(const SPtr<RenderWindow> &renderWindow)

Methods

Initialize

void Initialize() override

Initializes data that cannot be initialized in the constructor.

Must be called right after construction.

DoOnWindowResized

void DoOnWindowResized() override

Callback that triggers whenever the underlying render window changes size.

DoOnWindowDPIScaleChanged

void DoOnWindowDPIScaleChanged(float dpiScale) override

Callback that triggers whenever the underlying render window DPI scale changes.

UpdateAreas

void UpdateAreas()

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.

Fields

mMenuBar

GUIMenuBar * mMenuBar

mDockManager

DockManager * mDockManager

mStatusBar

GUIStatusBar * mStatusBar

mProfilerOverlay

HProfilerOverlay mProfilerOverlay