Cyrus Mod Loader
Loading...
Searching...
No Matches
WindowStyle.h
1#pragma once
2#include <Cyrus/shared.h>
3#include <cstdint>
4
6 uint32_t HAS_BACK : 1;
7 uint32_t SCALE_CHILDREN : 1;
8 uint32_t CAN_MOVE : 1;
9 uint32_t CAN_SIZE : 1;
10 uint32_t CAN_SCROLL : 1;
11 uint32_t FOCUS_LOCKED : 1;
12 uint32_t CAN_FOCUS : 1;
13 uint32_t CAN_DOCK : 1;
15 uint32_t IS_TRANSPARENT : 1;
16 uint32_t EFFECT_FADEIN : 1;
17 uint32_t EFFECT_HIGHLIGHT : 1;
18 uint32_t HAS_NO_BORDER : 1;
19 uint32_t IGNORE_PARENT_SCALE : 1;
20 uint32_t USE_ALPHA_BOUNDS : 1;
21 uint32_t AUTO_GROW : 1;
22 uint32_t AUTO_SHRINK : 1;
23 uint32_t AUTO_RESIZE : 1;
24 uint32_t RESERVED : 14; // ensure 32-bit
25};
26STATIC_ASSERT(sizeof(WindowStyle_internal) == 4,
27 "WindowFlags size is not correct");
28
33namespace WindowStyle {
37constexpr uint32_t HAS_BACK = 1 << 0;
38
43constexpr uint32_t SCALE_CHILDREN = 1 << 1;
44
48constexpr uint32_t CAN_MOVE = 1 << 2;
49
53constexpr uint32_t CAN_SIZE = 1 << 3;
54
58constexpr uint32_t CAN_SCROLL = 1 << 4;
59
63constexpr uint32_t FOCUS_LOCKED = 1 << 5;
64
68constexpr uint32_t CAN_FOCUS = 1 << 6;
69
73constexpr uint32_t CAN_DOCK = 1 << 7;
74
79constexpr uint32_t DO_NOT_CAPTURE_MOUSE = 1 << 8;
80
84constexpr uint32_t IS_TRANSPARENT = 1 << 9;
85
89constexpr uint32_t EFFECT_FADEIN = 1 << 10;
90
94constexpr uint32_t EFFECT_HIGHLIGHT = 1 << 11;
95
99constexpr uint32_t HAS_NO_BORDER = 1 << 12;
100
105constexpr uint32_t IGNORE_PARENT_SCALE = 1 << 13;
106
110constexpr uint32_t USE_ALPHA_BOUNDS = 1 << 14;
111
116constexpr uint32_t AUTO_GROW = 1 << 15;
117
122constexpr uint32_t AUTO_SHRINK = 1 << 16;
123
128constexpr uint32_t AUTO_RESIZE = 1 << 17;
129} // namespace WindowStyle
Contains constants for defining window styles.
constexpr uint32_t SCALE_CHILDREN
Window style flag indicating that the children of the window should be scaled.
Definition WindowStyle.h:43
constexpr uint32_t HAS_BACK
Window style flag indicating that the window has a backing texture.
Definition WindowStyle.h:37
constexpr uint32_t HAS_NO_BORDER
Window style flag indicating that the window has no border.
Definition WindowStyle.h:99
constexpr uint32_t FOCUS_LOCKED
Window style flag indicating that the window's focus is locked.
Definition WindowStyle.h:63
constexpr uint32_t CAN_SCROLL
Window style flag indicating that the window can be scrolled.
Definition WindowStyle.h:58
constexpr uint32_t EFFECT_FADEIN
Window style flag indicating that the window should fade in.
Definition WindowStyle.h:89
constexpr uint32_t AUTO_SHRINK
Window style flag indicating that the window should automatically shrink.
Definition WindowStyle.h:122
constexpr uint32_t EFFECT_HIGHLIGHT
Window style flag indicating that the window should be highlighted.
Definition WindowStyle.h:94
constexpr uint32_t CAN_SIZE
Window style flag indicating that the window can be resized.
Definition WindowStyle.h:53
constexpr uint32_t CAN_FOCUS
Window style flag indicating that the window can receive focus.
Definition WindowStyle.h:68
constexpr uint32_t DO_NOT_CAPTURE_MOUSE
Window style flag indicating that the window should not capture mouse events.
Definition WindowStyle.h:79
constexpr uint32_t CAN_DOCK
Window style flag indicating that the window can be docked.
Definition WindowStyle.h:73
constexpr uint32_t AUTO_RESIZE
Window style flag indicating that the window should automatically resize.
Definition WindowStyle.h:128
constexpr uint32_t USE_ALPHA_BOUNDS
Window style flag indicating that the window should use alpha bounds.
Definition WindowStyle.h:110
constexpr uint32_t CAN_MOVE
Window style flag indicating that the window can be moved.
Definition WindowStyle.h:48
constexpr uint32_t IS_TRANSPARENT
Window style flag indicating that the window is transparent.
Definition WindowStyle.h:84
constexpr uint32_t AUTO_GROW
Window style flag indicating that the window should automatically grow.
Definition WindowStyle.h:116
constexpr uint32_t IGNORE_PARENT_SCALE
Window style flag indicating that the window should ignore parent scaling.
Definition WindowStyle.h:105
Definition WindowStyle.h:5
uint32_t IS_TRANSPARENT
Definition WindowStyle.h:15
uint32_t CAN_SCROLL
Definition WindowStyle.h:10
uint32_t CAN_MOVE
Definition WindowStyle.h:8
uint32_t SCALE_CHILDREN
Definition WindowStyle.h:7
uint32_t HAS_NO_BORDER
Definition WindowStyle.h:18
uint32_t EFFECT_FADEIN
Definition WindowStyle.h:16
uint32_t AUTO_SHRINK
Definition WindowStyle.h:22
uint32_t CAN_DOCK
Definition WindowStyle.h:13
uint32_t FOCUS_LOCKED
Definition WindowStyle.h:11
uint32_t RESERVED
Definition WindowStyle.h:24
uint32_t CAN_SIZE
Definition WindowStyle.h:9
uint32_t USE_ALPHA_BOUNDS
Definition WindowStyle.h:20
uint32_t IGNORE_PARENT_SCALE
Definition WindowStyle.h:19
uint32_t AUTO_GROW
Definition WindowStyle.h:21
uint32_t HAS_BACK
Definition WindowStyle.h:6
uint32_t AUTO_RESIZE
Definition WindowStyle.h:23
uint32_t EFFECT_HIGHLIGHT
Definition WindowStyle.h:17
uint32_t DO_NOT_CAPTURE_MOUSE
Definition WindowStyle.h:14
uint32_t CAN_FOCUS
Definition WindowStyle.h:12