Power System Platform  2024w23a
Loading...
Searching...
No Matches
ControlElementButton Class Reference

This class is responsible to handle the user interaction with control elements. More...

#include <ControlEditor.h>

Inheritance diagram for ControlElementButton:
Collaboration diagram for ControlElementButton:

Public Member Functions

 ControlElementButton (wxWindow *parent, wxString label, wxImage image, wxWindowID id=wxID_ANY)
 

Protected Member Functions

virtual void OnPaint (wxPaintEvent &event)
 
virtual void OnMouseEnter (wxMouseEvent &event)
 
virtual void OnMouseLeave (wxMouseEvent &event)
 
virtual void OnLeftClickDown (wxMouseEvent &event)
 
virtual void OnLeftClickUp (wxMouseEvent &event)
 

Protected Attributes

wxString m_label
 
wxFont m_font
 
wxPoint m_labelPosition
 
wxImage m_image
 
wxSize m_imageSize
 
wxPoint m_imagePosition
 
int m_borderSize = 2
 
bool m_mouseAbove = false
 
bool m_selected = false
 
wxSize m_buttonSize
 

Detailed Description

This class is responsible to handle the user interaction with control elements.

Author
Thales Lima Oliveira thale.nosp@m.s@uf.nosp@m.u.br
Date
05/10/2017

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