OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
FanSwitchButton Class Reference

#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/ImageSwitchButton.hpp>

Inheritance diagram for FanSwitchButton:
Collaboration diagram for FanSwitchButton:

Public Member Functions

 FanSwitchButton (wxWindow *parent, ScalableBitmap &img_on, ScalableBitmap &img_off, long style=0)
void SetLabels (wxString const &lbl_on, wxString const &lbl_off)
void SetImages (ScalableBitmap &img_on, ScalableBitmap &img_off)
void SetTextColor (StateColor const &color)
void SetValue (bool value)
void SetPadding (int padding)
bool GetValue ()
void Rescale ()
void setFanValue (int val)
void UseTextFan ()
void UseTextAirCondition ()
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0)
void SetCornerRadius (double radius)
void SetBorderWidth (int width)
void SetTopMargin (int margin)
void SetBorderColor (StateColor const &color)
void SetBorderColorNormal (wxColor const &color)
void SetBorderStyle (wxPenStyle style)
void SetBackgroundColor (StateColor const &color)
void SetBackgroundColorNormal (wxColor const &color)
void SetBackgroundColor2 (StateColor const &color)
void ShowBadge (bool show)

Static Public Member Functions

static wxColor GetParentBackgroundColor (wxWindow *parent)

Protected Member Functions

void eraseEvent (wxEraseEvent &evt)
void sizeEvent (wxSizeEvent &evt)
virtual void doRender (wxDC &dc)

Protected Attributes

double radius
int border_width = 1
int top_margin = 0
wxPenStyle border_style = wxPENSTYLE_SOLID
StateHandler state_handler
StateColor border_color
StateColor background_color
StateColor background_color2
ScalableBitmap badge

Private Member Functions

void messureSize ()
void paintEvent (wxPaintEvent &evt)
void render (wxDC &dc)
void mouseDown (wxMouseEvent &event)
void mouseReleased (wxMouseEvent &event)
void mouseEnterWindow (wxMouseEvent &event)
void mouseLeaveWindow (wxMouseEvent &event)
void sendButtonEvent ()
void SetText (const wxString &text)

Private Attributes

ScalableBitmap m_on
ScalableBitmap m_off
bool m_on_off
int m_padding
bool pressedDown = false
bool hover = false
wxSize textSize
wxSize minSize
int m_speed
wxString labels [2]
wxString m_text
StateColor text_color

Detailed Description

Constructor & Destructor Documentation

◆ FanSwitchButton()

FanSwitchButton::FanSwitchButton ( wxWindow * parent,
ScalableBitmap & img_on,
ScalableBitmap & img_off,
long style = 0 )
206 : text_color(std::make_pair(0x6B6B6B, (int)StateColor::Disabled), std::make_pair(*wxBLACK, (int)StateColor::Normal))
207{
208 radius = 0;
209 m_padding = 0;
210 m_speed = 0;
211 m_on = img_on;
212 m_off = img_off;
213 background_color = StateColor(std::make_pair(*wxWHITE, (int)StateColor::Disabled), std::make_pair(DEFAULT_PRESS_COL, (int)StateColor::Pressed),
214 std::make_pair(*wxWHITE, (int)StateColor::Normal));
215 border_color = StateColor(std::make_pair(*wxWHITE, (int)StateColor::Disabled), std::make_pair(DEFAULT_HOVER_COL, (int)StateColor::Focused),
216 std::make_pair(DEFAULT_HOVER_COL, (int)StateColor::Hovered), std::make_pair(*wxWHITE, (int)StateColor::Normal));
217
218 StaticBox::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, style);
219
220 messureSize();
221 Refresh();
222}
static const wxColour DEFAULT_HOVER_COL
Definition ImageSwitchButton.cpp:42
static const wxColour DEFAULT_PRESS_COL
Definition ImageSwitchButton.cpp:43
#define style
Definition WipeTowerDialog.cpp:101
void messureSize()
Definition ImageSwitchButton.cpp:264
ScalableBitmap m_on
Definition ImageSwitchButton.hpp:91
ScalableBitmap m_off
Definition ImageSwitchButton.hpp:92
int m_speed
Definition ImageSwitchButton.hpp:100
int m_padding
Definition ImageSwitchButton.hpp:94
StateColor text_color
Definition ImageSwitchButton.hpp:105
@ Hovered
Definition StateColor.hpp:20
@ Normal
Definition StateColor.hpp:16
@ Disabled
Definition StateColor.hpp:22
@ Pressed
Definition StateColor.hpp:21
@ Focused
Definition StateColor.hpp:19
StateColor border_color
Definition StaticBox.hpp:72
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0)
Definition StaticBox.cpp:51
double radius
Definition StaticBox.hpp:67
StateColor background_color
Definition StaticBox.hpp:73

