Project

General

Profile

Statistics
| Revision:

root / proj / libs / graph / include / menu.h @ 333

History | View | Annotate | Download (488 Bytes)

1
#ifndef MENU_H_INCLUDED
2
#define MENU_H_INCLUDED
3

    
4
/**
5
 * @defgroup    menu_t    menu_t
6
 * @ingroup graph
7
 * @brief Menu module
8
 *
9
 * Allows to create flexible and responsive menus.
10
 *
11
 * @{
12
 */
13

    
14
#include "font.h"
15

    
16
typedef struct menu menu_t;
17

    
18
menu_t* (menu_ctor)(const font_t *fnt);
19

    
20
int (menu_add_item)(menu_t *menu, const char *s);
21

    
22
int (menu_update_state)(menu_t *menu, int click);
23

    
24
void (menu_draw)(menu_t *menu);
25

    
26
void (menu_dtor)(menu_t *p);
27

    
28
/**
29
 * @}
30
 */
31

    
32
#endif //MENU_H_INCLUDED