#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/wxExtensions.hpp>
Public Member Functions | |
| ScalableButton () | |
| ScalableButton (wxWindow *parent, wxWindowID id, const std::string &icon_name="", const wxString &label=wxEmptyString, const wxSize &size=wxDefaultSize, const wxPoint &pos=wxDefaultPosition, long style=wxBU_EXACTFIT|wxNO_BORDER, bool use_default_disabled_bitmap=false, int bmp_px_cnt=16) | |
| ScalableButton (wxWindow *parent, wxWindowID id, const ScalableBitmap &bitmap, const wxString &label=wxEmptyString, long style=wxBU_EXACTFIT|wxNO_BORDER) | |
| ~ScalableButton () | |
| void | SetBitmap_ (const ScalableBitmap &bmp) |
| bool | SetBitmap_ (const std::string &bmp_name) |
| void | SetBitmapDisabled_ (const ScalableBitmap &bmp) |
| int | GetBitmapHeight () |
| void | UseDefaultBitmapDisabled () |
| void | msw_rescale () |
| void | UpdateDarkUI () |
Private Attributes | |
| wxWindow * | m_parent { nullptr } |
| std::string | m_current_icon_name |
| std::string | m_disabled_icon_name |
| int | m_width {-1} |
| int | m_height {-1} |
| bool | m_use_default_disabled_bitmap {false} |
| int | m_px_cnt { 16 } |
| bool | m_has_border {false} |
|
inline |
Referenced by Slic3r::GUI::ObjectLayers::PlusMinusButton::PlusMinusButton().
| ScalableButton::ScalableButton | ( | wxWindow * | parent, |
| wxWindowID | id, | ||
| const std::string & | icon_name = "", | ||
| const wxString & | label = wxEmptyString, | ||
| const wxSize & | size = wxDefaultSize, | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| long | style = wxBU_EXACTFIT | wxNO_BORDER, | ||
| bool | use_default_disabled_bitmap = false, | ||
| int | bmp_px_cnt = 16 ) |
References create_scaled_bitmap(), em_unit(), StaticBox::GetParentBackgroundColor(), m_current_icon_name, m_has_border, m_height, m_parent, m_px_cnt, m_use_default_disabled_bitmap, m_width, and style.
| ScalableButton::ScalableButton | ( | wxWindow * | parent, |
| wxWindowID | id, | ||
| const ScalableBitmap & | bitmap, | ||
| const wxString & | label = wxEmptyString, | ||
| long | style = wxBU_EXACTFIT | wxNO_BORDER ) |
References ScalableBitmap::bmp(), m_current_icon_name, m_has_border, m_parent, m_px_cnt, and style.
|
inline |
| int ScalableButton::GetBitmapHeight | ( | ) |
| void ScalableButton::msw_rescale | ( | ) |
References create_scaled_bitmap(), em_unit(), m_current_icon_name, m_disabled_icon_name, m_has_border, m_height, m_parent, m_px_cnt, m_use_default_disabled_bitmap, and m_width.
Referenced by Slic3r::GUI::ConfigOptionsGroup::msw_rescale(), and UpdateDarkUI().
| void ScalableButton::SetBitmap_ | ( | const ScalableBitmap & | bmp | ) |
References ScalableBitmap::bmp(), m_current_icon_name, and ScalableBitmap::name().
Referenced by Slic3r::GUI::IMEXModesCtrl::refresh_reset_buttons(), Slic3r::GUI::ObjectSettings::update_settings_list(), and Slic3r::GUI::ObjectTableSettings::update_settings_list().
| bool ScalableButton::SetBitmap_ | ( | const std::string & | bmp_name | ) |
References create_scaled_bitmap(), m_current_icon_name, m_parent, m_px_cnt, and m_use_default_disabled_bitmap.
| void ScalableButton::SetBitmapDisabled_ | ( | const ScalableBitmap & | bmp | ) |
References ScalableBitmap::bmp(), m_disabled_icon_name, and ScalableBitmap::name().
|
inline |
| void ScalableButton::UseDefaultBitmapDisabled | ( | ) |
References create_scaled_bitmap(), m_current_icon_name, m_parent, m_px_cnt, and m_use_default_disabled_bitmap.
|
private |
Referenced by ScalableButton(), ScalableButton(), msw_rescale(), SetBitmap_(), SetBitmap_(), and UseDefaultBitmapDisabled().
|
private |
Referenced by msw_rescale(), and SetBitmapDisabled_().
|
private |
Referenced by ScalableButton(), ScalableButton(), and msw_rescale().
|
private |
Referenced by ScalableButton(), and msw_rescale().
|
private |
Referenced by ScalableButton(), ScalableButton(), msw_rescale(), SetBitmap_(), and UseDefaultBitmapDisabled().
|
private |
Referenced by ScalableButton(), ScalableButton(), msw_rescale(), SetBitmap_(), and UseDefaultBitmapDisabled().
|
private |
Referenced by ScalableButton(), msw_rescale(), SetBitmap_(), and UseDefaultBitmapDisabled().
|
private |
Referenced by ScalableButton(), and msw_rescale().