References StaticBox::background_color, StaticBox::border_color, StaticBox::Create(), DEFAULT_HOVER_COL, DEFAULT_PRESS_COL, StateColor::Disabled, StateColor::Focused, StateColor::Hovered, m_off, m_on, m_padding, m_speed, messureSize(), StateColor::Normal, StateColor::Pressed, StaticBox::radius, style, and text_color.

Here is the call graph for this function:

Member Function Documentation

◆ Create()

bool StaticBox::Create ( wxWindow * parent,
wxWindowID id = wxID_ANY,
const wxPoint & pos = wxDefaultPosition,
const wxSize & size = wxDefaultSize,
long style = 0 )
inherited
52{
53 if (style & wxBORDER_NONE)
54 border_width = 0;
55 wxWindow::Create(parent, id, pos, size, style);
57 state_handler.update_binds();
58 SetBackgroundColour(GetParentBackgroundColor(parent));
59 return true;
60}
int border_width
Definition StaticBox.hpp:68
static wxColor GetParentBackgroundColor(wxWindow *parent)
Definition StaticBox.cpp:122
StateHandler state_handler
Definition StaticBox.hpp:71
StateColor background_color2
Definition StaticBox.hpp:74

References background_color, background_color2, border_color, border_width, GetParentBackgroundColor(), state_handler, and style.

Referenced by FanSwitchButton::FanSwitchButton(), ImageSwitchButton::ImageSwitchButton(), ModeSwitchButton::ModeSwitchButton(), StaticBox(), Button::Create(), SpinInput::Create(), TabButton::Create(), TempInput::Create(), and TextInput::Create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ doRender()

void StaticBox::doRender ( wxDC & dc)
protectedvirtualinherited

Reimplemented in FilamentStepIndicator, ModeSwitchButton, StepCtrl, StepIndicator, and TabCtrl.

215{
216 wxSize size = GetSize();
217 int states = state_handler.states();
218 if (background_color2.count() == 0) {
219 if ((border_width && border_color.count() > 0) || background_color.count() > 0) {
220 int topM = top_margin > 0 ? top_margin : 0;
221 wxRect rc(0, topM, size.x, size.y - topM);
222 if (border_width && border_color.count() > 0) {
223 const double scale = dc.GetContentScaleFactor();
224
225 // Snap rect edges to physical pixel boundaries so the 1px pen doesn't straddle a pixel boundary
226 auto snap = [&](int logical) -> int {
227 return (int)(ceil(logical * scale) / scale);
228 };
229
230 int deflate = snap(border_width / 2.0); // at 175%: snap(0.5) = snap→1/1.75 ≈ 1
231 rc.x += deflate;
232 rc.y += deflate;
233 rc.width -= deflate * 2;
234 rc.height -= deflate * 2;
235 dc.SetPen(wxPen(border_color.colorForStates(states), border_width, border_style));
236 } else {
237 dc.SetPen(wxPen(background_color.colorForStates(states)));
238 }
239 if (background_color.count() > 0)
240 dc.SetBrush(wxBrush(background_color.colorForStates(states)));
241 else
242 dc.SetBrush(wxBrush(GetBackgroundColour()));
243 if (radius == 0) {
244 dc.DrawRectangle(rc);
245 }
246 else {
247 dc.DrawRoundedRectangle(rc, radius - border_width);
248 }
249 }
250 }
251 else {
252 wxColor start = background_color.colorForStates(states);
253 wxColor stop = background_color2.colorForStates(states);
254 int r = start.Red(), g = start.Green(), b = start.Blue();
255 int dr = (int) stop.Red() - r, dg = (int) stop.Green() - g, db = (int) stop.Blue() - b;
256 int lr = 0, lg = 0, lb = 0;
257 for (int y = 0; y < size.y; ++y) {
258 dc.SetPen(wxPen(wxColor(r, g, b)));
259 dc.DrawLine(0, y, size.x, y);
260 lr += dr; while (lr >= size.y) { ++r, lr -= size.y; } while (lr <= -size.y) { --r, lr += size.y; }
261 lg += dg; while (lg >= size.y) { ++g, lg -= size.y; } while (lg <= -size.y) { --g, lg += size.y; }
262 lb += db; while (lb >= size.y) { ++b, lb -= size.y; } while (lb <= -size.y) { --b, lb += size.y; }
263 }
264 }
265
266 if (badge.bmp().IsOk()) {
267 auto s = badge.bmp().GetScaledSize();
268 dc.DrawBitmap(badge.bmp(), size.x - s.x, top_margin > 0 ? top_margin : 0);
269 }
270}
int scale(const int val)
Definition WipeTowerDialog.cpp:58
ScalableBitmap badge
Definition StaticBox.hpp:75
int top_margin
Definition StaticBox.hpp:69
wxPenStyle border_style
Definition StaticBox.hpp:70

