OpenCPN Partial API docs
Loading...
Searching...
No Matches
MUITextButton Class Reference

Public Member Functions

 MUITextButton (wxWindow *parent, wxWindowID id, float scale_factor, wxColor backColor, const wxString &text=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxNO_BORDER)
 
bool Create (wxWindow *parent, wxWindowID id, float scale_factor=1.0, const wxString &text=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxNO_BORDER)
 
void Init ()
 
wxSize GetSize ()
 
void SetState (int state)
 
void SetColorScheme (ColorScheme cs)
 
void OnSize (wxSizeEvent &event)
 
void OnLeftDown (wxMouseEvent &event)
 
void OnLeftUp (wxMouseEvent &event)
 
void SetText (const wxString &text)
 
wxBitmap GetButtonBitmap ()
 

Public Attributes

wxSize m_size
 
wxPoint m_position
 

Detailed Description

Definition at line 547 of file MUIBar.cpp.

Constructor & Destructor Documentation

◆ MUITextButton() [1/2]

MUITextButton::MUITextButton ( )

Definition at line 591 of file MUIBar.cpp.

◆ MUITextButton() [2/2]

MUITextButton::MUITextButton ( wxWindow *  parent,
wxWindowID  id,
float  scale_factor,
wxColor  backColor,
const wxString &  text = wxEmptyString,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxNO_BORDER 
)

Definition at line 593 of file MUIBar.cpp.

◆ ~MUITextButton()

MUITextButton::~MUITextButton ( )

Definition at line 648 of file MUIBar.cpp.

Member Function Documentation

◆ Create()

bool MUITextButton::Create ( wxWindow *  parent,
wxWindowID  id,
float  scale_factor = 1.0,
const wxString &  text = wxEmptyString,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxNO_BORDER 
)

Definition at line 602 of file MUIBar.cpp.

◆ GetButtonBitmap()

wxBitmap MUITextButton::GetButtonBitmap ( )
inline

Definition at line 572 of file MUIBar.cpp.

◆ GetSize()

wxSize MUITextButton::GetSize ( )
inline

Definition at line 563 of file MUIBar.cpp.

◆ Init()

void MUITextButton::Init ( )

Definition at line 655 of file MUIBar.cpp.

◆ OnSize()

void MUITextButton::OnSize ( wxSizeEvent &  event)

Definition at line 679 of file MUIBar.cpp.

◆ SetColorScheme()

void MUITextButton::SetColorScheme ( ColorScheme  cs)

Definition at line 667 of file MUIBar.cpp.

◆ SetState()

void MUITextButton::SetState ( int  state)

Definition at line 677 of file MUIBar.cpp.

◆ SetText()

void MUITextButton::SetText ( const wxString &  text)

Definition at line 660 of file MUIBar.cpp.

Member Data Documentation

◆ m_position

wxPoint MUITextButton::m_position

Definition at line 574 of file MUIBar.cpp.

◆ m_size

wxSize MUITextButton::m_size

Definition at line 573 of file MUIBar.cpp.


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