diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 11:26:11 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-18 11:26:11 +0200 |
commit | fa174461abdc5c33de16428109c7d46b4f150093 (patch) | |
tree | 21cf16a2426f8a6b76195e1816ceea69778fbd70 /src/ui/widget.h | |
parent | 21f6248a3dc906a0c296b937dd1aa697784e6ea3 (diff) |
Scrollbar fading and periodic commands
Added a new mechanism to issue periodic but not per-frame commands. This is used for main-thread operations like checking if it's time to fade away the scrollbars.
Scrollbars are faded away completely on Apple platforms. Adjusted list right margins accordingly.
Diffstat (limited to 'src/ui/widget.h')
-rw-r--r-- | src/ui/widget.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/ui/widget.h b/src/ui/widget.h index 88d75b62..90ccac8e 100644 --- a/src/ui/widget.h +++ b/src/ui/widget.h | |||
@@ -161,21 +161,22 @@ void destroy_Widget (iWidget *); /* widget removed and deleted later | |||
161 | void destroyPending_Widget (void); | 161 | void destroyPending_Widget (void); |
162 | void releaseChildren_Widget (iWidget *); | 162 | void releaseChildren_Widget (iWidget *); |
163 | 163 | ||
164 | const iString *id_Widget (const iWidget *); | 164 | const iString *id_Widget (const iWidget *); |
165 | int64_t flags_Widget (const iWidget *); | 165 | int64_t flags_Widget (const iWidget *); |
166 | iRect bounds_Widget (const iWidget *); /* outer bounds */ | 166 | iRect bounds_Widget (const iWidget *); /* outer bounds */ |
167 | iRect innerBounds_Widget (const iWidget *); | 167 | iRect innerBounds_Widget (const iWidget *); |
168 | iInt2 localCoord_Widget (const iWidget *, iInt2 coord); | 168 | iInt2 localCoord_Widget (const iWidget *, iInt2 coord); |
169 | iBool contains_Widget (const iWidget *, iInt2 coord); | 169 | iBool contains_Widget (const iWidget *, iInt2 coord); |
170 | iAny * hitChild_Widget (const iWidget *, iInt2 coord); | 170 | iBool containsExpanded_Widget (const iWidget *, iInt2 coord, int expand); |
171 | iAny * findChild_Widget (const iWidget *, const char *id); | 171 | iAny * hitChild_Widget (const iWidget *, iInt2 coord); |
172 | const iPtrArray *findChildren_Widget (const iWidget *, const char *id); | 172 | iAny * findChild_Widget (const iWidget *, const char *id); |
173 | iAny * findParentClass_Widget(const iWidget *, const iAnyClass *class); | 173 | const iPtrArray *findChildren_Widget (const iWidget *, const char *id); |
174 | iAny * findFocusable_Widget(const iWidget *startFrom, enum iWidgetFocusDir focusDir); | 174 | iAny * findParentClass_Widget (const iWidget *, const iAnyClass *class); |
175 | size_t childCount_Widget (const iWidget *); | 175 | iAny * findFocusable_Widget (const iWidget *startFrom, enum iWidgetFocusDir focusDir); |
176 | void draw_Widget (const iWidget *); | 176 | size_t childCount_Widget (const iWidget *); |
177 | void drawBackground_Widget(const iWidget *); | 177 | void draw_Widget (const iWidget *); |
178 | void drawChildren_Widget (const iWidget *); | 178 | void drawBackground_Widget (const iWidget *); |
179 | void drawChildren_Widget (const iWidget *); | ||
179 | 180 | ||
180 | iLocalDef int width_Widget(const iAnyObject *d) { | 181 | iLocalDef int width_Widget(const iAnyObject *d) { |
181 | if (d) { | 182 | if (d) { |