diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-01-07 00:26:15 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2017-01-07 00:26:15 +0000 |
commit | a4bedbbaebec62294bcf6e7210c4c2b0b64f936c (patch) | |
tree | 5a6c58f286853cfaf9c07d4913681bc61cf5bde7 /frontends/amiga/corewindow.h | |
parent | 917a602dce32286260a34d61b7c0db4bee502ec0 (diff) | |
download | netsurf-a4bedbbaebec62294bcf6e7210c4c2b0b64f936c.tar.gz netsurf-a4bedbbaebec62294bcf6e7210c4c2b0b64f936c.tar.bz2 |
Broken corewindow drag implementation
Diffstat (limited to 'frontends/amiga/corewindow.h')
-rw-r--r-- | frontends/amiga/corewindow.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/frontends/amiga/corewindow.h b/frontends/amiga/corewindow.h index 17af2498a..cfcd7fc5e 100644 --- a/frontends/amiga/corewindow.h +++ b/frontends/amiga/corewindow.h @@ -58,6 +58,10 @@ struct ami_corewindow { int mouse_y_click; int mouse_state; + bool dragging; + int drag_x_start; + int drag_y_start; + bool close_window; // set to true to close the window during event loop APTR deferred_rects_pool; @@ -129,6 +133,31 @@ struct ami_corewindow { BOOL (*event)(struct ami_corewindow *ami_cw, ULONG result); /** + * callback for drag end on Amiga core window + * ie. a drag *from* this window to a different window + * + * \param ami_cw The Amiga core window structure. + * \param x mouse x position **in screen co-ordinates** + * \param y mouse y position **in screen co-ordinates** + * \return NSERROR_OK on success otherwise apropriate error code + */ + nserror (*drag_end)(struct ami_corewindow *ami_cw, int x, int y); + + /** + * callback for icon drop on Amiga core window + * ie. a drag has ended *above* this window + * \todo this may not be very flexible but serves our current purposes + * + * \param ami_cw The Amiga core window structure. + * \param url url of dropped icon + * \param title title of dropped icon + * \param x mouse x position **in screen co-ordinates** + * \param y mouse y position **in screen co-ordinates** + * \return NSERROR_OK on success otherwise apropriate error code + */ + nserror (*icon_drop)(struct ami_corewindow *ami_cw, struct nsurl *url, const char *title, int x, int y); + + /** * callback to close an Amiga core window * * \param ami_cw The Amiga core window structure. |