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