summaryrefslogtreecommitdiff
path: root/src/ui/mediaui.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-26 10:24:09 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-26 10:24:09 +0200
commit91a6225d8508db01574d7da2c013cb30d6a87ec8 (patch)
treee3bd2c2f24a22c694c1c23aefd5fc531ae108723 /src/ui/mediaui.h
parent4708a6580e9af65cd15769e87487fdf4456f1e00 (diff)
DocumentWidget: Inline downloads
Diffstat (limited to 'src/ui/mediaui.h')
-rw-r--r--src/ui/mediaui.h17
1 files changed, 17 insertions, 0 deletions
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. */
23#pragma once 23#pragma once
24 24
25#include <the_Foundation/rect.h> 25#include <the_Foundation/rect.h>
26#include <SDL_events.h>
26 27
27iDeclareType(Paint) 28iDeclareType(Paint)
28iDeclareType(Player) 29iDeclareType(Player)
@@ -42,3 +43,19 @@ struct Impl_PlayerUI {
42 43
43void init_PlayerUI (iPlayerUI *, const iPlayer *player, iRect bounds); 44void init_PlayerUI (iPlayerUI *, const iPlayer *player, iRect bounds);
44void draw_PlayerUI (iPlayerUI *, iPaint *p); 45void draw_PlayerUI (iPlayerUI *, iPaint *p);
46
47/*----------------------------------------------------------------------------------------------*/
48
49iDeclareType(DocumentWidget)
50iDeclareType(Media)
51iDeclareType(DownloadUI)
52
53struct Impl_DownloadUI {
54 const iDocumentWidget *doc;
55 uint16_t mediaId;
56 iRect bounds;
57};
58
59void init_DownloadUI (iDownloadUI *, const iDocumentWidget *doc, uint16_t mediaId, iRect bounds);
60iBool processEvent_DownloadUI (iDownloadUI *, const SDL_Event *ev);
61void draw_DownloadUI (const iDownloadUI *, iPaint *p);