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::Panel Class Referenceabstract

Shared data for an imgui panel. More...

#include <Panel.hpp>

Inheritance diagram for galaxy::Panel:
Collaboration diagram for galaxy::Panel:

Public Member Functions

 Panel () noexcept
 Constructor.
 Panel (Panel &&) noexcept
 Move constructor.
 Panel (const Panel &) noexcept
 Copy constructor.
virtual ~Panel () noexcept
 Destructor.
virtual void draw ()=0
 Draw the ImGui widgets.
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.

Protected Attributes

bool m_show
 Should the panel be shown.

Detailed Description

Shared data for an imgui panel.

Definition at line 16 of file Panel.hpp.

Constructor & Destructor Documentation

◆ Panel() [1/3]

galaxy::Panel::Panel ( )
noexcept

Constructor.

Definition at line 12 of file Panel.cpp.

Here is the caller graph for this function:

◆ Panel() [2/3]

galaxy::Panel::Panel ( Panel && p)
noexcept

Move constructor.

Definition at line 17 of file Panel.cpp.

Here is the call graph for this function:

◆ Panel() [3/3]

galaxy::Panel::Panel ( const Panel & p)
noexcept

Copy constructor.

Definition at line 22 of file Panel.cpp.

Here is the call graph for this function:

◆ ~Panel()

galaxy::Panel::~Panel ( )
virtualnoexcept

Destructor.

Definition at line 27 of file Panel.cpp.

Member Function Documentation

◆ draw()

virtual void galaxy::Panel::draw ( )
pure virtual

Draw the ImGui widgets.

Implemented in galaxy::ConfigPanel, galaxy::Editor, and galaxy::ScenePanel.

Here is the call graph for this function:

◆ toggle()

void galaxy::Panel::toggle ( )
noexcept

Toggle visibility of panel.

Definition at line 31 of file Panel.cpp.

Here is the caller graph for this function:

◆ shown()

bool galaxy::Panel::shown ( ) const
nodiscardnoexcept

Check if panel is visible.

Returns
True if panel is visible.

Definition at line 36 of file Panel.cpp.

Here is the caller graph for this function:

◆ operator=() [1/2]

Panel & galaxy::Panel::operator= ( Panel && p)
noexcept

Move assignment operator.

Definition at line 41 of file Panel.cpp.

Here is the call graph for this function:

◆ operator=() [2/2]

Panel & galaxy::Panel::operator= ( const Panel & p)
noexcept

Copy assignment operator.

Definition at line 51 of file Panel.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_show

bool galaxy::Panel::m_show
protected

Should the panel be shown.

Definition at line 71 of file Panel.hpp.


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