Weather App
 
Loading...
Searching...
No Matches
Panel Class Reference

Represents a dynamic panel that can replace another panel in a wxWidgets application. More...

#include <Panel.h>

Inheritance diagram for Panel:
Collaboration diagram for Panel:

Public Member Functions

 Panel (Panel *origin)
 Constructs a new Panel and hides the previous one if provided.
 
 ~Panel ()
 Destructor that deletes the current panel and restores the previous one.
 
void SetTitle (std::string title)
 Sets the title of the main window.
 

Public Attributes

wxPanel * panel
 Pointer to the wxPanel instance managed by this class.
 

Private Attributes

Panel_origin
 Pointer to the previous panel.
 
std::string _title
 Stores the title of the panel.
 

Detailed Description

Represents a dynamic panel that can replace another panel in a wxWidgets application.

Constructor & Destructor Documentation

◆ Panel()

Panel::Panel ( Panel * origin)

Constructs a new Panel and hides the previous one if provided.

Parameters
originPointer to the previous panel (can be nullptr for the main panel).
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~Panel()

Panel::~Panel ( )

Destructor that deletes the current panel and restores the previous one.

Member Function Documentation

◆ SetTitle()

void Panel::SetTitle ( std::string title)

Sets the title of the main window.

Parameters
titleThe new title to set.

Member Data Documentation

◆ _origin

Panel* Panel::_origin
private

Pointer to the previous panel.

◆ _title

std::string Panel::_title
private

Stores the title of the panel.

◆ panel

wxPanel* Panel::panel

Pointer to the wxPanel instance managed by this class.


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