summaryrefslogtreecommitdiff
path: root/src/ui/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r--src/ui/widget.h62
1 files changed, 33 insertions, 29 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h
index 1cea7147..bf6489a0 100644
--- a/src/ui/widget.h
+++ b/src/ui/widget.h
@@ -22,35 +22,39 @@ iBeginDeclareClass(Widget)
22iEndDeclareClass(Widget) 22iEndDeclareClass(Widget)
23 23
24enum iWidgetFlag { 24enum iWidgetFlag {
25 hidden_WidgetFlag = iBit(1), 25 hidden_WidgetFlag = iBit(1),
26 disabled_WidgetFlag = iBit(2), 26 disabled_WidgetFlag = iBit(2),
27 hover_WidgetFlag = iBit(3), /* eligible for mouse hover */ 27 hover_WidgetFlag = iBit(3), /* eligible for mouse hover */
28 selected_WidgetFlag = iBit(4), 28 selected_WidgetFlag = iBit(4),
29 pressed_WidgetFlag = iBit(5), 29 pressed_WidgetFlag = iBit(5),
30 alignLeft_WidgetFlag = iBit(6), 30 alignLeft_WidgetFlag = iBit(6),
31 alignRight_WidgetFlag = iBit(7), 31 alignRight_WidgetFlag = iBit(7),
32 frameless_WidgetFlag = iBit(8), 32 frameless_WidgetFlag = iBit(8),
33 commandOnClick_WidgetFlag = iBit(9), 33 commandOnClick_WidgetFlag = iBit(9),
34 drawKey_WidgetFlag = iBit(10), 34 drawKey_WidgetFlag = iBit(10),
35 focusable_WidgetFlag = iBit(11), 35 focusable_WidgetFlag = iBit(11),
36 tight_WidgetFlag = iBit(31), /* smaller padding */ 36 tight_WidgetFlag = iBit(12), /* smaller padding */
37 keepOnTop_WidgetFlag = iBit(12), /* gets events first; drawn last */ 37 keepOnTop_WidgetFlag = iBit(13), /* gets events first; drawn last */
38 arrangeHorizontal_WidgetFlag = iBit(17), /* arrange children horizontally */ 38 /* arrange behavior */
39 arrangeVertical_WidgetFlag = iBit(18), /* arrange children vertically */ 39 arrangeHorizontal_WidgetFlag = iBit(17), /* arrange children horizontally */
40 arrangeWidth_WidgetFlag = iBit(19), /* area of children becomes parent size */ 40 arrangeVertical_WidgetFlag = iBit(18), /* arrange children vertically */
41 arrangeHeight_WidgetFlag = iBit(20), /* area of children becomes parent size */ 41 arrangeWidth_WidgetFlag = iBit(19), /* area of children becomes parent size */
42 arrangeSize_WidgetFlag = arrangeWidth_WidgetFlag | arrangeHeight_WidgetFlag, 42 arrangeHeight_WidgetFlag = iBit(20), /* area of children becomes parent size */
43 resizeChildren_WidgetFlag = iBit(21), /* resize children to fill parent size */ 43 resizeWidthOfChildren_WidgetFlag = iBit(21),
44 expand_WidgetFlag = iBit(22), 44 resizeHeightOfChildren_WidgetFlag = iBit(22),
45 fixedWidth_WidgetFlag = iBit(23), 45 expand_WidgetFlag = iBit(23),
46 fixedHeight_WidgetFlag = iBit(24), 46 fixedWidth_WidgetFlag = iBit(24),
47 fixedSize_WidgetFlag = fixedWidth_WidgetFlag | fixedHeight_WidgetFlag, 47 fixedHeight_WidgetFlag = iBit(25),
48 resizeChildrenToWidestChild_WidgetFlag = iBit(25), 48 resizeChildrenToWidestChild_WidgetFlag = iBit(26),
49 resizeToParentWidth_WidgetFlag = iBit(26), 49 resizeToParentWidth_WidgetFlag = iBit(27),
50 resizeToParentHeight_WidgetFlag = iBit(27), 50 resizeToParentHeight_WidgetFlag = iBit(28),
51 moveToParentRightEdge_WidgetFlag = iBit(28), 51 moveToParentRightEdge_WidgetFlag = iBit(29),
52 collapse_WidgetFlag = iBit(29), /* when hidden, arrange size to zero */ 52 collapse_WidgetFlag = iBit(30), /* when hidden, arrange size to zero */
53 wasCollapsed_WidgetFlag = iBit(30), 53 wasCollapsed_WidgetFlag = iBit(31),
54 /* combinations */
55 arrangeSize_WidgetFlag = arrangeWidth_WidgetFlag | arrangeHeight_WidgetFlag,
56 resizeChildren_WidgetFlag = resizeWidthOfChildren_WidgetFlag | resizeHeightOfChildren_WidgetFlag,
57 fixedSize_WidgetFlag = fixedWidth_WidgetFlag | fixedHeight_WidgetFlag,
54}; 58};
55 59
56enum iWidgetAddPos { 60enum iWidgetAddPos {