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() |
void | reloadTutorials(bool english)<br>searches through the tutorial directory and adds all found tutorial files to the window |
virtual void | render() override<br>Renders the Start window using ImGui. |
void | renderLeftPanel() const<br>Render the logo and the I3T brief description. |
void | renderRightPanel() |
void | setTutorial(Ptr< Tutorial > tut) |
Public Attributes
Name | |
---|---|
bool | language_is_english |
bool | popupActive |
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 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(
bool english
)
void reloadTutorials(
bool english
)
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 language_is_english
cpp
bool language_is_english = false;
bool language_is_english = false;
variable popupActive
cpp
bool popupActive = false;
bool popupActive = false;
Updated on 2024-10-16 at 18:09:43 +0000