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="", 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="", 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 538 of file mui_bar.cpp.

Constructor & Destructor Documentation

◆ MUITextButton() [1/2]

MUITextButton::MUITextButton ( )

Definition at line 581 of file mui_bar.cpp.

◆ MUITextButton() [2/2]

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

Definition at line 583 of file mui_bar.cpp.

◆ ~MUITextButton()

MUITextButton::~MUITextButton ( )

Definition at line 638 of file mui_bar.cpp.

Member Function Documentation

◆ Create()

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

Definition at line 592 of file mui_bar.cpp.

◆ GetButtonBitmap()

wxBitmap MUITextButton::GetButtonBitmap ( )
inline

Definition at line 562 of file mui_bar.cpp.

◆ GetSize()

wxSize MUITextButton::GetSize ( )
inline

Definition at line 553 of file mui_bar.cpp.

◆ Init()

void MUITextButton::Init ( )

Definition at line 645 of file mui_bar.cpp.

◆ OnSize()

void MUITextButton::OnSize ( wxSizeEvent & event)

Definition at line 669 of file mui_bar.cpp.

◆ SetColorScheme()

void MUITextButton::SetColorScheme ( ColorScheme cs)

Definition at line 657 of file mui_bar.cpp.

◆ SetState()

void MUITextButton::SetState ( int state)

Definition at line 667 of file mui_bar.cpp.

◆ SetText()

void MUITextButton::SetText ( const wxString & text)

Definition at line 650 of file mui_bar.cpp.

Member Data Documentation

◆ m_position

wxPoint MUITextButton::m_position

Definition at line 564 of file mui_bar.cpp.

◆ m_size

wxSize MUITextButton::m_size

Definition at line 563 of file mui_bar.cpp.


The documentation for this class was generated from the following file:
  • /home/runner/work/main/main/opencpn/gui/src/mui_bar.cpp