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::ConfigPanel Class Referencefinal

Panel for editing engine settings. More...

#include <ConfigPanel.hpp>

Inheritance diagram for galaxy::ConfigPanel:
Collaboration diagram for galaxy::ConfigPanel:

Public Member Functions

 ConfigPanel () noexcept
 Constructor.
virtual ~ConfigPanel () 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 Member Functions

void do_object (nlohmann::json &json)
 Handles rendering json objects.
void do_array (nlohmann::json &json)
 Handles rendering array objects.

Private Attributes

int m_counter
 Internal level counter for rendering.

Additional Inherited Members

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

Detailed Description

Panel for editing engine settings.

Definition at line 20 of file ConfigPanel.hpp.

Constructor & Destructor Documentation

◆ ConfigPanel()

galaxy::ConfigPanel::ConfigPanel ( )
noexcept

Constructor.

Definition at line 18 of file ConfigPanel.cpp.

◆ ~ConfigPanel()

galaxy::ConfigPanel::~ConfigPanel ( )
virtualnoexcept

Destructor.

Definition at line 23 of file ConfigPanel.cpp.

Member Function Documentation

◆ draw()

void galaxy::ConfigPanel::draw ( )
overridevirtual

Draw config panel.

Implements galaxy::Panel.

Definition at line 27 of file ConfigPanel.cpp.

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

◆ do_object()

void galaxy::ConfigPanel::do_object ( nlohmann::json & json)
private

Handles rendering json objects.

Parameters
jsonJSON object.

Definition at line 70 of file ConfigPanel.cpp.

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

◆ do_array()

void galaxy::ConfigPanel::do_array ( nlohmann::json & json)
private

Handles rendering array objects.

Parameters
jsonJSON array.

Definition at line 124 of file ConfigPanel.cpp.

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

Member Data Documentation

◆ m_counter

int galaxy::ConfigPanel::m_counter
private

Internal level counter for rendering.

Definition at line 57 of file ConfigPanel.hpp.


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