summaryrefslogtreecommitdiff
path: root/src/ui/playerui.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-10-14 19:12:11 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-10-14 19:12:11 +0300
commit6b589f349f5fa459d25d865a65d11e242232b7a5 (patch)
tree6f477867e4815b3bcc2dc90fbf2c0e6fdcb7427e /src/ui/playerui.h
parent72a2736572c31bf17ef36e422d35c3975d41e470 (diff)
Player: Volume adjustment UI
Diffstat (limited to 'src/ui/playerui.h')
-rw-r--r--src/ui/playerui.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/ui/playerui.h b/src/ui/playerui.h
new file mode 100644
index 00000000..a1f4ca9b
--- /dev/null
+++ b/src/ui/playerui.h
@@ -0,0 +1,44 @@
1/* Copyright 2020 Jaakko Keränen <jaakko.keranen@iki.fi>
2
3Redistribution and use in source and binary forms, with or without
4modification, are permitted provided that the following conditions are met:
5
61. Redistributions of source code must retain the above copyright notice, this
7 list of conditions and the following disclaimer.
82. Redistributions in binary form must reproduce the above copyright notice,
9 this list of conditions and the following disclaimer in the documentation
10 and/or other materials provided with the distribution.
11
12THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
13ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
16ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
22
23#pragma once
24
25#include <the_Foundation/rect.h>
26
27iDeclareType(Paint)
28iDeclareType(Player)
29iDeclareType(PlayerUI)
30
31struct Impl_PlayerUI {
32 const iPlayer *player;
33 iRect bounds;
34 iRect playPauseRect;
35 iRect rewindRect;
36 iRect scrubberRect;
37 iRect volumeRect;
38 iRect volumeAdjustRect;
39 iRect volumeSlider;
40 iRect menuRect;
41};
42
43void init_PlayerUI (iPlayerUI *, const iPlayer *player, iRect bounds);
44void draw_PlayerUI (iPlayerUI *, iPaint *p);