Manages the dockable layout system for the editor interface. More...
#include <Dockspace.h>
Public Types | |
enum class | Region { Left = 0 , Right , Bottom , Top , Center } |
Static Public Member Functions | |
static void | RegisterPanel (const char *name, Editor::Panel *panel, Region defaultRegion) |
Register a panel to be managed by the dockspace. | |
static void | Begin () |
Initialize and begin a new dockspace frame. | |
static void | End () |
Finalize the dockspace for the current frame. | |
static void | SaveLayout (const char *filename) |
Save the current dockspace layout configuration to a file. | |
static void | LoadLayout (const char *filename) |
Load a previously saved dockspace layout configuration from a file. | |
static void | Reset () |
Reset the dockspace layout to default settings on the next Begin() call. | |
Manages the dockable layout system for the editor interface.
The Dockspace class provides functionality to organize and manage editor panels in a dockable interface. It allows panels to be registered, arranged in specific regions, and handles saving/loading of layout configurations.
|
strong |
|
static |
Initialize and begin a new dockspace frame.
Must be called at the beginning of each frame before rendering any panels.
|
static |
Finalize the dockspace for the current frame.
Must be called at the end of each frame after all panels have been rendered.
|
static |
Load a previously saved dockspace layout configuration from a file.
filename | Path to the file containing layout settings to load |
|
static |
Register a panel to be managed by the dockspace.
name | The display name of the panel |
panel | Pointer to the panel to register |
defaultRegion | The default region where the panel should be docked |
|
static |
|
static |
Save the current dockspace layout configuration to a file.
filename | Path to the file where layout settings will be saved |