comparison libmenu/menu.h @ 25417:b0cd876a0c32

Remove dependency on m_struct.h when include libmenu/menu.h.
author ulion
date Tue, 18 Dec 2007 04:07:48 +0000
parents 96d0992c7920
children 59aba7a96701
comparison
equal deleted inserted replaced
25416:a79a22add62a 25417:b0cd876a0c32
1 1
2 struct menu_priv_s; 2 struct menu_priv_s;
3 typedef struct menu_s menu_t; 3 typedef struct menu_s menu_t;
4 4
5 typedef struct menu_def_st menu_def_t; 5 typedef struct menu_def_st menu_def_t;
6
7 struct m_struct_st;
6 8
7 struct menu_s { 9 struct menu_s {
8 struct MPContext *ctx; 10 struct MPContext *ctx;
9 void (*draw)(menu_t* menu,mp_image_t* mpi); 11 void (*draw)(menu_t* menu,mp_image_t* mpi);
10 void (*read_cmd)(menu_t* menu,int cmd); 12 void (*read_cmd)(menu_t* menu,int cmd);
11 void (*read_key)(menu_t* menu,int cmd); 13 void (*read_key)(menu_t* menu,int cmd);
12 void (*close)(menu_t* menu); 14 void (*close)(menu_t* menu);
13 m_struct_t* priv_st; 15 struct m_struct_st* priv_st;
14 struct menu_priv_s* priv; 16 struct menu_priv_s* priv;
15 int show; // Draw it ? 17 int show; // Draw it ?
16 int cl; // Close request (user sent a close cmd or 18 int cl; // Close request (user sent a close cmd or
17 menu_t* parent; 19 menu_t* parent;
18 menu_def_t *type; 20 menu_def_t *type;