References background_color, background_color2, badge, border_color, border_style, border_width, radius, scale(), state_handler, and top_margin.

Referenced by FilamentStepIndicator::doRender(), StepCtrl::doRender(), StepIndicator::doRender(), and render().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ eraseEvent()

void StaticBox::eraseEvent ( wxEraseEvent & evt)
protectedinherited
153{
154 // for transparent background, but not work
155#ifdef __WXMSW__
156 wxDC *dc = evt.GetDC();
157 wxSize size = GetSize();
158 wxClientDC dc2(GetParent());
159 dc->Blit({0, 0}, size, &dc2, GetPosition());
160#endif
161}

◆ GetParentBackgroundColor()

wxColor StaticBox::GetParentBackgroundColor ( wxWindow * parent)
staticinherited
123{
124 if (auto box = dynamic_cast<StaticBox*>(parent)) {
125 if (box->background_color.count() > 0) {
126 if (box->background_color2.count() == 0)
127 return box->background_color.defaultColor();
128 auto s = box->background_color.defaultColor();
129 auto e = box->background_color2.defaultColor();
130 int r = (s.Red() + e.Red()) / 2;
131 int g = (s.Green() + e.Green()) / 2;
132 int b = (s.Blue() + e.Blue()) / 2;
133 return wxColor(r, g, b);
134 }
135 }
136 if (parent)
137 return parent->GetBackgroundColour();
138 return *wxWHITE;
139}
StaticBox()
Definition StaticBox.cpp:33

References StaticBox().

Referenced by Label::Label(), ModeSwitchButton::ModeSwitchButton(), ScalableButton::ScalableButton(), SwitchButton::SwitchButton(), Create(), and SwitchButton::Rescale().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetValue()

bool FanSwitchButton::GetValue ( )
inline
69{ return m_on_off; }
bool m_on_off
Definition ImageSwitchButton.hpp:93

References m_on_off.

Referenced by messureSize(), render(), and SetLabels().

Here is the caller graph for this function:

◆ messureSize()

void FanSwitchButton::messureSize ( )
private
265{
266 wxClientDC dc(this);
267 dc.SetFont(GetFont());
268 textSize = dc.GetTextExtent(GetValue() ? labels[0] : labels[1]);
269}
wxString labels[2]
Definition ImageSwitchButton.hpp:102
bool GetValue()
Definition ImageSwitchButton.hpp:69
wxSize textSize
Definition ImageSwitchButton.hpp:98

References GetValue(), labels, and textSize.

Referenced by FanSwitchButton(), Rescale(), SetImages(), SetLabels(), SetPadding(), SetTextColor(), and SetValue().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mouseDown()

void FanSwitchButton::mouseDown ( wxMouseEvent & event)
private
382{
383 event.Skip();
384 pressedDown = true;
385 SetFocus();
386 CaptureMouse();
387}
bool pressedDown
Definition ImageSwitchButton.hpp:95

References pressedDown.

◆ mouseEnterWindow()

void FanSwitchButton::mouseEnterWindow ( wxMouseEvent & event)
private
402{
403 if (!hover) {
404 hover = true;
405 Refresh();
406 }
407}
bool hover
Definition ImageSwitchButton.hpp:96

