HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
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
12hi_export_module(hikogui.theme : style_path);
13
14hi_export namespace hi {
15inline namespace v1 {
16
18 std::string name;
19 std::string id;
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
33class style_path : public std::vector<style_path_segment> {
35 using super::super;
36};
37
38}}
The HikoGUI namespace.
Definition array_generic.hpp:21
The HikoGUI API version 1.
Definition array_generic.hpp:22
Definition style_path.hpp:17
Definition style_path.hpp:33
T move(T... args)