OpenCPN Partial API docs
Loading...
Searching...
No Matches
MUIButton Class Reference
Inheritance diagram for MUIButton:

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)
 
void SetColorScheme (ColorScheme cs)
 
void OnSize (wxSizeEvent &event)
 
void OnPaint (wxPaintEvent &event)
 
void OnLeftDown (wxMouseEvent &event)
 
void OnLeftUp (wxMouseEvent &event)
 
wxBitmap GetBitmapResource (const wxString &name)
 
wxIcon GetIconResource (const wxString &name)
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 

Detailed Description

Definition at line 204 of file MUIBar.cpp.

Constructor & Destructor Documentation

◆ MUIButton() [1/2]

MUIButton::MUIButton ( )

Definition at line 274 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 276 of file MUIBar.cpp.

◆ ~MUIButton()

MUIButton::~MUIButton ( )

Definition at line 306 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 285 of file MUIBar.cpp.

◆ CreateControls()

void MUIButton::CreateControls ( )

Definition at line 313 of file MUIBar.cpp.

◆ GetBitmapResource()

wxBitmap MUIButton::GetBitmapResource ( const wxString &  name)

Definition at line 424 of file MUIBar.cpp.

◆ GetIconResource()

wxIcon MUIButton::GetIconResource ( const wxString &  name)

Definition at line 430 of file MUIBar.cpp.

◆ Init()

void MUIButton::Init ( )

Definition at line 308 of file MUIBar.cpp.

◆ OnLeftDown()

void MUIButton::OnLeftDown ( wxMouseEvent &  event)

Definition at line 497 of file MUIBar.cpp.

◆ OnLeftUp()

void MUIButton::OnLeftUp ( wxMouseEvent &  event)

Definition at line 499 of file MUIBar.cpp.

◆ OnPaint()

void MUIButton::OnPaint ( wxPaintEvent &  event)

Definition at line 445 of file MUIBar.cpp.

◆ OnSize()

void MUIButton::OnSize ( wxSizeEvent &  event)

Definition at line 387 of file MUIBar.cpp.

◆ SetColorScheme()

void MUIButton::SetColorScheme ( ColorScheme  cs)

Definition at line 323 of file MUIBar.cpp.

◆ SetState()

void MUIButton::SetState ( int  state)

Definition at line 366 of file MUIBar.cpp.

◆ ShowToolTips()

bool MUIButton::ShowToolTips ( )
static

Should we show tooltips?

Definition at line 364 of file MUIBar.cpp.


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