diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-10 21:49:00 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2019-05-10 21:49:00 +0100 |
commit | 24b910f4ff72b24a871c7d66f9e5f5992625c975 (patch) | |
tree | 119b66b0857d06ba83a0058212098221e65026d5 /frontends/amiga/gui.h | |
parent | a5051c7128ee7ee9b0bc26a81ad7eb3af199d7ca (diff) | |
download | netsurf-24b910f4ff72b24a871c7d66f9e5f5992625c975.tar.gz netsurf-24b910f4ff72b24a871c7d66f9e5f5992625c975.tar.bz2 |
Make the window list more private
TODO: fix arexx.c to not need it
Diffstat (limited to 'frontends/amiga/gui.h')
-rw-r--r-- | frontends/amiga/gui.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/frontends/amiga/gui.h b/frontends/amiga/gui.h index c4af98f93..1376495c7 100644 --- a/frontends/amiga/gui.h +++ b/frontends/amiga/gui.h @@ -75,8 +75,6 @@ struct ami_generic_window { const struct ami_win_event_table *tbl; }; - -extern struct MinList *window_list; /**\todo stop arexx.c poking about in here */ extern struct MsgPort *sport; #define IS_CURRENT_GW(GWIN,GW) (ami_gui2_get_gui_window(GWIN) == GW) @@ -105,6 +103,7 @@ int ami_gui_count_windows(int window, int *tabs); void ami_gui_set_scale(struct gui_window *gw, float scale); void ami_set_pointer(struct gui_window_2 *gwin, gui_pointer_shape shape, bool update); void ami_reset_pointer(struct gui_window_2 *gwin); +void *ami_window_at_pointer(int type); /** * Beep @@ -178,6 +177,15 @@ nserror ami_gui_win_list_add(void *win, int type, const struct ami_win_event_tab void ami_gui_win_list_remove(void *win); /** + * Get the window list. + * + *\TODO: Nothing should be poking around in this list, but we aren't + * assigning unique IDs to windows (ARexx interface needs this) + * ami_find_gwin_by_id() is close but not ARexx-friendly + */ +struct MinList *ami_gui_get_window_list(void); + +/** * Get which qualifier keys are being pressed */ int ami_gui_get_quals(Object *win_obj); |