TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_style_ref.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5namespace tachyon
6{
9
10 // ------------------------------------------------------------------------
11 // StyleRef - References into style pools
12 // ------------------------------------------------------------------------
13
15 enum class LayoutStyleIndex : uint32_t { Invalid = 0 };
17 enum class VisualBoxStyleIndex : uint16_t { Invalid = 0 };
19 enum class VisualTextStyleIndex : uint16_t { Invalid = 0 };
20
36
37}
@ Invalid
Definition gui_image.h:37
VisualTextStyleIndex
Index into StyleManager's visual text style pool; Invalid (0) = none.
Definition gui_style_ref.h:19
LayoutStyleIndex
Index into StyleManager's layout style pool; Invalid (0) = none.
Definition gui_style_ref.h:15
VisualBoxStyleIndex
Index into StyleManager's visual box style pool; Invalid (0) = none.
Definition gui_style_ref.h:17
@ Invalid
Definition gui_style_ref.h:19
@ Invalid
Definition gui_style_ref.h:15
@ Invalid
Definition gui_style_ref.h:17
Definition gui_logging.h:24
A registered style, as StyleManager::Register returns it: indices into the shared style pools,...
Definition gui_style_ref.h:25
bool operator!=(const StyleRef &rhs) const
Definition gui_style_ref.h:34
VisualBoxStyleIndex visualBoxStyleIndex
Index into visual box style pool.
Definition gui_style_ref.h:27
VisualTextStyleIndex visualTextStyleIndex
Index into visual text style pool.
Definition gui_style_ref.h:28
bool operator==(const StyleRef &rhs) const
Definition gui_style_ref.h:33
static constexpr StyleRef Invalid()
A reference to no style (all indices Invalid).
Definition gui_style_ref.h:31
LayoutStyleIndex layoutStyleIndex
Index into layout style pool.
Definition gui_style_ref.h:26