Skip to content

StartWindow

#include "GUI/Elements/Windows/StartWindow.h"

Inherits from IWindow, std::enable_shared_from_this< IWindow >

Public Functions

Name
StartWindow(bool show)
Ptr< Tutorial >getTutorial()
voidreloadTutorials()<br>searches through the tutorial directory and adds all found tutorial files to the window
virtual voidrender() override<br>Renders the Start window using ImGui.
voidrenderLeftPanel() const<br>Render the logo and the I3T brief description.
voidrenderRightPanel()
voidsetTutorial(Ptr< Tutorial > tut)

Public Attributes

Name
boolpopupActive

Additional inherited members

Public Functions inherited from IWindow

Name
IWindow(bool show =false)
virtual~IWindow() =default
virtual const char *getID() const =0
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 StartWindow

cpp
StartWindow(
    bool show
)
StartWindow(
    bool show
)

function getTutorial

cpp
inline Ptr< Tutorial > getTutorial()
inline Ptr< Tutorial > getTutorial()

function reloadTutorials

cpp
void reloadTutorials()
void reloadTutorials()

searches through the tutorial directory and adds all found tutorial files to the window

function render

cpp
virtual void render() override
virtual void render() override

Renders the Start window using ImGui.

Reimplements: IWindow::render

function renderLeftPanel

cpp
void renderLeftPanel() const
void renderLeftPanel() const

Render the logo and the I3T brief description.

function renderRightPanel

cpp
void renderRightPanel()
void renderRightPanel()

function setTutorial

cpp
inline void setTutorial(
    Ptr< Tutorial > tut
)
inline void setTutorial(
    Ptr< Tutorial > tut
)

Public Attributes Documentation

variable popupActive

cpp
bool popupActive = false;
bool popupActive = false;

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