A button for allowing the user to switch between Desktop/Touch mode which affects the size of all of the widgets and text.
More...
|
| | TouchDesktopThemeButton (WindowManager *manager, Button *button) |
| | Constructs a touch/desktop mode toggle button.
|
| void | invert (bool is_inverted=true) |
| | Inverts the button behavior so it shows the opposite mode.
|
| void | setUseLargeIcons (bool use_large_icons) |
| | Sets whether to use large icon variants on the button.
|
|
void | themeChanged () |
| | Updates the button appearance to reflect the current widget mode.
|
| WidgetOptions::WidgetMode | themeTarget () const |
| | Returns the widget mode that will be activated when the button is clicked.
|
A button for allowing the user to switch between Desktop/Touch mode which affects the size of all of the widgets and text.
Definition at line 92 of file ThemeButton.h.
◆ TouchDesktopThemeButton()
Constructs a touch/desktop mode toggle button.
- Parameters
-
| [in] | manager | The window manager providing mode context. |
| [in] | button | The button to attach toggle behavior to. |
◆ invert()
| void TouchDesktopThemeButton::invert |
( |
bool | is_inverted = true | ) |
|
Inverts the button behavior so it shows the opposite mode.
- Parameters
-
| [in] | is_inverted | Whether to invert. |
◆ setUseLargeIcons()
| void TouchDesktopThemeButton::setUseLargeIcons |
( |
bool | use_large_icons | ) |
|
Sets whether to use large icon variants on the button.
- Parameters
-
| [in] | use_large_icons | Whether to use large icons. |
◆ themeTarget()
Returns the widget mode that will be activated when the button is clicked.
- Returns
- The target WidgetMode.
The documentation for this class was generated from the following file: