HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
hikogui
theme
style_path.hpp
1
// Copyright Take Vos 2024.
2
// Distributed under the Boost Software License, Version 1.0.
3
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5
#pragma once
6
7
#include "../macros.hpp"
8
#include <string>
9
#include <vector>
10
#include <cstdint>
11
12
hi_export_module(hikogui.theme : style_path);
13
14
hi_export
namespace
hi
{
15
inline
namespace
v1
{
16
17
struct
style_path_segment
{
18
std::string
name;
19
std::string
id;
20
std::vector<std::string>
classes;
21
22
constexpr
style_path_segment
()
noexcept
=
default
;
23
constexpr
style_path_segment
(
style_path_segment
const
&)
noexcept
=
default
;
24
constexpr
style_path_segment
(
style_path_segment
&&)
noexcept
=
default
;
25
constexpr
style_path_segment
& operator=(
style_path_segment
const
&)
noexcept
=
default
;
26
constexpr
style_path_segment
& operator=(
style_path_segment
&&)
noexcept
=
default
;
27
[[nodiscard]]
constexpr
friend
bool
operator==(
style_path_segment
const
&,
style_path_segment
const
&)
noexcept
=
default
;
28
29
constexpr
explicit
style_path_segment
(
std::string
name,
std::string
id
,
std::vector<std::string>
classes) noexcept :
30
name(
std::move
(name)), id(
std::move
(
id
)), classes(
std::move
(classes)) {}
31
};
32
33
class
style_path
:
public
std::vector
<style_path_segment> {
34
using
super =
std::vector<style_path_segment>
;
35
using
super::super;
36
};
37
38
}}
hi
The HikoGUI namespace.
Definition
array_generic.hpp:21
hi::v1
The HikoGUI API version 1.
Definition
array_generic.hpp:22
hi::style_path_segment
Definition
style_path.hpp:17
hi::style_path
Definition
style_path.hpp:33
std::string
std::move
T move(T... args)
std::vector
Generated on
for HikoGUI by
1.16.1