galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::LogPanel Class Referencefinal

Panel for showing console log messages. More...

#include <LogPanel.hpp>

Inheritance diagram for galaxy::LogPanel:
Collaboration diagram for galaxy::LogPanel:

Public Member Functions

 LogPanel () noexcept
 Constructor.
virtual ~LogPanel () noexcept
 Destructor.
void draw () override
 Draw config panel.
Public Member Functions inherited from galaxy::Panel
 Panel () noexcept
 Constructor.
 Panel (Panel &&) noexcept
 Move constructor.
 Panel (const Panel &) noexcept
 Copy constructor.
virtual ~Panel () noexcept
 Destructor.
void toggle () noexcept
 Toggle visibility of panel.
bool shown () const noexcept
 Check if panel is visible.
Panel & operator= (Panel &&) noexcept
 Move assignment operator.
Panel & operator= (const Panel &) noexcept
 Copy assignment operator.

Private Attributes

EditorSink m_sink
 Bridges the panel and the log system.
ImVec2 m_icon_size
 Icon size for buttons.
bool m_show_info
 Level filter for info.
bool m_show_warning
 Level filter for warning.
bool m_show_error
 Level filter for error.

Additional Inherited Members

Protected Attributes inherited from galaxy::Panel
bool m_show
 Should the panel be shown.

Detailed Description

Panel for showing console log messages.

Definition at line 62 of file LogPanel.hpp.

Constructor & Destructor Documentation

◆ LogPanel()

galaxy::LogPanel::LogPanel ( )
noexcept

Constructor.

Definition at line 35 of file LogPanel.cpp.

◆ ~LogPanel()

galaxy::LogPanel::~LogPanel ( )
virtualnoexcept

Destructor.

Definition at line 45 of file LogPanel.cpp.

Member Function Documentation

◆ draw()

void galaxy::LogPanel::draw ( )
overridevirtual

Draw config panel.

Implements galaxy::Panel.

Definition at line 49 of file LogPanel.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_sink

EditorSink galaxy::LogPanel::m_sink
private

Bridges the panel and the log system.

Definition at line 84 of file LogPanel.hpp.

◆ m_icon_size

ImVec2 galaxy::LogPanel::m_icon_size
private

Icon size for buttons.

Definition at line 89 of file LogPanel.hpp.

◆ m_show_info

bool galaxy::LogPanel::m_show_info
private

Level filter for info.

Definition at line 94 of file LogPanel.hpp.

◆ m_show_warning

bool galaxy::LogPanel::m_show_warning
private

Level filter for warning.

Definition at line 99 of file LogPanel.hpp.

◆ m_show_error

bool galaxy::LogPanel::m_show_error
private

Level filter for error.

Definition at line 104 of file LogPanel.hpp.


The documentation for this class was generated from the following files: