TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_element_flags.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace tachyon
6{
9
10 // ------------------------------------------------------------------------
11 // Element Flags
12 // ------------------------------------------------------------------------
13
16 enum class ElementFlags : uint32_t
17 {
18 None = 0,
19
20 IsLabel = 1u << 0,
21 IsControl = 1u << 1,
22
23 HasText = 1u << 2,
24 HasIcon = 1u << 3,
26
27 IsWindow = 1u << 5,
28
29 WindowCanMove = 1u << 6,
30 WindowCanResize = 1u << 7,
32 WindowNoCaption = 1u << 8,
35 WindowIsModal = 1u << 11,
36 WindowIsPopup = 1u << 12,
41 WindowConfirmClose = 1u << 21,
45
46 Shadows = 1u << 15,
48 NoInput = 1u << 17,
49 IsCachedScope = 1u << 20,
51 SharesID = 1u << 22,
54 AnimatesSelected = 1u << 23,
57 Animated = 1u << 24,
60 ShownFocused = 1u << 26,
61
63 };
65
66
67} // namespace tachyon
ElementFlags
What an element is and how it behaves, combined with |.
Definition gui_element_flags.h:17
@ DoNotMeasureText
Definition gui_element_flags.h:25
@ ShownFocused
Shown focused (GUIApplication::BeginShownState): its focus ring shows whether or not focus came from ...
Definition gui_element_flags.h:60
@ Animated
Drawn differently every frame (a spinner, a sliding bar): a BeginCached scope holding it is rebuilt e...
Definition gui_element_flags.h:57
@ WindowCanMove
Definition gui_element_flags.h:29
@ WindowIsPopup
Definition gui_element_flags.h:36
@ WindowConfirmClose
closing it asks the app first: GUIApplication::CloseRequested
Definition gui_element_flags.h:41
@ WindowNoCaption
Definition gui_element_flags.h:32
@ WindowIsCentered
Definition gui_element_flags.h:33
@ IsControl
Definition gui_element_flags.h:21
@ HasIcon
Definition gui_element_flags.h:24
@ WindowCanResize
Definition gui_element_flags.h:30
@ WindowNotFocusable
Definition gui_element_flags.h:38
@ None
Definition gui_element_flags.h:18
@ WindowIsModal
Definition gui_element_flags.h:35
@ HasText
Definition gui_element_flags.h:23
@ WindowRenderToImage
no OS window; see WindowFlags::RenderToImage
Definition gui_element_flags.h:39
@ IsCachedScope
BeginCached scope; blits its cached primitives while clean.
Definition gui_element_flags.h:49
@ WindowUserControlled
Definition gui_element_flags.h:31
@ IsLabel
Definition gui_element_flags.h:20
@ PropagatesDescendantState
Hover/Focused when any descendant is.
Definition gui_element_flags.h:47
@ WindowImagePopups
With WindowRenderToImage: the windows opened in it (menus, tooltips, pickers, dialogs) and theirs ren...
Definition gui_element_flags.h:44
@ NoInput
Mouse hits pass through; a window's, to the windows under it.
Definition gui_element_flags.h:48
@ WindowCloseWithParent
Definition gui_element_flags.h:37
@ SharesID
Has an earlier element's ID on purpose: a part of it, e.g. a row's tree cell.
Definition gui_element_flags.h:51
@ WindowCustomTitleBar
draws its own title bar; see WindowFlags::CustomTitleBar
Definition gui_element_flags.h:40
@ Shadows
OS drop shadow for windows (elements use CSS box-shadow).
Definition gui_element_flags.h:46
@ IsWindow
Definition gui_element_flags.h:27
@ AnimatesSelected
Turning Selected on or off blends like a toggle (a switch's track, a check box's box); without it Sel...
Definition gui_element_flags.h:54
@ WindowIsTransparent
Definition gui_element_flags.h:34
@ IsMenuWindow
Definition gui_element_flags.h:62
#define TACHYON_ENUM_OPERATORS(EnumType)
Definition gui_enum_operators.h:8
Definition gui_logging.h:24