#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/SideButton.hpp>
Public Types | |
| enum | EHorizontalOrientation : unsigned char { HO_Left , HO_Center , HO_Right , Num_Horizontal_Orientations } |
Public Member Functions | |
| SideButton (wxWindow *parent, wxString text, wxString icon="", long style=0, int iconSize=0) | |
| void | SetCornerRadius (double radius) |
| void | SetCornerEnable (const std::vector< bool > &enable) |
| void | SetTextLayout (EHorizontalOrientation orient, int margin=15) |
| void | SetLayoutStyle (int style) |
| void | SetLabel (const wxString &label) override |
| bool | SetForegroundColour (wxColour const &colour) override |
| bool | SetBackgroundColour (wxColour const &color) override |
| bool | SetBottomColour (wxColour const &color) |
| void | SetMinSize (const wxSize &size) override |
| void | SetBorderColor (StateColor const &color) |
| void | SetForegroundColor (StateColor const &color) |
| void | SetBackgroundColor (StateColor const &color) |
| bool | Enable (bool enable=true) override |
| void | Rescale () |
| void | SetExtraSize (const wxSize &size) |
| void | SetIconOffset (const int offset) |
Private Member Functions | |
| void | paintEvent (wxPaintEvent &evt) |
| void | dorender (wxDC &dc, wxDC &text_dc) |
| void | messureSize () |
| void | mouseDown (wxMouseEvent &event) |
| void | mouseReleased (wxMouseEvent &event) |
| void | mouseCaptureLost (wxMouseCaptureLostEvent &event) |
| void | sendButtonEvent () |
Private Attributes | |
| wxSize | textSize |
| wxSize | minSize |
| ScalableBitmap | icon |
| double | radius |
| wxSize | extra_size |
| int | icon_offset |
| std::vector< bool > | radius_enable |
| StateHandler | state_handler |
| StateColor | text_color |
| StateColor | border_color |
| StateColor | background_color |
| wxColour | bottom_color |
| bool | pressedDown = false |
| int | layout_style = 0 |
| EHorizontalOrientation | text_orientation |
| int | text_margin |
| enum SideButton::EHorizontalOrientation : unsigned char |
| SideButton::SideButton | ( | wxWindow * | parent, |
| wxString | text, | ||
| wxString | icon = "", | ||
| long | style = 0, | ||
| int | iconSize = 0 ) |
References SideButton(), background_color, Label::Body_14, border_color, StateColor::Disabled, extra_size, HO_Left, StateColor::Hovered, icon, icon_offset, messureSize(), StateColor::Normal, StateColor::Pressed, radius, SetBottomColour(), state_handler, text_color, text_margin, and text_orientation.
Referenced by SideButton().
|
private |
References background_color, border_color, bottom_color, StateColor::darkModeColorFor(), HO_Center, HO_Left, HO_Right, icon, icon_offset, layout_style, radius, state_handler, text_color, text_margin, text_orientation, and textSize.
Referenced by paintEvent().
|
override |
|
private |
References extra_size, icon, minSize, and textSize.
Referenced by SideButton(), Rescale(), SetExtraSize(), SetIconOffset(), SetLabel(), SetLayoutStyle(), SetMinSize(), and SetTextLayout().
|
private |
References pressedDown.
|
private |
References pressedDown.
|
private |
References pressedDown, and sendButtonEvent().
|
private |
References dorender().
| void SideButton::Rescale | ( | ) |
|
private |
Referenced by mouseReleased().
| void SideButton::SetBackgroundColor | ( | StateColor const & | color | ) |
References background_color, and state_handler.
|
override |
References background_color, and state_handler.
| void SideButton::SetBorderColor | ( | StateColor const & | color | ) |
References border_color, and state_handler.
| bool SideButton::SetBottomColour | ( | wxColour const & | color | ) |
| void SideButton::SetCornerEnable | ( | const std::vector< bool > & | enable | ) |
References radius_enable.
| void SideButton::SetCornerRadius | ( | double | radius | ) |
References radius.
Referenced by Slic3r::GUI::MainFrame::create_side_tools().
| void SideButton::SetExtraSize | ( | const wxSize & | size | ) |
| void SideButton::SetForegroundColor | ( | StateColor const & | color | ) |
References state_handler, and text_color.
|
override |
References state_handler, and text_color.
| void SideButton::SetIconOffset | ( | const int | offset | ) |
|
override |
| void SideButton::SetLayoutStyle | ( | int | style | ) |
References layout_style, messureSize(), and style.
|
override |
| void SideButton::SetTextLayout | ( | EHorizontalOrientation | orient, |
| int | margin = 15 ) |
References messureSize(), text_margin, and text_orientation.
|
private |
Referenced by SideButton(), dorender(), SetBackgroundColor(), and SetBackgroundColour().
|
private |
Referenced by SideButton(), dorender(), and SetBorderColor().
|
private |
Referenced by dorender(), and SetBottomColour().
|
private |
Referenced by SideButton(), messureSize(), and SetExtraSize().
|
private |
Referenced by SideButton(), dorender(), messureSize(), and Rescale().
|
private |
Referenced by SideButton(), dorender(), and SetIconOffset().
|
private |
Referenced by dorender(), and SetLayoutStyle().
|
private |
Referenced by messureSize(), and SetMinSize().
|
private |
Referenced by mouseCaptureLost(), mouseDown(), and mouseReleased().
|
private |
Referenced by SideButton(), dorender(), and SetCornerRadius().
|
private |
Referenced by SetCornerEnable().
|
private |
Referenced by SideButton(), dorender(), SetBackgroundColor(), SetBackgroundColour(), SetBorderColor(), SetForegroundColor(), and SetForegroundColour().
|
private |
Referenced by SideButton(), dorender(), SetForegroundColor(), and SetForegroundColour().
|
private |
Referenced by SideButton(), dorender(), and SetTextLayout().
|
private |
Referenced by SideButton(), dorender(), and SetTextLayout().
|
private |
Referenced by dorender(), and messureSize().