Project

General

Profile

Statistics
| Revision:

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

History | View | Annotate | Download (488 Bytes)

1 291 up20180642
#ifndef MENU_H_INCLUDED
2
#define MENU_H_INCLUDED
3
4 333 up20180642
/**
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 291 up20180642
#include "font.h"
15
16
typedef struct menu menu_t;
17
18
menu_t* (menu_ctor)(const font_t *fnt);
19
20 293 up20180642
int (menu_add_item)(menu_t *menu, const char *s);
21
22 291 up20180642
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 333 up20180642
/**
29
 * @}
30
 */
31
32 291 up20180642
#endif //MENU_H_INCLUDED