#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/RadioBox.hpp>
◆ RadioBox()
| Slic3r::GUI::RadioBox::RadioBox |
( |
wxWindow * | parent | ) |
|
15 : wxBitmapToggleButton(parent, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE)
16 ,
m_on(
this,
"radio_on", 18)
17 ,
m_off(
this,
"radio_off", 18)
18 ,
m_ban(
this,
"radio_ban", 18)
19{
20
21 if (parent) SetBackgroundColour(parent->GetBackgroundColour());
22
24#ifdef __WXGTK__
25 Slic3r::GUI::RemoveButtonBorder(this);
26 wxSize bestSize = GetBestSize();
27 bestSize.IncTo(
m_on.GetBmpSize());
28 SetSize(bestSize);
29 SetMinSize(bestSize);
30#else
31 SetSize(
m_on.GetBmpSize());
32 SetMinSize(
m_on.GetBmpSize());
33#endif
34}
void update()
Definition RadioBox.cpp:59
ScalableBitmap m_on
Definition RadioBox.hpp:29
ScalableBitmap m_ban
Definition RadioBox.hpp:31
ScalableBitmap m_off
Definition RadioBox.hpp:30
References m_ban, m_off, m_on, and update().
◆ Disable()
| bool Slic3r::GUI::RadioBox::Disable |
( |
| ) |
|
|
inline |
◆ Rescale()
| void Slic3r::GUI::RadioBox::Rescale |
( |
| ) |
|
44{
48#ifdef __WXGTK__
49 wxSize bestSize = GetBestSize();
50 bestSize.IncTo(
m_on.GetBmpSize());
51 SetSize(bestSize);
52 SetMinSize(bestSize);
53#else
54 SetSize(
m_on.GetBmpSize());
55 SetMinSize(
m_on.GetBmpSize());
56#endif
57}
References m_off, m_on, and update().
◆ SetValue()
| void Slic3r::GUI::RadioBox::SetValue |
( |
bool | value | ) |
|
|
override |
◆ update()
| void Slic3r::GUI::RadioBox::update |
( |
| ) |
|
|
private |
◆ m_ban
◆ m_off
◆ m_on
The documentation for this class was generated from the following files:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/RadioBox.hpp
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/RadioBox.cpp