mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
27 lines
605 B
C++
27 lines
605 B
C++
#pragma once
|
|
|
|
class wxToggleButton;
|
|
|
|
class IconButton : public wxPanel
|
|
{
|
|
public:
|
|
IconButton(wxWindow* parent,
|
|
wxWindowID id = wxID_ANY,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize,
|
|
long style = wxTAB_TRAVERSAL,
|
|
const wxString& name = wxPanelNameStr);
|
|
|
|
void SetBitmapAndLabel(const wxBitmap bitmap, const std::string text);
|
|
void SetSelected(bool selected);
|
|
|
|
private:
|
|
void OnMouseClick(wxMouseEvent& e);
|
|
|
|
private:
|
|
wxFlexGridSizer* _sizer;
|
|
wxStaticBitmap* _bitmap;
|
|
wxStaticText* _text;
|
|
bool _selected;
|
|
};
|