From e87596ad1f7755c50f7a00edc85e66908ad1ba10 Mon Sep 17 00:00:00 2001 From: Steve Fryatt Date: Sun, 8 Sep 2013 00:47:55 +0100 Subject: Restructure handling of DragEnd events. Add ro_mouse module to process mouse events during drags and on null polls. Implement support in ro_mouse for tracking the mouse during drags and passing on DragEnd events. Remove ro_gui_drag_end() and update all of its clients so that they use ro_mouse. Remove the unused ro_gui_window_frame_resize_end(). Termination of save drags with Escape is unimplemented, but appears broken anyway. The use of gui_drag_type is still required to handle Message_DatasaveAck processing. Mouse tracking is still handled via gui.c. --- riscos/gui.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'riscos/gui.h') diff --git a/riscos/gui.h b/riscos/gui.h index b9e0647c1..8f165c027 100644 --- a/riscos/gui.h +++ b/riscos/gui.h @@ -124,7 +124,6 @@ const char *ro_gui_default_language(void); /* in download.c */ void ro_gui_download_init(void); -void ro_gui_download_drag_end(wimp_dragged *drag); void ro_gui_download_datasave_ack(wimp_message *message); bool ro_gui_download_prequit(void); @@ -133,11 +132,9 @@ void ro_gui_401login_init(void); /* in window.c */ bool ro_gui_window_dataload(struct gui_window *g, wimp_message *message); -void ro_gui_window_mouse_at(struct gui_window *g, wimp_pointer *pointer); +void ro_gui_window_mouse_at(wimp_pointer *pointer, void *data); void ro_gui_window_iconise(struct gui_window *g, wimp_full_message_window_info *wi); -void ro_gui_window_scroll_end(struct gui_window *g, wimp_dragged *drag); -void ro_gui_window_frame_resize_end(struct gui_window *g, wimp_dragged *drag); bool ro_gui_toolbar_dataload(struct gui_window *g, wimp_message *message); void ro_gui_window_redraw_all(void); void ro_gui_window_update_boxes(void); -- cgit v1.2.3