FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDDrawButtons.c
Go to the documentation of this file.
1
#include "
FBLib_TMSOSDMenu.h
"
2
3
void
OSDDrawButtons
(
void
)
4
{
5
TRACEENTER
();
6
7
tMenu
*pMenu;
8
dword i;
9
10
pMenu = &
Menu
[
CurrentMenuLevel
];
11
12
if
(pMenu->
OSDMenuDisplayMode
==
OMDM_ListBox
) TAP_Osd_FillBox(
OSDRgn
, pMenu->
XPos
-
LISTBOX_GAP_FRAME_TO_X
, 481, pMenu->
Width
+
LISTBOX_ADDITIONAL_WIDTH
- 2 *
LISTBOX_FRAME_THICKNESS
, 54, RGB(16, 16, 16));
13
else
TAP_Osd_FillBox(
OSDRgn
, 0, 481, 720, 95, RGB(16, 16, 16));
14
15
for
(i = 0; i < pMenu->
NrButtons
; i++)
16
{
17
TAP_Osd_PutGd(
OSDRgn
, pMenu->
Buttons
[i].
X
, pMenu->
Buttons
[i].
Y
, pMenu->
Buttons
[i].
pButtonGd
, TRUE);
18
FMUC_PutStringAA
(
OSDRgn
, pMenu->
Buttons
[i].
X
+ pMenu->
Buttons
[i].
pButtonGd
->width + 2, pMenu->
Buttons
[i].
Y
+ 3 +
FONTYOFFSET
, pMenu->
XPos
+ pMenu->
Width
- 2, pMenu->
Buttons
[i].
Text
, pMenu->
Buttons
[i].
Color
, COLOR_None, pMenu->
FontButtons
, FALSE, ALIGN_LEFT, 1);
19
}
20
21
if
(pMenu->
CallbackProcedure
) pMenu->
CallbackProcedure
(
OSDCB_Buttons
,
OSDRgn
);
22
23
TRACEEXIT
();
24
}
FBLib_TMSOSDMenu.h
FONTYOFFSET
#define FONTYOFFSET
Definition:
FBLib_TMSOSDMenu.h:12
Menu
tMenu Menu[NRMENULEVELS]
Definition:
OSDMenuInit.c:6
LISTBOX_FRAME_THICKNESS
#define LISTBOX_FRAME_THICKNESS
Definition:
FBLib_TMSOSDMenu.h:14
OMDM_ListBox
@ OMDM_ListBox
Definition:
FBLib_TMSOSDMenu.h:61
LISTBOX_GAP_FRAME_TO_X
#define LISTBOX_GAP_FRAME_TO_X
Definition:
FBLib_TMSOSDMenu.h:15
LISTBOX_ADDITIONAL_WIDTH
#define LISTBOX_ADDITIONAL_WIDTH
Definition:
FBLib_TMSOSDMenu.h:17
CurrentMenuLevel
dword CurrentMenuLevel
Definition:
OSDMenuInit.c:7
OSDRgn
word OSDRgn
Definition:
OSDMenuInit.c:4
FMUC_PutStringAA
void FMUC_PutStringAA(word rgn, dword x, dword y, dword maxX, const char *str, dword fcolor, dword bcolor, tFontDataUC *FontData, byte bDot, byte align, float AntiAliasFactor)
Definition:
FMUC_PutStringAA.c:5
OSDDrawButtons
void OSDDrawButtons(void)
Definition:
OSDDrawButtons.c:3
OSDCB_Buttons
@ OSDCB_Buttons
Definition:
libFireBird.h:2793
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tButtons::X
dword X
Definition:
FBLib_TMSOSDMenu.h:51
tButtons::pButtonGd
TYPE_GrData * pButtonGd
Definition:
FBLib_TMSOSDMenu.h:53
tButtons::Text
char Text[STDSTRINGSIZE]
Definition:
FBLib_TMSOSDMenu.h:55
tButtons::Color
dword Color
Definition:
FBLib_TMSOSDMenu.h:54
tButtons::Y
dword Y
Definition:
FBLib_TMSOSDMenu.h:52
tMenu
Definition:
FBLib_TMSOSDMenu.h:67
tMenu::CallbackProcedure
void(* CallbackProcedure)(tOSDCB OSDCBType, word OSDRgn)
Definition:
FBLib_TMSOSDMenu.h:104
tMenu::XPos
dword XPos
Definition:
FBLib_TMSOSDMenu.h:68
tMenu::Width
dword Width
Definition:
FBLib_TMSOSDMenu.h:69
tMenu::NrButtons
dword NrButtons
Definition:
FBLib_TMSOSDMenu.h:84
tMenu::OSDMenuDisplayMode
tOSDMenuDisplayMode OSDMenuDisplayMode
Definition:
FBLib_TMSOSDMenu.h:96
tMenu::Buttons
tButtons Buttons[MAXBUTTONS]
Definition:
FBLib_TMSOSDMenu.h:83
tMenu::FontButtons
tFontDataUC * FontButtons
Definition:
FBLib_TMSOSDMenu.h:102
TMSOSDMenu
OSDDrawButtons.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3