navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
gui_internal.h
Go to the documentation of this file.
1 struct widget;
2 struct graphics_image;
3 struct gui_priv;
4 
5 #define STATE_INVISIBLE 1
6 #define STATE_SELECTED 2
7 #define STATE_HIGHLIGHTED 4
8 #define STATE_SENSITIVE 8
9 #define STATE_EDIT 16
10 #define STATE_CLEAR 32
11 #define STATE_EDITABLE 64
12 #define STATE_SCROLLABLE 128
13 #define STATE_OFFSCREEN 256
14 
15 #define GESTURE_RINGSIZE 100
16 
24 };
25 
26 enum flags {
43  flags_expand=0x100,
44  flags_fill=0x200,
45  flags_swap=0x400,
47  flags_scrolly=0x1000,
51 };
52 
53 
55  void (*add_callback)(struct gui_priv *priv, struct callback *cb);
56  void (*remove_callback)(struct gui_priv *priv, struct callback *cb);
57  void (*menu_render)(struct gui_priv *this);
58  struct graphics_image * (*image_new_xs)(struct gui_priv *this, const char *name);
59  struct graphics_image * (*image_new_l)(struct gui_priv *this, const char *name);
60 };
61 
63  void (*append)(struct widget *parent, struct widget *child);
64  struct widget * (*button_new)(struct gui_priv *this, const char *text, struct graphics_image *image, enum flags flags);
65  struct widget * (*button_new_with_callback)(struct gui_priv *this, const char *text, struct graphics_image *image, enum flags flags, void(*func)(struct gui_priv *priv, struct widget *widget, void *data), void *data);
66  struct widget * (*box_new)(struct gui_priv *this, enum flags flags);
67  struct widget * (*label_new)(struct gui_priv *this, const char *text);
68  struct widget * (*image_new)(struct gui_priv *this, struct graphics_image *image);
69  struct widget * (*keyboard)(struct gui_priv *this, int mode);
70  struct widget * (*menu)(struct gui_priv *this, const char *label);
71  enum flags (*get_flags)(struct widget *widget);
72  void (*set_flags)(struct widget *widget, enum flags flags);
73  int (*get_state)(struct widget *widget);
74  void (*set_state)(struct widget *widget, int state);
75  void (*set_func)(struct widget *widget, void (*func)(struct gui_priv *priv, struct widget *widget, void *data));
76  void (*set_data)(struct widget *widget, void *data);
77  void (*set_default_background)(struct gui_priv *this, struct widget *widget);
78 
79 };
80 
82  struct gui_priv *priv;
85 };
Definition: gui_internal.h:42
Definition: gui_internal.h:30
Definition: gui_internal.h:31
widget_type
Definition: gui_internal.h:17
Definition: gui_internal.h:36
void(* set_default_background)(struct gui_priv *this, struct widget *widget)
Definition: gui_internal.h:77
Definition: gui_internal.h:47
Definition: gui_internal.h:28
Definition: gui_internal.h:29
int state
Definition: gui_internal_widget.h:47
Definition: gui_internal.h:40
void(* set_func)(struct widget *widget, void(*func)(struct gui_priv *priv, struct widget *widget, void *data))
Definition: gui_internal.h:75
Definition: gui_internal.h:35
struct gui_priv * priv
Definition: gui_internal.h:82
Definition: gui_internal.h:43
Definition: graphics_win32.h:52
Definition: gui_internal.h:81
Definition: gui_internal.h:62
int mode
Definition: graphics_win32.c:59
void(* menu_render)(struct gui_priv *this)
Definition: gui_internal.h:57
Definition: gui_internal.h:54
void(* add_callback)(struct gui_priv *priv, struct callback *cb)
Definition: gui_internal.h:55
struct parent parent
Definition: graphics.h:189
void(* set_data)(struct widget *widget, void *data)
Definition: gui_internal.h:76
Definition: gui_internal.h:33
void(* set_flags)(struct widget *widget, enum flags flags)
Definition: gui_internal.h:72
char data
Definition: garmin_img.c:330
Definition: gui_internal.h:34
Definition: gui_internal.h:37
Definition: gui_internal.h:49
Definition: gui_internal.h:20
enum flags(* get_flags)(struct widget *widget)
Definition: gui_internal.h:71
Definition: gui_internal.h:22
Definition: gui_internal.h:46
Definition: gui_internal.h:48
Definition: callback.c:26
Definition: gui_internal.h:50
Definition: gui_internal.h:23
struct gui_internal_methods * gui
Definition: gui_internal.h:83
int(* get_state)(struct widget *widget)
Definition: gui_internal.h:73
void(* append)(struct widget *parent, struct widget *child)
Definition: gui_internal.h:63
struct gui_internal_widget_methods * widget
Definition: gui_internal.h:84
Definition: gui_internal.h:38
Definition: gui_internal.h:44
Definition: gui_internal.h:39
struct label_data_offset label
Definition: garmin_img.c:377
typedef int(WINAPI *FP_SetStretchBltMode)(HDC dc
void(* set_state)(struct widget *widget, int state)
Definition: gui_internal.h:74
void(* func)(struct gui_priv *priv, struct widget *widget, void *data)
Definition: gui_internal_widget.h:24
Definition: gui_internal_widget.h:12
char name[0]
Definition: street.c:496
Definition: gui_internal.h:21
Definition: gui_internal.h:19
Definition: gui_internal.h:18
Definition: gui_internal.h:27
Definition: gui_internal.h:32
flags
Definition: gui_internal.h:26
void(* remove_callback)(struct gui_priv *priv, struct callback *cb)
Definition: gui_internal.h:56
Definition: gui_internal.h:45
Definition: gui_internal.h:41