Skip to content

ModalWindow

#include "GUI/Elements/IWindow.h"

Inherits from IWindow, std::enable_shared_from_this< IWindow >

Inherited by BeforeNewTutModal, ConfirmModal, RemoveModelModal

Public Functions

Name
ModalWindow(const std::string & title)
voidclose()<br>Hides this dialog and all its children.
voidopen()

Protected Functions

Name
virtual voidonImGui() =0

Additional inherited members

Public Functions inherited from IWindow

Name
IWindow(bool show =false)
virtual~IWindow() =default
InputController &getInput()<br>Returns window input controller.
InputController *getInputPtr()
const char *getName() const
bool *getShowPtr()
voidhide()
boolisVisible() const
const std::string &setName(const char * name)
voidshow()

Protected Functions inherited from IWindow

Name
voidupdateWindowInfo()<br>Collect information about the current window.

Public Attributes inherited from IWindow

Name
glm::vec2m_windowMax <br>Bottom right corner of the window.
glm::vec2m_windowMin <br>Top left corner of the window, same as m_windowPos (separate variable for clarity)
glm::vec2m_windowPos <br>Top-left corner of the window in screen coordinates.
glm::ivec2m_windowSize <br>Window width and height dimensions.

Protected Attributes inherited from IWindow

Name
std::stringimGuiName
InputControllerInput
boolm_show
WindowManager *m_windowManager <br>Weak reference to a WindowManager set when this window is added to it.

Friends inherited from IWindow

Name
classWindowManager

Public Functions Documentation

function ModalWindow

cpp
ModalWindow(
    const std::string & title
)
ModalWindow(
    const std::string & title
)

function close

cpp
void close()
void close()

Hides this dialog and all its children.

function open

cpp
void open()
void open()

Protected Functions Documentation

function onImGui

cpp
virtual void onImGui() =0
virtual void onImGui() =0

Reimplemented by: BeforeNewTutModal::onImGui, ConfirmModal::onImGui, RemoveModelModal::onImGui


Updated on 2024-03-16 at 19:15:01 +0000