Skip to content

StatisticsWindow

A class representing a GUI window for displaying statistics. More...

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

Inherits from IWindow, std::enable_shared_from_this< IWindow >

Public Functions

Name
StatisticsWindow()<br>Constructs a StatisticsWindow object.
I3T_WINDOW(StatisticsWindow )<br>Macro to define window-related behavior.
virtual voidrender() override<br>Renders the contents of the statistics window.

Additional inherited members

Public Functions inherited from IWindow

Name
IWindow(std::string title, bool show =false)
IWindow(std::string title, int instanceIndex, bool show)
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
voidhide()
boolisVisible() const
const voidsetTitle(std::string title)
voidshow()

Protected Functions inherited from IWindow

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

Public Attributes inherited from IWindow

Name
boolm_autoFocus <br>When true the window will get focus immediately upon hovering over it.
intm_instanceIndex <br>Window instance identifier, for windows with multiple instances of same type, -1 default.
std::stringm_title <br>Visible window title.
boolm_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::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
Ptr< InputController >m_input
std::stringm_name <br>Full ImGui window identifier.
boolm_nameNeedsUpdate <br>Workaround to avoid setting the name in the constructor (cannot call getID there)
boolm_show

Friends inherited from IWindow

Name
classWindowManager

Detailed Description

cpp
class StatisticsWindow;
class StatisticsWindow;

A class representing a GUI window for displaying statistics.

This class inherits from the IWindow interface and provides an implementation for rendering a statistics window in the I3T application.

Public Functions Documentation

function StatisticsWindow

cpp
StatisticsWindow()
StatisticsWindow()

Constructs a StatisticsWindow object.

Constructs a StatisticsWindow and initializes its title.

function I3T_WINDOW

cpp
I3T_WINDOW(
    StatisticsWindow 
)
I3T_WINDOW(
    StatisticsWindow 
)

Macro to define window-related behavior.

function render

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

Renders the contents of the statistics window.

Reimplements: IWindow::render

Renders the statistics window with performance and GPU data.

This method overrides the render function in the IWindow interface.

This method creates the GUI window, updates window information, and draws its content. If the window is closed, it dispatches a command to hide it.


Updated on 2025-05-31 at 12:55:30 +0000