TachyonUI 0.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
5
6namespace tachyon
7{
10
11 // ------------------------------------------------------------------------
12 // Element Flags
13 // ------------------------------------------------------------------------
14
17 enum class ElementFlags : uint32_t
18 {
19 None = 0,
20
21 IsLabel = 1u << 0,
22 IsControl = 1u << 1,
23
24 HasText = 1u << 2,
25 HasIcon = 1u << 3,
27
28 IsWindow = 1u << 5,
29
30 WindowCanMove = 1u << 6,
31 WindowCanResize = 1u << 7,
33 WindowNoCaption = 1u << 8,
36 WindowIsModal = 1u << 11,
37 WindowIsPopup = 1u << 12,
42 WindowConfirmClose = 1u << 21,
43
44 Shadows = 1u << 15,
46 NoInput = 1u << 17,
47 IsCachedScope = 1u << 20,
49 SharesID = 1u << 22,
52 AnimatesSelected = 1u << 23,
53
55 };
57
58
59} // namespace tachyon
ElementFlags
What an element is and how it behaves, combined with |.
Definition gui_element_flags.h:18
@ DoNotMeasureText
Definition gui_element_flags.h:26
@ WindowCanMove
Definition gui_element_flags.h:30
@ WindowIsPopup
Definition gui_element_flags.h:37
@ WindowConfirmClose
closing it asks the app first: GUIApplication::CloseRequested
Definition gui_element_flags.h:42
@ WindowNoCaption
Definition gui_element_flags.h:33
@ WindowIsCentered
Definition gui_element_flags.h:34
@ IsControl
Definition gui_element_flags.h:22
@ HasIcon
Definition gui_element_flags.h:25
@ WindowCanResize
Definition gui_element_flags.h:31
@ WindowNotFocusable
Definition gui_element_flags.h:39
@ None
Definition gui_element_flags.h:19
@ WindowIsModal
Definition gui_element_flags.h:36
@ HasText
Definition gui_element_flags.h:24
@ WindowRenderToImage
no OS window; see WindowFlags::RenderToImage
Definition gui_element_flags.h:40
@ IsCachedScope
BeginCached scope; blits its cached primitives while clean.
Definition gui_element_flags.h:47
@ WindowUserControlled
Definition gui_element_flags.h:32
@ IsLabel
Definition gui_element_flags.h:21
@ PropagatesDescendantState
Hover/Focused when any descendant is.
Definition gui_element_flags.h:45
@ NoInput
Mouse hits pass through; a window's, to the windows under it.
Definition gui_element_flags.h:46
@ WindowCloseWithParent
Definition gui_element_flags.h:38
@ 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:49
@ WindowCustomTitleBar
draws its own title bar; see WindowFlags::CustomTitleBar
Definition gui_element_flags.h:41
@ Shadows
OS drop shadow for windows (elements use CSS box-shadow).
Definition gui_element_flags.h:44
@ IsWindow
Definition gui_element_flags.h:28
@ 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:52
@ WindowIsTransparent
Definition gui_element_flags.h:35
@ IsMenuWindow
Definition gui_element_flags.h:54
#define TACHYON_ENUM_OPERATORS(EnumType)
Definition gui_enum_operators.h:6
Definition gui_logging.h:24