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