#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/Widgets/AxisCtrlButton.hpp>
Public Member Functions | |
| AxisCtrlButton (wxWindow *parent, ScalableBitmap &icon, long style=0) | |
| void | SetMinSize (const wxSize &size) override |
| void | SetTextColor (StateColor const &color) |
| void | SetBorderColor (StateColor const &color) |
| void | SetBackgroundColor (StateColor const &color) |
| void | SetInnerBackgroundColor (StateColor const &color) |
| void | SetBitmap (ScalableBitmap &bmp) |
| void | Rescale () |
Private Types | |
| enum | CurrentPos { OUTER_UP = 0 , OUTER_LEFT = 1 , OUTER_DOWN = 2 , OUTER_RIGHT = 3 , INNER_UP = 4 , INNER_LEFT = 5 , INNER_DOWN = 6 , INNER_RIGHT = 7 , INNER_HOME = 8 , UNDEFINED = 9 } |
Private Member Functions | |
| void | updateParams () |
| void | paintEvent (wxPaintEvent &evt) |
| void | render (wxDC &dc) |
| void | mouseDown (wxMouseEvent &event) |
| void | mouseReleased (wxMouseEvent &event) |
| void | mouseMoving (wxMouseEvent &event) |
| void | sendButtonEvent () |
Private Attributes | |
| wxSize | minSize |
| double | stretch |
| double | r_outer |
| double | r_inner |
| double | r_home |
| double | r_blank |
| double | gap |
| wxPoint | center |
| StateHandler | state_handler |
| StateColor | text_color |
| StateColor | border_color |
| StateColor | background_color |
| StateColor | inner_background_color |
| ScalableBitmap | m_icon |
| bool | pressedDown = false |
| unsigned char | last_pos |
| unsigned char | current_pos |
|
private |
| Enumerator | |
|---|---|
| OUTER_UP | |
| OUTER_LEFT | |
| OUTER_DOWN | |
| OUTER_RIGHT | |
| INNER_UP | |
| INNER_LEFT | |
| INNER_DOWN | |
| INNER_RIGHT | |
| INNER_HOME | |
| UNDEFINED | |
| AxisCtrlButton::AxisCtrlButton | ( | wxWindow * | parent, |
| ScalableBitmap & | icon, | ||
| long | style = 0 ) |
References background_color, bd, BLANK_SIZE, border_color, BUTTON_BG_COL, BUTTON_IN_BG_COL, BUTTON_PRESS_COL, current_pos, StateColor::Disabled, StateColor::Enabled, gap, GAP_SIZE, HOME_SIZE, StateColor::Hovered, inner_background_color, INNER_SIZE, last_pos, m_icon, StateColor::Normal, OUTER_SIZE, StateColor::Pressed, r_blank, r_home, r_inner, r_outer, state_handler, text_color, and UNDEFINED.
|
private |
References pressedDown.
|
private |
References center, current_pos, gap, INNER_DOWN, INNER_HOME, INNER_LEFT, INNER_RIGHT, INNER_UP, last_pos, OUTER_DOWN, OUTER_LEFT, OUTER_RIGHT, OUTER_UP, pressedDown, r_blank, r_home, r_inner, r_outer, and UNDEFINED.
|
private |
References pressedDown, and sendButtonEvent().
|
private |
|
private |
References background_color, blank_bg, Label::Body_12, border_color, BUTTON_BG_COL, BUTTON_IN_BG_COL, center, current_pos, StateColor::darkModeColorFor(), StateColor::Disabled, gap, Label::Head_12, inner_background_color, m_icon, StateColor::Normal, PI, r_blank, r_home, r_inner, r_outer, sqrt2, state_handler, text_color, text_num_color, and UNDEFINED.
Referenced by paintEvent().
| void AxisCtrlButton::Rescale | ( | ) |
|
private |
References current_pos.
Referenced by mouseReleased().
| void AxisCtrlButton::SetBackgroundColor | ( | StateColor const & | color | ) |
References background_color, and state_handler.
| void AxisCtrlButton::SetBitmap | ( | ScalableBitmap & | bmp | ) |
References ScalableBitmap::bmp(), and m_icon.
| void AxisCtrlButton::SetBorderColor | ( | StateColor const & | color | ) |
References border_color, and state_handler.
| void AxisCtrlButton::SetInnerBackgroundColor | ( | StateColor const & | color | ) |
References inner_background_color, and state_handler.
|
override |
References center, minSize, stretch, and updateParams().
| void AxisCtrlButton::SetTextColor | ( | StateColor const & | color | ) |
References state_handler, and text_color.
|
private |
References BLANK_SIZE, gap, GAP_SIZE, HOME_SIZE, INNER_SIZE, OUTER_SIZE, r_blank, r_home, r_inner, and r_outer.
Referenced by SetMinSize().
|
private |
Referenced by AxisCtrlButton(), render(), and SetBackgroundColor().
|
private |
Referenced by AxisCtrlButton(), render(), and SetBorderColor().
|
private |
Referenced by mouseMoving(), render(), and SetMinSize().
|
private |
Referenced by AxisCtrlButton(), mouseMoving(), render(), and sendButtonEvent().
|
private |
Referenced by AxisCtrlButton(), mouseMoving(), render(), and updateParams().
|
private |
Referenced by AxisCtrlButton(), render(), and SetInnerBackgroundColor().
|
private |
Referenced by AxisCtrlButton(), and mouseMoving().
|
private |
Referenced by AxisCtrlButton(), render(), and SetBitmap().
|
private |
Referenced by SetMinSize().
|
private |
Referenced by mouseDown(), mouseMoving(), and mouseReleased().
|
private |
Referenced by AxisCtrlButton(), mouseMoving(), render(), and updateParams().
|
private |
Referenced by AxisCtrlButton(), mouseMoving(), render(), and updateParams().
|
private |
Referenced by AxisCtrlButton(), mouseMoving(), render(), and updateParams().
|
private |
Referenced by AxisCtrlButton(), mouseMoving(), render(), and updateParams().
|
private |
Referenced by AxisCtrlButton(), render(), SetBackgroundColor(), SetBorderColor(), SetInnerBackgroundColor(), and SetTextColor().
|
private |
Referenced by SetMinSize().
|
private |
Referenced by AxisCtrlButton(), render(), and SetTextColor().