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

Public Member Functions

 MUIButton (wxWindow *parent, wxWindowID id=wxID_ANY, float scale_factor=1.0, const wxString &bitmapState0=wxEmptyString, const wxString &bitmapState1=wxEmptyString, const wxString &bitmapState2=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxNO_BORDER)
 
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, float scale_factor=1.0, const wxString &bitmapState0=wxEmptyString, const wxString &bitmapState1=wxEmptyString, const wxString &bitmapState2=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxNO_BORDER)
 
void Init ()
 
void CreateControls ()
 
void SetState (int state)
 
int GetState ()
 
void SetColorScheme (ColorScheme cs)
 
void OnSize (wxSizeEvent &event)
 
void OnLeftDown (wxMouseEvent &event)
 
void OnLeftUp (wxMouseEvent &event)
 
wxBitmap GetBitmapResource (const wxString &name)
 
wxIcon GetIconResource (const wxString &name)
 
wxBitmap GetButtonBitmap ()
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips?
 

Public Attributes

wxSize m_size
 
wxPoint m_position
 

Detailed Description

Definition at line 219 of file MUIBar.cpp.

Constructor & Destructor Documentation

◆ MUIButton() [1/2]

MUIButton::MUIButton ( )

Definition at line 278 of file MUIBar.cpp.

◆ MUIButton() [2/2]

MUIButton::MUIButton ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
float  scale_factor = 1.0,
const wxString &  bitmapState0 = wxEmptyString,
const wxString &  bitmapState1 = wxEmptyString,
const wxString &  bitmapState2 = wxEmptyString,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxNO_BORDER 
)

Definition at line 280 of file MUIBar.cpp.

◆ ~MUIButton()

MUIButton::~MUIButton ( )

Definition at line 313 of file MUIBar.cpp.

Member Function Documentation

◆ Create()

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

Definition at line 290 of file MUIBar.cpp.

◆ CreateControls()

void MUIButton::CreateControls ( )

Definition at line 320 of file MUIBar.cpp.

◆ GetButtonBitmap()

wxBitmap MUIButton::GetButtonBitmap ( )
inline

Definition at line 256 of file MUIBar.cpp.

◆ GetState()

int MUIButton::GetState ( )
inline

Definition at line 246 of file MUIBar.cpp.

◆ Init()

void MUIButton::Init ( )

Definition at line 315 of file MUIBar.cpp.

◆ OnSize()

void MUIButton::OnSize ( wxSizeEvent &  event)

Definition at line 394 of file MUIBar.cpp.

◆ SetColorScheme()

void MUIButton::SetColorScheme ( ColorScheme  cs)

Definition at line 330 of file MUIBar.cpp.

◆ SetState()

void MUIButton::SetState ( int  state)

Definition at line 375 of file MUIBar.cpp.

◆ ShowToolTips()

bool MUIButton::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 373 of file MUIBar.cpp.

Member Data Documentation

◆ m_position

wxPoint MUIButton::m_position

Definition at line 261 of file MUIBar.cpp.

◆ m_size

wxSize MUIButton::m_size

Definition at line 260 of file MUIBar.cpp.


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