-
Notifications
You must be signed in to change notification settings - Fork 0
/
select.h
45 lines (40 loc) · 1.05 KB
/
select.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/******************************************************************************
*
* Copyright:
* (C) 2006 Embedded Artists AB
*
* File:
* select.h
*
* Description:
* Expose public functions, typedefs for creating menu displays.
*
*****************************************************************************/
#ifndef _SELECT_H_
#define _SELECT_H_
/******************************************************************************
* Includes
*****************************************************************************/
#include "../pre_emptive_os/api/general.h"
/******************************************************************************
* Typedefs and defines
*****************************************************************************/
typedef struct
{
tU8 xPos;
tU8 yPos;
tU8 xLen;
tU8 yLen;
tU8 noOfChoices;
tU8 initialChoice;
tU8 *pHeaderText;
tU8 headerTextXpos;
tU8 *pChoice[6];
tU8 bgColor;
tU8 borderColor;
tU8 headerColor;
tU8 choicesColor;
tU8 selectedColor;
} tMenu;
tU8 drawMenu(tMenu newMenu);
#endif