WorkspaceWindow
Class for Workspace window object, stores everything what Workspace window need.
#include "GUI/Elements/Windows/WorkspaceWindow.h"
Inherits from IWindow, IStateful, std::enable_shared_from_this< IWindow >
Public Functions
| Name | |
|---|---|
| WorkspaceWindow(bool show) | |
| ~WorkspaceWindow() override | |
| virtual void | clearGlobal() override<br>Set the global state to some default empty state. |
| Workspace::WorkspaceDiwne & | getNodeEditor() |
| virtual void | loadGlobal(const Memento & memento) override<br>Load global state from a memento. |
| virtual void | render() |
| virtual Memento | saveGlobal() override<br>Save shared global state. |
Public Attributes
| Name | |
|---|---|
| Application & | m_wholeApplication |
Additional inherited members
Public Functions inherited from IWindow
| Name | |
|---|---|
| IWindow(std::string title, bool show =false) | |
| virtual | ~IWindow() =default |
| virtual const char * | getID() const =0 |
| WPtr< InputController > | getInput()<br>Returns window input controller. |
| const char * | getName() |
| bool * | getShowPtr() |
| const std::string & | getTitle() const |
| void | hide() |
| bool | isVisible() const |
| const void | setTitle(std::string title) |
| void | show() |
Protected Functions inherited from IWindow
| Name | |
|---|---|
| void | updateWindowInfo()<br>Collect information about the current window. |
Public Attributes inherited from IWindow
| Name | |
|---|---|
| bool | m_autoFocus <br>When true the window will get focus immediately upon hovering over it. |
| std::string | m_title <br>Visible window title. |
| bool | m_windowInfoUpdated <br>A flag indicating the updateWindowInfo() method was called. |
| WindowManager * | m_windowManager <br>Weak reference to a WindowManager set when this window is added to it. |
| glm::vec2 | m_windowMax <br>Bottom right corner of the window. |
| glm::vec2 | m_windowMin <br>Top left corner of the window, same as m_windowPos (separate variable for clarity) |
| glm::vec2 | m_windowPos <br>Top-left corner of the window in screen coordinates. |
| glm::ivec2 | m_windowSize <br>Window width and height dimensions. |
Protected Attributes inherited from IWindow
| Name | |
|---|---|
| Ptr< InputController > | m_input |
| std::string | m_name <br>Full ImGui window identifier. |
| bool | m_nameNeedsUpdate <br>Workaround to avoid setting the name in the constructor (cannot call getID there) |
| bool | m_show |
Friends inherited from IWindow
| Name | |
|---|---|
| class | WindowManager |
Public Functions inherited from IStateful
| Name | |
|---|---|
| virtual | ~IStateful() |
| Memento | emptyMemento()<br>Create an empty memento (rapidjson::Document) |
Public Functions Documentation
function WorkspaceWindow
cpp
explicit WorkspaceWindow(
bool show
)explicit WorkspaceWindow(
bool show
)function ~WorkspaceWindow
cpp
~WorkspaceWindow() override~WorkspaceWindow() overridefunction clearGlobal
cpp
virtual void clearGlobal() overridevirtual void clearGlobal() overrideSet the global state to some default empty state.
Reimplements: IStateful::clearGlobal
function getNodeEditor
cpp
Workspace::WorkspaceDiwne & getNodeEditor()Workspace::WorkspaceDiwne & getNodeEditor()function loadGlobal
cpp
virtual void loadGlobal(
const Memento & memento
) overridevirtual void loadGlobal(
const Memento & memento
) overrideLoad global state from a memento.
Parameters:
- memento New global state
Reimplements: IStateful::loadGlobal
function render
cpp
virtual void render()virtual void render()Reimplements: IWindow::render
function saveGlobal
cpp
virtual Memento saveGlobal() overridevirtual Memento saveGlobal() overrideSave shared global state.
Reimplements: IStateful::saveGlobal
Public Attributes Documentation
variable m_wholeApplication
cpp
Application & m_wholeApplication;Application & m_wholeApplication;Updated on 2025-09-07 at 16:13:50 +0000