1 | // Aseprite UI Library |
2 | // Copyright (C) 2018-2020 Igara Studio S.A. |
3 | // Copyright (C) 2001-2016 David Capello |
4 | // |
5 | // This file is released under the terms of the MIT license. |
6 | // Read LICENSE.txt for more information. |
7 | |
8 | #ifndef UI_BASE_H_INCLUDED |
9 | #define UI_BASE_H_INCLUDED |
10 | #pragma once |
11 | |
12 | namespace ui { |
13 | |
14 | // Widget flags |
15 | enum { |
16 | HIDDEN = 0x00000001, // Is hidden (not visible, not clickeable). |
17 | SELECTED = 0x00000002, // Is selected. |
18 | DISABLED = 0x00000004, // Is disabled (not usable). |
19 | HAS_FOCUS = 0x00000008, // Has the input focus. |
20 | HAS_MOUSE = 0x00000010, // Has the mouse. |
21 | HAS_CAPTURE = 0x00000020, // Captured the mouse . |
22 | FOCUS_STOP = 0x00000040, // The widget support the focus on it. |
23 | FOCUS_MAGNET = 0x00000080, // The widget wants the focus by default (e.g. when the dialog is shown by first time). |
24 | EXPANSIVE = 0x00000100, // Is expansive (want more space). |
25 | DECORATIVE = 0x00000200, // To decorate windows. |
26 | INITIALIZED = 0x00000400, // The widget was already initialized by a theme. |
27 | DIRTY = 0x00000800, // The widget (or one child) is dirty (update_region != empty). |
28 | HAS_TEXT = 0x00001000, // The widget has text (at least setText() was called one time). |
29 | DOUBLE_BUFFERED = 0x00002000, // The widget is painted in a back-buffer and then flipped to the main display |
30 | TRANSPARENT = 0x00004000, // The widget has transparent parts that needs the background painted before |
31 | CTRL_RIGHT_CLICK = 0x00008000, // The widget should transform Ctrl+click to right-click on OS X. |
32 | IGNORE_MOUSE = 0x80000000, // Don't process mouse messages for this widget (useful for labels, boxes, grids, etc.) |
33 | PROPERTIES_MASK = 0x8000ffff, |
34 | |
35 | HORIZONTAL = 0x00010000, |
36 | VERTICAL = 0x00020000, |
37 | LEFT = 0x00040000, |
38 | CENTER = 0x00080000, |
39 | RIGHT = 0x00100000, |
40 | TOP = 0x00200000, |
41 | MIDDLE = 0x00400000, |
42 | BOTTOM = 0x00800000, |
43 | HOMOGENEOUS = 0x01000000, |
44 | WORDWRAP = 0x02000000, |
45 | CHARWRAP = 0x04000000, |
46 | ALIGN_MASK = 0x7fff0000, |
47 | }; |
48 | |
49 | } // namespace ui |
50 | |
51 | #endif // UI_BASE_H_INCLUDED |
52 | |