Loading...
Searching...
No Matches
RadioButtonStyle.h
Go to the documentation of this file.
1//
2// RadioButtonStyle.h
3//
4
5#ifndef MALENA_RADIOBUTTONSTYLE_H
6#define MALENA_RADIOBUTTONSTYLE_H
7
8#pragma once
9
15
16namespace ml
17{
24 {
26 { static_cast<RadioButtonSettings&>(*this) = s; return *this; }
27
29 { static_cast<RadioButtonTheme&>(*this) = t; return *this; }
30
32 { static_cast<RadioButtonTheme&>(*this) = c; return *this; }
33
35 { static_cast<RadioButtonSettings&>(*this) = c; return *this; }
36
38 { RadioButtonTheme::applyFrom(t); return *this; }
39 };
40
47 {
49 { static_cast<RadioGroupSettings&>(*this) = s; return *this; }
50
52 { static_cast<RadioGroupTheme&>(*this) = t; return *this; }
53
55 { static_cast<RadioGroupSettings&>(*this) = s; return *this; }
56
58 { static_cast<RadioGroupTheme&>(*this) = t; return *this; }
59
61 { static_cast<RadioGroupTheme&>(*this) = c; return *this; }
62
64 { static_cast<RadioGroupSettings&>(*this) = c; return *this; }
65
67 { RadioGroupTheme::applyFrom(t); return *this; }
68 };
69
70} // namespace ml
71
72#endif // MALENA_RADIOBUTTONSTYLE_H
Definition Component.h:22
Settings trait for interactive UI controls — layout only.
Theme tokens for interactive UI controls.
Layout and behaviour settings for RadioButton.
Complete style descriptor for RadioButton.
RadioButtonStyle & operator=(const RadioButtonSettings &s)
RadioButtonStyle & operator=(const ControlSettings &c)
RadioButtonStyle & applyFrom(const Theme &t)
Populate all fields from the global Theme token set.
RadioButtonStyle & operator=(const ControlTheme &c)
RadioButtonStyle & operator=(const RadioButtonTheme &t)
Color and font tokens for RadioButton.
RadioButtonTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
Layout and behaviour settings for RadioGroup.
Complete style descriptor for RadioGroup.
RadioGroupStyle & operator=(const ControlSettings &c)
RadioGroupStyle & operator=(const RadioGroupTheme &t)
RadioGroupStyle & operator=(const RadioButtonSettings &s)
RadioGroupStyle & operator=(const RadioButtonTheme &t)
RadioGroupStyle & operator=(const RadioGroupSettings &s)
RadioGroupStyle & applyFrom(const Theme &t)
Populate all fields from the global Theme token set.
RadioGroupStyle & operator=(const ControlTheme &c)
Color tokens for RadioGroup.
RadioGroupTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
Universal design token set applied across all Themeable components.
Definition Theme.h:70