#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/LabeledStaticBox.hpp>
Public Member Functions | |
| LabeledStaticBox () | |
| LabeledStaticBox (wxWindow *parent, const wxString &label=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0) | |
| bool | Create (wxWindow *parent, const wxString &label=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0) |
| void | SetCornerRadius (int radius) |
| void | SetBorderWidth (int width) |
| void | SetBorderColor (StateColor const &color) |
| bool | SetFont (const wxFont &set_font) override |
| bool | Enable (bool enable) override |
| int | GetCornerRadius () const |
| int | GetBorderWidth () const |
| StateColor | GetBorderColor () const |
| float | GetScale () const |
Protected Member Functions | |
| virtual void | DrawBorderAndLabel (wxDC &dc) |
| void | GetBordersForSizer (int *borderTop, int *borderOther) const override |
Protected Attributes | |
| StateHandler | state_handler |
| StateColor | text_color |
| StateColor | border_color |
| StateColor | background_color |
| int | m_border_width |
| int | m_radius |
| wxFont | m_font |
| wxString | m_label |
| int | m_label_height |
| int | m_label_width |
| float | m_scale |
| wxPoint | m_pos |
Private Member Functions | |
| void | PickDC (wxDC &dc) |
| LabeledStaticBox::LabeledStaticBox | ( | ) |
References background_color, border_color, StateColor::Disabled, Label::Head_14, m_border_width, m_font, m_radius, StateColor::Normal, state_handler, and text_color.
Referenced by LabeledStaticBox().
| LabeledStaticBox::LabeledStaticBox | ( | wxWindow * | parent, |
| const wxString & | label = wxEmptyString, | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize, | ||
| long | style = 0 ) |
References LabeledStaticBox(), Create(), and style.
| bool LabeledStaticBox::Create | ( | wxWindow * | parent, |
| const wxString & | label = wxEmptyString, | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize, | ||
| long | style = 0 ) |
References background_color, border_color, m_border_width, m_font, m_label, m_label_height, m_label_width, m_pos, m_scale, PickDC(), SetBorderColor(), state_handler, Slic3r::GUI::staticbox_remove_margin(), style, and text_color.
Referenced by LabeledStaticBox().
|
protectedvirtual |
References background_color, border_color, m_border_width, m_font, m_label, m_label_height, m_label_width, m_pos, m_radius, m_scale, state_handler, and text_color.
Referenced by PickDC().
|
override |
References border_color, SetBorderColor(), state_handler, and text_color.
|
inline |
References border_color.
Referenced by CustomWidgetsPlugin::addLabeledStaticBoxProps().
|
overrideprotected |
|
inline |
References m_border_width.
Referenced by CustomWidgetsPlugin::addLabeledStaticBoxProps().
|
inline |
References m_radius.
Referenced by CustomWidgetsPlugin::addLabeledStaticBoxProps().
|
inline |
References m_scale.
Referenced by CustomWidgetsPlugin::addLabeledStaticBoxProps().
|
private |
References DrawBorderAndLabel().
Referenced by Create().
| void LabeledStaticBox::SetBorderColor | ( | StateColor const & | color | ) |
References border_color, and state_handler.
Referenced by CustomWidgetsPlugin::addLabeledStaticBoxProps(), Create(), and Enable().
| void LabeledStaticBox::SetBorderWidth | ( | int | width | ) |
References m_border_width.
Referenced by CustomWidgetsPlugin::addLabeledStaticBoxProps().
| void LabeledStaticBox::SetCornerRadius | ( | int | radius | ) |
References m_radius.
Referenced by CustomWidgetsPlugin::addLabeledStaticBoxProps().
|
override |
References m_font, m_label, m_label_height, and m_label_width.
|
protected |
Referenced by LabeledStaticBox(), Create(), and DrawBorderAndLabel().
|
protected |
Referenced by LabeledStaticBox(), Create(), DrawBorderAndLabel(), Enable(), GetBorderColor(), and SetBorderColor().
|
protected |
Referenced by LabeledStaticBox(), Create(), DrawBorderAndLabel(), GetBorderWidth(), and SetBorderWidth().
|
protected |
Referenced by LabeledStaticBox(), Create(), DrawBorderAndLabel(), and SetFont().
|
protected |
Referenced by Create(), DrawBorderAndLabel(), and SetFont().
|
protected |
Referenced by Create(), DrawBorderAndLabel(), and SetFont().
|
protected |
Referenced by Create(), DrawBorderAndLabel(), and SetFont().
|
protected |
Referenced by Create(), and DrawBorderAndLabel().
|
protected |
Referenced by LabeledStaticBox(), DrawBorderAndLabel(), GetCornerRadius(), and SetCornerRadius().
|
protected |
Referenced by Create(), DrawBorderAndLabel(), and GetScale().
|
protected |
Referenced by LabeledStaticBox(), Create(), DrawBorderAndLabel(), Enable(), and SetBorderColor().
|
protected |
Referenced by LabeledStaticBox(), Create(), DrawBorderAndLabel(), and Enable().