diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-17 11:08:57 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-17 11:08:57 +0300 |
commit | 9b7651e70cca507fd742c13898b63f1a363d3274 (patch) | |
tree | 55027bea25bca899ef22f0abc873c37470177d18 /src/ui/widget.h | |
parent | 2c65d63150b98a3157b0ca9f684275be6c497445 (diff) |
Mobile: Swipe improvements
Edge swipe direction is determined in a more dynamic way.
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r-- | src/ui/widget.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h index 53dbbff2..79d45f23 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h | |||
@@ -119,7 +119,7 @@ enum iWidgetFlag { | |||
119 | #define noFadeBackground_WidgetFlag iBit64(60) | 119 | #define noFadeBackground_WidgetFlag iBit64(60) |
120 | #define destroyPending_WidgetFlag iBit64(61) /* TODO: needed? */ | 120 | #define destroyPending_WidgetFlag iBit64(61) /* TODO: needed? */ |
121 | #define edgeDraggable_WidgetFlag iBit64(62) | 121 | #define edgeDraggable_WidgetFlag iBit64(62) |
122 | #define topPanelOffset_WidgetFlag iBit64(63) /* visual offset determined by the offset of siblings */ | 122 | #define refChildrenOffset_WidgetFlag iBit64(63) /* visual offset determined by the offset of referenced children */ |
123 | 123 | ||
124 | enum iWidgetAddPos { | 124 | enum iWidgetAddPos { |
125 | back_WidgetAddPos, | 125 | back_WidgetAddPos, |
@@ -138,6 +138,7 @@ struct Impl_Widget { | |||
138 | iRect rect; | 138 | iRect rect; |
139 | iInt2 minSize; | 139 | iInt2 minSize; |
140 | iWidget * sizeRef; | 140 | iWidget * sizeRef; |
141 | iWidget * offsetRef; | ||
141 | int padding[4]; /* left, top, right, bottom */ | 142 | int padding[4]; /* left, top, right, bottom */ |
142 | iAnim visualOffset; | 143 | iAnim visualOffset; |
143 | int bgColor; | 144 | int bgColor; |