summaryrefslogtreecommitdiff
path: root/src/ui/mediaui.h
diff options
context:
space:
mode:
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);