malena
Why malena
Quick start
Tutorials
API docs
GitHub
GitHub
Tutorials
Loading...
Searching...
No Matches
Traits
Style
ToolbarStyle.h
Go to the documentation of this file.
1
// ToolbarStyle.h
2
#ifndef MALENA_TOOLBARSTYLE_H
3
#define MALENA_TOOLBARSTYLE_H
4
#pragma once
5
#include <
Malena/Core/malena_export.h
>
6
#include <
Malena/Traits/Settings/ToolbarSettings.h
>
7
#include <
Malena/Traits/Theme/ToolbarTheme.h
>
8
9
namespace
ml
10
{
11
struct
ToolbarStyle
:
ToolbarSettings
,
ToolbarTheme
12
{
13
ToolbarStyle
&
operator=
(
const
ToolbarSettings
& s)
14
{
static_cast<
ToolbarSettings
&
>
(*this) = s;
return
*
this
; }
15
ToolbarStyle
&
operator=
(
const
ToolbarTheme
& t)
16
{
static_cast<
ToolbarTheme
&
>
(*this) = t;
return
*
this
; }
17
ToolbarStyle
&
operator=
(
const
ControlTheme
& c)
18
{
static_cast<
ToolbarTheme
&
>
(*this) = c;
return
*
this
; }
19
ToolbarStyle
&
operator=
(
const
ControlSettings
& c)
20
{
static_cast<
ToolbarSettings
&
>
(*this) = c;
return
*
this
; }
21
ToolbarStyle
&
applyFrom
(
const
Theme
& t)
22
{
ToolbarTheme::applyFrom
(t);
return
*
this
; }
23
};
24
}
// namespace ml
25
#endif
ToolbarSettings.h
ToolbarTheme.h
malena_export.h
ml
Definition
Component.h:22
ml::ControlSettings
Settings trait for interactive UI controls — layout only.
Definition
ControlSettings.h:24
ml::ControlTheme
Theme tokens for interactive UI controls.
Definition
ControlTheme.h:29
ml::Theme
Universal design token set applied across all Themeable components.
Definition
Theme.h:70
ml::ToolbarSettings
Definition
ToolbarSettings.h:12
ml::ToolbarStyle
Definition
ToolbarStyle.h:12
ml::ToolbarStyle::operator=
ToolbarStyle & operator=(const ControlTheme &c)
Definition
ToolbarStyle.h:17
ml::ToolbarStyle::operator=
ToolbarStyle & operator=(const ToolbarTheme &t)
Definition
ToolbarStyle.h:15
ml::ToolbarStyle::applyFrom
ToolbarStyle & applyFrom(const Theme &t)
Populate all fields from the global Theme token set.
Definition
ToolbarStyle.h:21
ml::ToolbarStyle::operator=
ToolbarStyle & operator=(const ToolbarSettings &s)
Definition
ToolbarStyle.h:13
ml::ToolbarStyle::operator=
ToolbarStyle & operator=(const ControlSettings &c)
Definition
ToolbarStyle.h:19
ml::ToolbarTheme
Definition
ToolbarTheme.h:11
ml::ToolbarTheme::applyFrom
ToolbarTheme & applyFrom(const Theme &t) override
Populate all fields from the global Theme token set.
Definition
ToolbarTheme.h:17