|
| Toggle (QWidget *parent=nullptr) |
|
| Toggle (const std::function< void(Button *)> &on_click) |
|
| Toggle (const TranslatedString &name, const std::function< void(Button *)> &on_click) |
|
| Toggle (const TranslatedString &name, const String &icon, const std::function< void(Button *)> &on_click) |
|
| Toggle (const TranslatedString &name, const String &icon, Resource< bool > &on_click) |
|
| ~Toggle () |
|
QSize | sizeHint () const override |
|
QSize | minimumSizeHint () const override |
|
float | offset () const |
|
void | setOffset (float o) |
|
| Button (QWidget *parent=nullptr) |
|
| Button (ButtonState state, QWidget *parent=nullptr) |
|
| Button (const TranslatedString &name, const String &icon="", QWidget *parent=nullptr) |
|
| Button (const std::function< void(Button *)> &on_click, QWidget *parent=nullptr) |
|
| Button (const TranslatedString &name, const std::function< void(Button *)> &on_click, QWidget *parent=nullptr) |
|
| Button (const TranslatedString &name, const String &icon, const std::function< void(Button *)> &on_click, QWidget *parent=nullptr) |
|
| Button (const TranslatedString &name, const String &icon, TooltipType tooltip, const std::function< void(Button *)> &on_click, QWidget *parent=nullptr) |
|
| ~Button () |
|
void | paintEvent (QPaintEvent *event) override |
|
void | setAlignment (Qt::Alignment m_alignment) |
|
void | setup (const TranslatedString &name, const String &icon, const std::function< void(Button *)> &on_click) |
|
void | setup (const TranslatedString &name, const String &icon, TooltipType tooltip, const std::function< void(Button *)> &on_click) |
|
void | setup (const TranslatedString &name, const String &icon, Resource< bool > &checked_var) |
|
void | setup (GenericOption &checked_var) |
|
void | setup (ApplicationOption< bool > &checked_var) |
|
void | setup (const TranslatedString &name, const String &icon, ApplicationOption< bool > &checked_var) |
|
int | styleDefaultIconSize () const |
|
int | scaledIconSize () const |
|
void | setToolTip (TooltipType type) |
|
void | setToolTip (const QString &tip) |
|
void | setButtonState (ButtonState state) |
|
void | showPopupMenu (QWidget *widget, bool is_popup=true) |
|
bool | requestButtonState (ButtonState state) |
|
void | requestFixedState (bool fixed_state) |
|
ButtonState | buttonState () const |
|
void | setFunction (const std::function< void(Button *)> &on_click) |
|
void | setHoverFunction (const std::function< void(Button *, bool hovering)> &on_hover) |
|
void | setPressFunction (const std::function< void(Button *, bool hovering)> &on_press) |
|
void | enterEvent (ButtonEnterEvent *e) override |
|
void | leaveEvent (QEvent *e) override |
|
void | setMargin (uint04 margin) |
|
void | setIconSize (int size) |
|
void | setProgressPercent (fltp04 progress) |
|
bool | event (QEvent *e) override |
|
void | setIconSizeMultiplier (fltp04 icon_size_multiplier) |
|
void | setHoverIconSizeMultiplier (fltp04 icon_size_multiplier) |
|
void | setTitle (const TranslatedString &title) |
|
void | setText (const QString &text) |
|
const TranslatedString & | title () const |
|
const String & | iconName () const |
|
void | setIconName (const String &icon) |
|
void | setIcon (const QIcon &icon) |
|
void | setHoverIconName (const String &icon) |
|
void | setCheckedIconName (const String &icon) |
|
bool | eventFilter (QObject *watched, QEvent *event) override |
|
void | setToolTip (const TranslatedString &tooltip) |
|
void | setDisabledToolTip (const TranslatedString &tooltip) |
|
void | setToolTip (const TranslatedString &enabled_tooltip, const TranslatedString &disabled_tooltip) |
|
void | setFlat (bool is_flat) |
|
void | setButtonDialog (ButtonDialog *dialog) |
|
void | setSound (const String &sound) |
|
void | setIgnoreClicks (bool ignore_clicks) |
|
void | copyButtonFrom (Button *button) |
|
void | setBackgroundOpacity (fltp04 background_opacity) |
|
void | setMenuDialog (QWidget *widget) |
|
void | setIconColor (const RGBColor &color) |
|
void | setBackgroundColor (const RGBColor &color, bool update_foreground=true) |
|
void | clearBackgroundColor () |
|
void | setFocusOnPress (bool focus_on_press) |
|
void | setAutoDefault (bool is_auto_default) |
|
void | setDefault (bool is_default) |
|
void | setCheckable (bool checkable) |
|
void | setChecked (bool checked) |
|
QSize | sizeHint () const override |
|
QSize | minimumSizeHint () const override |
|
void | virtualMouseEvent (QEvent::Type event) |
|
void | setFontMultiplier (fltp04 font_multiplier) |
|
void | setBold (bool is_bold) |
|
void | setMenu (QMenu *menu) |
|
void | setClickCooldown (const TimeSpan &span) |
|
QMenu * | menu () const |
|