Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
Antares::Component::CaptionPanel Class Reference

A simple panel with a caption. More...

#include <captionpanel.h>

Inheritance diagram for Antares::Component::CaptionPanel:
Antares::Component::Panel

Public Member Functions

Constructors & Destructor
 CaptionPanel (wxWindow *parent)
 Default contructor.
 
 CaptionPanel (wxWindow *parent, const wxString &caption)
 Constructor.
 
 ~CaptionPanel ()
 Destructor.
 
- Public Member Functions inherited from Antares::Component::Panel
 Panel (wxWindow *parent)
 Constructor.
 
virtual ~Panel ()
 Destructor.
 
virtual void onMouseDown (wxMouseEvent &)
 Click down.
 
virtual void onMouseUp (wxMouseEvent &)
 Click up.
 
virtual void onMouseClick ()
 The panel has been clicked (delayed)
 
virtual void onMouseEnter ()
 The mouse has entered.
 
virtual void onMouseLeave ()
 The mouse has leaved.
 
virtual void onMouseMoved (int, int)
 The mouse has moved.
 

Caption

const wxString & caption () const
 Get the caption of the panel.
 
void caption (const wxString &s)
 Set the caption of the panel.
 
void onDraw (wxPaintEvent &evt)
 Event: The panel has to paint itself.
 
void onResize (wxSizeEvent &evt)
 Event: The panel is been resizing.
 

Additional Inherited Members

- Static Public Member Functions inherited from Antares::Component::Panel
static void OnMouseMoveFromExternalComponent ()
 Event triggered by any other component (not derived from Panel)
 
- Protected Member Functions inherited from Antares::Component::Panel
virtual bool triggerMouseClickEvent () const
 

Detailed Description

A simple panel with a caption.

Constructor & Destructor Documentation

◆ CaptionPanel() [1/2]

Antares::Component::CaptionPanel::CaptionPanel ( wxWindow * parent)

Default contructor.

Parameters
parentThe parent control

◆ CaptionPanel() [2/2]

Antares::Component::CaptionPanel::CaptionPanel ( wxWindow * parent,
const wxString & caption )

Constructor.

Parameters
parentThe parent control
captionCaption of the panel

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