References hover.

◆ mouseLeaveWindow()

void FanSwitchButton::mouseLeaveWindow ( wxMouseEvent & event)
private
410{
411 if (hover) {
412 hover = false;
413 Refresh();
414 }
415}

References hover.

◆ mouseReleased()

void FanSwitchButton::mouseReleased ( wxMouseEvent & event)
private
390{
391 event.Skip();
392 if (pressedDown) {
393 pressedDown = false;
394 ReleaseMouse();
395 //m_on_off = !m_on_off;
396 Refresh();
398 }
399}
void sendButtonEvent()
Definition ImageSwitchButton.cpp:417

References pressedDown, and sendButtonEvent().

Here is the call graph for this function:

◆ paintEvent()

void FanSwitchButton::paintEvent ( wxPaintEvent & evt)
private
272{
273 wxPaintDC dc(this);
274 render(dc);
275}
void render(wxDC &dc)
Definition ImageSwitchButton.cpp:277

References render().

Here is the call graph for this function:

◆ render()

void FanSwitchButton::render ( wxDC & dc)
private
278{
280 int states = state_handler.states();
281 wxSize size = GetSize();
282
283 wxSize szIcon;
284 wxSize szContent = textSize;
285 ScalableBitmap& icon = GetValue() ? m_on : m_off;
286
287 //int content_height = icon.GetBmpHeight() + textSize.y + m_padding;
288
289 wxPoint pt = wxPoint(FromDIP(10), (size.y - icon.GetBmpHeight()) / 2);
290
291 if (icon.bmp().IsOk()) {
292 dc.DrawBitmap(icon.bmp(), pt);
293 }
294
295 if (!m_text.empty())
296 {
297 if (m_text == _L("Fan")) {
298 dc.SetFont(::Label::Head_15);
299 pt.x += icon.GetBmpWidth() + FromDIP(9);
300 } else if (m_text == _L("Air Condition")) {
301 dc.SetFont(::Label::Head_14);
302 pt.x += icon.GetBmpWidth() + FromDIP(6);
303 }
304
305 auto text_size = dc.GetMultiLineTextExtent(m_text);
306 pt.y = (size.y - text_size.GetHeight()) / 2;
307 //dc.SetTextForeground(0x6b6b6b);
308 dc.DrawText(m_text, pt);
309 }
310
311 //int content_height = icon.GetBmpHeight() + textSize.y + m_padding;
312 /*int content_height = m_padding;
313
314 wxPoint pt = wxPoint((size.x - icon.GetBmpWidth()) / 2, (size.y - content_height) / 2);
315
316 pt.x = (size.x - textSize.x) / 2;
317 dc.SetFont(GetFont());
318 if (!IsEnabled())
319 dc.SetTextForeground(text_color.colorForStates(StateColor::Disabled));
320 else
321 dc.SetTextForeground(text_color.colorForStates(states));
322
323 auto fina_txt = GetValue() ? labels[0] : labels[1];
324 if (dc.GetTextExtent(fina_txt).x > size.x) {
325 wxString forment_txt = wxEmptyString;
326 for (auto i = 0; i < fina_txt.length(); i++) {
327 forment_txt = fina_txt.SubString(0, i) + "...";
328 if (dc.GetTextExtent(forment_txt).x > size.x) {
329 pt.x = (size.x - dc.GetTextExtent(forment_txt).x) / 2;
330 dc.DrawText(forment_txt, wxPoint(pt.x, content_height));
331 break;
332 }
333 }
334 }
335 else {
336 dc.DrawText(fina_txt, wxPoint(pt.x, content_height));
337 }
338
339 pt = wxPoint((size.x - icon.GetBmpWidth()) / 2, content_height + textSize.y);
340 if (icon.bmp().IsOk()) {
341 dc.DrawBitmap(icon.bmp(), pt);
342 pt.y += m_padding + icon.GetBmpHeight();
343 }
344
345 auto speed = wxString::Format("%d%%", m_speed);
346
347 dc.SetFont(GetFont());
348 if (!IsEnabled())
349 dc.SetTextForeground(text_color.colorForStates(StateColor::Disabled));
350 else
351 dc.SetTextForeground(text_color.colorForStates(states));
352
353 pt.x = (size.x - dc.GetTextExtent(speed).x) / 2;
354 pt.y += FromDIP(1);
355 dc.DrawText(speed, pt);*/
356}
#define _L(s)
Definition OBJ.cpp:34
wxString m_text
Definition ImageSwitchButton.hpp:104
static wxFont Head_15
Definition Label.hpp:44
static wxFont Head_14
Definition Label.hpp:45
int GetBmpWidth() const
Definition wxExtensions.cpp:977
const wxBitmap & bmp() const
Definition wxExtensions.hpp:189
int GetBmpHeight() const
Definition wxExtensions.cpp:988
void render(wxDC &dc)
Definition StaticBox.cpp:181

