diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-14 15:36:48 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-06-14 15:36:48 +0300 |
commit | fe238b29132b43f07aa88cf6bb60bec1ff0d3f8d (patch) | |
tree | 34d08228270960a73f5586ae907a12d7adb7b393 /src/ui/widget.h | |
parent | 203426a88b2d94ed56f7d3f8f8eb18a7457cab11 (diff) |
Swiping and sidebar; various tweaks
When a page is opened from the sidebar, swiping back will now reopen the sidebar. Another swipe will dismiss the sidebar and navigate back as usual.
Attempted to cache theme colors in GmDocument, but there were issues with theme changes.
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r-- | src/ui/widget.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h index b2310f21..acb8fa9d 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h | |||
@@ -242,10 +242,9 @@ iBool isSelected_Widget (const iAnyObject *); | |||
242 | iBool isUnderKeyRoot_Widget (const iAnyObject *); | 242 | iBool isUnderKeyRoot_Widget (const iAnyObject *); |
243 | iBool isCommand_Widget (const iWidget *d, const SDL_Event *ev, const char *cmd); | 243 | iBool isCommand_Widget (const iWidget *d, const SDL_Event *ev, const char *cmd); |
244 | iBool hasParent_Widget (const iWidget *d, const iWidget *someParent); | 244 | iBool hasParent_Widget (const iWidget *d, const iWidget *someParent); |
245 | iBool isAffectedByVisualOffset_Widget | 245 | iBool isAffectedByVisualOffset_Widget (const iWidget *); |
246 | (const iWidget *); | 246 | iBool isBeingVisuallyOffsetByReference_Widget (const iWidget *); |
247 | iBool isBeingVisuallyOffsetByReference_Widget | 247 | int visualOffsetByReference_Widget (const iWidget *); |
248 | (const iWidget *); | ||
249 | void setId_Widget (iWidget *, const char *id); | 248 | void setId_Widget (iWidget *, const char *id); |
250 | void setFlags_Widget (iWidget *, int64_t flags, iBool set); | 249 | void setFlags_Widget (iWidget *, int64_t flags, iBool set); |
251 | void setPos_Widget (iWidget *, iInt2 pos); | 250 | void setPos_Widget (iWidget *, iInt2 pos); |
@@ -278,6 +277,8 @@ void refresh_Widget (const iAnyObject *); | |||
278 | 277 | ||
279 | iBool equalWidget_Command (const char *cmd, const iWidget *widget, const char *checkCommand); | 278 | iBool equalWidget_Command (const char *cmd, const iWidget *widget, const char *checkCommand); |
280 | 279 | ||
280 | int backgroundFadeColor_Widget (void); | ||
281 | |||
281 | void setFocus_Widget (iWidget *); | 282 | void setFocus_Widget (iWidget *); |
282 | iWidget * focus_Widget (void); | 283 | iWidget * focus_Widget (void); |
283 | void setHover_Widget (iWidget *); | 284 | void setHover_Widget (iWidget *); |