FireBirdLib - Topfield TMS PVR TAP Programming Library
OSDMenuKeyboard_LegendButton.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
FBLib_TMSOSDKeyboard.h
"
3
4
void
OSDMenuKeyboard_LegendButton
(dword Line,
tButtonIcon
ButtonIcon,
const
char
*Text)
5
{
6
TRACEENTER
();
7
8
if
(Text && (
OSDMenuKeyboard_NrButtons
< 20))
9
{
10
OSDMenuKeyboard_Buttons
[
OSDMenuKeyboard_NrButtons
].
Line
= Line;
11
OSDMenuKeyboard_Buttons
[
OSDMenuKeyboard_NrButtons
].
ButtonIcon
= ButtonIcon;
12
strncpy(
OSDMenuKeyboard_Buttons
[
OSDMenuKeyboard_NrButtons
].Text, Text,
BUTTONTEXTSIZE
);
13
OSDMenuKeyboard_Buttons
[
OSDMenuKeyboard_NrButtons
].
Text
[
BUTTONTEXTSIZE
- 1] =
'\0'
;
14
15
OSDMenuKeyboard_NrButtons
++;
16
}
17
18
TRACEEXIT
();
19
}
FBLib_TMSOSDKeyboard.h
OSDMenuKeyboard_NrButtons
int OSDMenuKeyboard_NrButtons
Definition:
OSDMenuKeyboard_Setup.c:15
OSDMenuKeyboard_Buttons
tOSDMenuKeyboard_Buttons OSDMenuKeyboard_Buttons[20]
Definition:
OSDMenuKeyboard_Setup.c:14
BUTTONTEXTSIZE
#define BUTTONTEXTSIZE
Definition:
FBLib_TMSOSDKeyboard.h:8
OSDMenuKeyboard_LegendButton
void OSDMenuKeyboard_LegendButton(dword Line, tButtonIcon ButtonIcon, const char *Text)
Definition:
OSDMenuKeyboard_LegendButton.c:4
tButtonIcon
tButtonIcon
Definition:
libFireBird.h:2803
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tOSDMenuKeyboard_Buttons::Line
dword Line
Definition:
FBLib_TMSOSDKeyboard.h:13
tOSDMenuKeyboard_Buttons::Text
char Text[BUTTONTEXTSIZE]
Definition:
FBLib_TMSOSDKeyboard.h:15
tOSDMenuKeyboard_Buttons::ButtonIcon
tButtonIcon ButtonIcon
Definition:
FBLib_TMSOSDKeyboard.h:14
TMSOSDKeyboard
OSDMenuKeyboard_LegendButton.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3