diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-08 00:56:07 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-08 00:56:07 +0100 |
commit | ae36d35728f8622396faba7aeb58434aff2d0331 (patch) | |
tree | d5a1d54ed7f23f73b70815a5a48c7f5359abc64d /frontends/amiga/gui.c | |
parent | a5aa53657c6feaf8ddd29ee33f8d5e89138ec996 (diff) | |
download | netsurf-ae36d35728f8622396faba7aeb58434aff2d0331.tar.gz netsurf-ae36d35728f8622396faba7aeb58434aff2d0331.tar.bz2 |
throbber crap
Diffstat (limited to 'frontends/amiga/gui.c')
-rw-r--r-- | frontends/amiga/gui.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index 3920616e3..2132a2408 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -379,6 +379,45 @@ void ami_gui_set_throbbing(struct gui_window *gw, bool throbbing) gw->throbbing = throbbing; } +int ami_gui_get_throbber_frame(struct gui_window *gw) +{ + assert(gw != NULL); + assert(gw->shared != NULL); + return gw->shared->throbber_frame; +} + +void ami_gui_set_throbber_frame(struct gui_window *gw, int frame) +{ + assert(gw != NULL); + assert(gw->shared != NULL); + gw->shared->throbber_frame = frame; +} + +Object *ami_gui_get_object(struct gui_window *gw, int object_type) +{ + ULONG obj = 0; + + assert(gw != NULL); + assert(gw->shared != NULL); + + switch(object_type) { + case AMI_GAD_THROBBER: + obj = GID_THROBBER; + break; + + case AMI_GAD_TABS: + obj = GID_TABS; + break; + + default: + return NULL; + break; + } + + return gw->shared->objects[obj]; +} + + struct Window *ami_gui2_get_window(struct gui_window_2 *gwin) { assert(gwin != NULL); |