References _L, ScalableBitmap::bmp(), ScalableBitmap::GetBmpHeight(), ScalableBitmap::GetBmpWidth(), GetValue(), Label::Head_14, Label::Head_15, m_off, m_on, m_text, StaticBox::render(), StaticBox::state_handler, and textSize.

Referenced by paintEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Rescale()

void FanSwitchButton::Rescale ( )
359{
360 messureSize();
361}

References messureSize().

Here is the call graph for this function:

◆ sendButtonEvent()

void FanSwitchButton::sendButtonEvent ( )
private
418{
419 wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, GetId());
420 event.SetEventObject(this);
421 GetEventHandler()->ProcessEvent(event);
422}

Referenced by mouseReleased().

Here is the caller graph for this function:

◆ SetBackgroundColor()

◆ SetBackgroundColor2()

void StaticBox::SetBackgroundColor2 ( StateColor const & color)
inherited
116{
117 background_color2 = color;
118 state_handler.update_binds();
119 Refresh();
120}

References background_color2, and state_handler.

◆ SetBackgroundColorNormal()

void StaticBox::SetBackgroundColorNormal ( wxColor const & color)
inherited
110{
111 background_color.setColorForStates(color, 0);
112 Refresh();
113}

References background_color.

Referenced by Slic3r::GUI::ShortcutCaptureDialog::ShortcutCaptureDialog(), and Slic3r::GUI::HotEndTable::CreateNozzleBox().

Here is the caller graph for this function:

◆ SetBorderColor()

◆ SetBorderColorNormal()

void StaticBox::SetBorderColorNormal ( wxColor const & color)
inherited
97{
98 border_color.setColorForStates(color, 0);
99 Refresh();
100}

References border_color.

Referenced by Slic3r::GUI::ShortcutCaptureDialog::ShortcutCaptureDialog(), and Slic3r::GUI::HotEndTable::CreateNozzleBox().

Here is the caller graph for this function:

◆ SetBorderStyle()

void StaticBox::SetBorderStyle ( wxPenStyle style)
inherited
76{
78 Refresh();
79}

References border_style, and style.

◆ SetBorderWidth()

void StaticBox::SetBorderWidth ( int width)
inherited
82{
84 Refresh();
85}
coord_t width(const BoundingBox &box)
Definition Arrange.cpp:1184

References border_width.

Referenced by MultiSwitchButton::MultiSwitchButton(), Slic3r::GUI::KBShortcutsDialog::create_page(), and Button::SetStyle().

Here is the caller graph for this function:

◆ SetCornerRadius()

◆ setFanValue()

void FanSwitchButton::setFanValue ( int val)
364{
365 m_speed = val;
366 Refresh();
367}

References m_speed.

◆ SetImages()

void FanSwitchButton::SetImages ( ScalableBitmap & img_on,
ScalableBitmap & img_off )
235{
236 m_on = img_on;
237 m_off = img_off;
238 messureSize();
239 Refresh();
240}

References m_off, m_on, and messureSize().

Here is the call graph for this function:

◆ SetLabels()

void FanSwitchButton::SetLabels ( wxString const & lbl_on,
wxString const & lbl_off )
225{
226 labels[0] = lbl_on;
227 labels[1] = lbl_off;
228 auto fina_txt = GetValue() ? labels[0] : labels[1];
229 SetToolTip(fina_txt);
230 messureSize();
231 Refresh();
232}

References GetValue(), labels, and messureSize().

Here is the call graph for this function:

◆ SetPadding()

void FanSwitchButton::SetPadding ( int padding)
258{
259 m_padding = padding;
260 messureSize();
261 Refresh();
262}

