From 91a6225d8508db01574d7da2c013cb30d6a87ec8 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 26 Feb 2021 10:24:09 +0200 Subject: DocumentWidget: Inline downloads --- src/ui/mediaui.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/ui/mediaui.h') diff --git a/src/ui/mediaui.h b/src/ui/mediaui.h index a1f4ca9b..e79dedc0 100644 --- a/src/ui/mediaui.h +++ b/src/ui/mediaui.h @@ -23,6 +23,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #pragma once #include +#include iDeclareType(Paint) iDeclareType(Player) @@ -42,3 +43,19 @@ struct Impl_PlayerUI { void init_PlayerUI (iPlayerUI *, const iPlayer *player, iRect bounds); void draw_PlayerUI (iPlayerUI *, iPaint *p); + +/*----------------------------------------------------------------------------------------------*/ + +iDeclareType(DocumentWidget) +iDeclareType(Media) +iDeclareType(DownloadUI) + +struct Impl_DownloadUI { + const iDocumentWidget *doc; + uint16_t mediaId; + iRect bounds; +}; + +void init_DownloadUI (iDownloadUI *, const iDocumentWidget *doc, uint16_t mediaId, iRect bounds); +iBool processEvent_DownloadUI (iDownloadUI *, const SDL_Event *ev); +void draw_DownloadUI (const iDownloadUI *, iPaint *p); -- cgit v1.2.3