Loading...
Searching...
No Matches
TextInputStyle.h
Go to the documentation of this file.
1//
2// TextInputStyle.h
3//
4
5#ifndef MALENA_TEXTINPUTSTYLE_H
6#define MALENA_TEXTINPUTSTYLE_H
7
8#pragma once
9
14
15namespace ml
16{
23 {
25 { static_cast<TextInputSettings&>(*this) = s; return *this; }
26
28 { static_cast<TextInputTheme&>(*this) = t; return *this; }
29
31 { static_cast<TextInputTheme&>(*this) = i; return *this; }
32
34 { static_cast<TextInputSettings&>(*this) = i; return *this; }
35
37 { static_cast<TextInputTheme&>(*this) = c; return *this; }
38
40 { static_cast<TextInputSettings&>(*this) = c; return *this; }
41
43 { TextInputTheme::applyFrom(t); return *this; }
44 };
45
59 {
61 { static_cast<TextInputSettings&>(*this) = s; return *this; }
62
64 { static_cast<TextInputTheme&>(*this) = t; return *this; }
65
67 { static_cast<TextAreaTheme&>(*this) = t; return *this; }
68
70 { static_cast<TextInputTheme&>(*this) = i; return *this; }
71
73 { static_cast<TextInputSettings&>(*this) = i; return *this; }
74
76 { static_cast<TextInputTheme&>(*this) = c; return *this; }
77
79 { static_cast<TextInputSettings&>(*this) = c; return *this; }
80
82 {
85 return *this;
86 }
87 };
88
89} // namespace ml
90
91#endif // MALENA_TEXTINPUTSTYLE_H
Definition Component.h:22
Settings trait for interactive UI controls — layout only.
Theme tokens for interactive UI controls.
Layout and behaviour settings shared by all input controls.
Color and font tokens shared by all input controls.
Definition InputTheme.h:25
Complete style descriptor for TextArea.
TextAreaStyle & operator=(const ControlSettings &c)
TextAreaStyle & operator=(const TextInputTheme &t)
TextAreaStyle & operator=(const InputSettings &i)
TextAreaStyle & applyFrom(const Theme &t)
Populate all fields from the global Theme token set.
TextAreaStyle & operator=(const TextAreaTheme &t)
TextAreaStyle & operator=(const ControlTheme &c)
TextAreaStyle & operator=(const TextInputSettings &s)
TextAreaStyle & operator=(const InputTheme &i)
Scrollbar color tokens for TextArea.
TextAreaTheme & applyFrom(const Theme &t)
Layout and behaviour settings for TextInput and TextArea.
Complete style descriptor for TextInput.
TextInputStyle & operator=(const InputSettings &i)
TextInputStyle & applyFrom(const Theme &t)
Populate all fields from the global Theme token set.
TextInputStyle & operator=(const InputTheme &i)
TextInputStyle & operator=(const ControlSettings &c)
TextInputStyle & operator=(const ControlTheme &c)
TextInputStyle & operator=(const TextInputTheme &t)
TextInputStyle & operator=(const TextInputSettings &s)
Color tokens for TextInput and TextArea.
TextInputTheme & 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