References m_padding, and messureSize().

Here is the call graph for this function:

◆ SetText()

void FanSwitchButton::SetText ( const wxString & text)
private
373{
374 if (m_text != text)
375 {
376 m_text = text;
377 Refresh();
378 }
379}

References m_text.

Referenced by UseTextAirCondition(), and UseTextFan().

Here is the caller graph for this function:

◆ SetTextColor()

void FanSwitchButton::SetTextColor ( StateColor const & color)
243{
244 text_color = color;
245 state_handler.update_binds();
246 messureSize();
247 Refresh();
248}

References messureSize(), StaticBox::state_handler, and text_color.

Here is the call graph for this function:

◆ SetTopMargin()

void StaticBox::SetTopMargin ( int margin)
inherited
70{
71 this->top_margin = margin;
72 Refresh();
73}

References top_margin.

Referenced by Slic3r::GUI::ExtruderGroup::ExtruderGroup().

Here is the caller graph for this function:

◆ SetValue()

void FanSwitchButton::SetValue ( bool value)
251{
252 m_on_off = value;
253 messureSize();
254 Refresh();
255}

References m_on_off, and messureSize().

Here is the call graph for this function:

◆ ShowBadge()

void StaticBox::ShowBadge ( bool show)
inherited
142{
143 if (show && badge.name() != "badge") {
144 badge = ScalableBitmap(this, "badge", 18);
145 Refresh();
146 } else if (!show && !badge.name().empty()) {
147 badge = ScalableBitmap {};
148 Refresh();
149 }
150}

References badge.

Referenced by Slic3r::GUI::ExtruderGroup::ExtruderGroup().

Here is the caller graph for this function:

◆ sizeEvent()

void StaticBox::sizeEvent ( wxSizeEvent & evt)
protectedinherited
164{
165 Refresh();
166 evt.Skip();
167}

◆ UseTextAirCondition()

void FanSwitchButton::UseTextAirCondition ( )
370{ SetText(_L("Air Condition")); }
void SetText(const wxString &text)
Definition ImageSwitchButton.cpp:372

References _L, and SetText().

Here is the call graph for this function:

◆ UseTextFan()

void FanSwitchButton::UseTextFan ( )
369{ SetText(_L("Fan")); }

References _L, and SetText().

Here is the call graph for this function:

Member Data Documentation

◆ background_color

◆ background_color2

StateColor StaticBox::background_color2
protectedinherited

◆ badge

ScalableBitmap StaticBox::badge
protectedinherited

Referenced by doRender(), and ShowBadge().

◆ border_color

◆ border_style

wxPenStyle StaticBox::border_style = wxPENSTYLE_SOLID
protectedinherited

Referenced by doRender(), and SetBorderStyle().

◆ border_width

◆ hover

bool FanSwitchButton::hover = false
private

◆ labels

wxString FanSwitchButton::labels[2]
private

Referenced by messureSize(), and SetLabels().

◆ m_off

ScalableBitmap FanSwitchButton::m_off
private

Referenced by FanSwitchButton(), render(), and SetImages().

◆ m_on

ScalableBitmap FanSwitchButton::m_on
private

Referenced by FanSwitchButton(), render(), and SetImages().

◆ m_on_off

bool FanSwitchButton::m_on_off
private

Referenced by GetValue(), and SetValue().

◆ m_padding

int FanSwitchButton::m_padding
private

Referenced by FanSwitchButton(), and SetPadding().

◆ m_speed

int FanSwitchButton::m_speed
private

Referenced by FanSwitchButton(), and setFanValue().

◆ m_text

wxString FanSwitchButton::m_text
private

Referenced by render(), and SetText().

◆ minSize

wxSize FanSwitchButton::minSize
private

◆ pressedDown

bool FanSwitchButton::pressedDown = false
private

Referenced by mouseDown(), and mouseReleased().

◆ radius

◆ state_handler

◆ text_color

StateColor FanSwitchButton::text_color
private

Referenced by FanSwitchButton(), and SetTextColor().

◆ textSize

wxSize FanSwitchButton::textSize
private

Referenced by messureSize(), and render().

◆ top_margin

int StaticBox::top_margin = 0
protectedinherited

Referenced by doRender(), and SetTopMargin().


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