14 : wxBitmapToggleButton(parent, id, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE)
15 ,
m_on(
this,
"check_on", 18)
16 ,
m_half(
this,
"check_half", 18)
17 ,
m_off(
this,
"check_off", 18)
24{
25
26 if (parent)
27 SetBackgroundColour(parent->GetBackgroundColour());
29#ifdef __WXOSX__
30 Bind(wxEVT_SET_FOCUS, &CheckBox::updateBitmap, this);
31 Bind(wxEVT_KILL_FOCUS, &CheckBox::updateBitmap, this);
32 Bind(wxEVT_ENTER_WINDOW, &CheckBox::updateBitmap, this);
33 Bind(wxEVT_LEAVE_WINDOW, &CheckBox::updateBitmap, this);
34#endif
35
36#ifdef __WXGTK__
37 Slic3r::GUI::RemoveButtonBorder(this);
38#endif
39
41}
void Rescale()
Definition CheckBox.cpp:57
void update()
Definition CheckBox.cpp:73
ScalableBitmap m_off_disabled
Definition CheckBox.hpp:53
ScalableBitmap m_on_disabled
Definition CheckBox.hpp:51
ScalableBitmap m_half
Definition CheckBox.hpp:49
ScalableBitmap m_off
Definition CheckBox.hpp:50
ScalableBitmap m_off_focused
Definition CheckBox.hpp:56
ScalableBitmap m_half_disabled
Definition CheckBox.hpp:52
ScalableBitmap m_on
Definition CheckBox.hpp:48
ScalableBitmap m_on_focused
Definition CheckBox.hpp:54
ScalableBitmap m_half_focused
Definition CheckBox.hpp:55
bool m_half_checked
Definition CheckBox.hpp:57