class
DockableEditorWindows
Handles opening and closing of dockable editor windows.
Its primary purpose is to keep track of all types of windows so they can be saved and restored upon program shutdown/startup, as well as being able to change docked window layout on the fly.
Public
Constructors
DockableEditorWindows
Methods
~DockableEditorWindows
Update
Called every frame.
RegisterWindow
Registers a window that can then be opened by calling Open().
When loading a window layout this name and callback will be used to attempt creating the window.
- name
- Unique name for the window.
- createCallback
- Callback that returns a new instance of the window.
UnregisterWindow
Unregisters a window so it may no longer be opened using this manager.
Open
Creates a window with the given name.
If a window is already created it returns the existing instance. Window is opened in a new key window.
- name
- The name of the window.
Returns: Created window, or null if it failed.
Create
Creates a new window an inserts it into the specified tab group.
IsValidWindow
Checks if the provided name represents a window that can be created.
CloseAll
Closes all open dockable editor windows.
GetLayout
Retrieves the layout of all currently docked windows.
You may later use this layout to restore exact position of the windows.
SetLayout
Positions all windows according to the provided layout.
It will open new windows or close current ones if needed.
staticPreRegisterWindow
Allows you to queue up windows that will be registered as soon as an instance of DockableEditorWindows is created.
staticInstance
Returns a reference to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticInstancePtr
Returns a pointer to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticShutDown
Shuts down this module and frees any resources it is using.
staticIsStarted
Query if the module has been started.
Protected
Methods
~Module<T>
OnStartUp
Override if you want your module to be notified once it has been constructed and started.
OnShutDown
Override if you want your module to be notified just before it is deleted.
staticInstanceInternal
Returns a singleton instance of this module.
Private
Methods
DoOnFocusGained
Triggered whenever a window gains focus.
DoOnFocusLost
Triggered whenever a window loses focus.