Loading...
Searching...
No Matches
ButtonStyle.h
Go to the documentation of this file.
1//
2// ButtonStyle.h
3//
4
5#ifndef MALENA_BUTTONSTYLE_H
6#define MALENA_BUTTONSTYLE_H
7
8#pragma once
9
13
14namespace ml
15{
25 {
27 { static_cast<ButtonSettings&>(*this) = s; return *this; }
28
30 { static_cast<ButtonTheme&>(*this) = t; return *this; }
31
33 { static_cast<ButtonTheme&>(*this) = t; return *this; }
34
36 { static_cast<ButtonTheme&>(*this) = c; return *this; }
37
39 { static_cast<ButtonTheme&>(*this) = g; return *this; }
40
42 { static_cast<ButtonSettings&>(*this) = t; return *this; }
43
45 { static_cast<ButtonSettings&>(*this) = c; return *this; }
46
48 { ButtonTheme::applyFrom(t); return *this; }
49 };
50
51} // namespace ml
52
53#endif // MALENA_BUTTONSTYLE_H
Definition Component.h:22
Layout and behaviour settings for ButtonToggle.
Complete style descriptor for ButtonToggle.
Definition ButtonStyle.h:25
ButtonStyle & operator=(const ControlTheme &c)
Definition ButtonStyle.h:35
ButtonStyle & operator=(const ToggleSettings &t)
Definition ButtonStyle.h:41
ButtonStyle & operator=(const ToggleTheme &t)
Definition ButtonStyle.h:32
ButtonStyle & operator=(const ControlSettings &c)
Definition ButtonStyle.h:44
ButtonStyle & operator=(const ButtonSettings &s)
Definition ButtonStyle.h:26
ButtonStyle & applyFrom(const Theme &t)
Populate all fields from the global Theme token set.
Definition ButtonStyle.h:47
ButtonStyle & operator=(const GraphicTheme &g)
Definition ButtonStyle.h:38
ButtonStyle & operator=(const ButtonTheme &t)
Definition ButtonStyle.h:29
Theme tokens for the ButtonToggle (rectangular toggle button).
Definition ButtonTheme.h:28
ButtonTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
Definition ButtonTheme.h:39
Settings trait for interactive UI controls — layout only.
Theme tokens for interactive UI controls.
Theme tokens for all visual components.
Universal design token set applied across all Themeable components.
Definition Theme.h:70
Settings shared by all toggle variants — behaviour only.
Theme tokens shared by all toggle variants.
Definition ToggleTheme.h:31