navit 0.5.3-trunk
Loading...
Searching...
No Matches
gui.h
Go to the documentation of this file.
1
20#ifndef NAVIT_GUI_H
21#define NAVIT_GUI_H
22
23#include "attr.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28struct navit;
29struct gui_priv;
30struct menu_methods;
32struct callback;
33struct graphics;
34struct coord;
35struct pcoord;
36
38 struct menu_priv *(*menubar_new)(struct gui_priv *priv, struct menu_methods *meth);
39 struct menu_priv *(*popup_new)(struct gui_priv *priv, struct menu_methods *meth);
40 int (*set_graphics)(struct gui_priv *priv, struct graphics *gra);
41 int (*run_main_loop)(struct gui_priv *priv);
42 struct datawindow_priv *(*datawindow_new)(struct gui_priv *priv, const char *name, struct callback *click,
43 struct callback *close, struct datawindow_methods *meth);
44 int (*add_bookmark)(struct gui_priv *priv, struct pcoord *c, char *description);
45 int (*show_coord_actions)(struct gui_priv *priv, struct pcoord *c, char *description);
46 void (*disable_suspend)(struct gui_priv *priv);
47 int (*get_attr)(struct gui_priv *priv, enum attr_type type, struct attr *attr);
48 int (*add_attr)(struct gui_priv *priv, struct attr *attr);
49 int (*set_attr)(struct gui_priv *priv, struct attr *attr);
50};
51
52/* prototypes */
53enum attr_type;
54struct attr;
55struct attr_iter;
56struct callback;
57struct datawindow;
58struct graphics;
59struct gui;
60struct menu;
61struct pcoord;
62struct gui *gui_new(struct attr *parent, struct attr **attrs);
63int gui_get_attr(struct gui *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
64int gui_set_attr(struct gui *this_, struct attr *attr);
65int gui_add_attr(struct gui *this_, struct attr *attr);
66struct menu *gui_menubar_new(struct gui *gui);
67struct menu *gui_popup_new(struct gui *gui);
68struct datawindow *gui_datawindow_new(struct gui *gui, const char *name, struct callback *click,
69 struct callback *close);
70int gui_add_bookmark(struct gui *gui, struct pcoord *c, char *description);
83int gui_show_coord_actions(struct gui *this_, const struct pcoord *c, const char *description);
84int gui_set_graphics(struct gui *this_, struct graphics *gra);
85void gui_disable_suspend(struct gui *this_);
86int gui_has_main_loop(struct gui *this_);
87int gui_run_main_loop(struct gui *this_);
88/* end of prototypes */
89#ifdef __cplusplus
90}
91#endif
92
93#endif
attr_type
Definition attr_type_def.h:11
static char * description(struct search_param *search, GtkTreeIter *iter)
Definition destination.c:56
char type[3]
Definition garmin_img.c:2
int gui_add_attr(struct gui *this_, struct attr *attr)
Definition gui.c:83
struct menu * gui_popup_new(struct gui *gui)
Definition gui.c:103
void gui_disable_suspend(struct gui *this_)
Definition gui.c:160
int gui_run_main_loop(struct gui *this_)
Definition gui.c:171
int gui_set_attr(struct gui *this_, struct attr *attr)
Definition gui.c:74
int gui_add_bookmark(struct gui *gui, struct pcoord *c, char *description)
Definition gui.c:130
int gui_get_attr(struct gui *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition gui.c:60
struct menu * gui_menubar_new(struct gui *gui)
Definition gui.c:90
int gui_has_main_loop(struct gui *this_)
Definition gui.c:165
int gui_show_coord_actions(struct gui *this_, const struct pcoord *c, const char *description)
Show an action menu related to specific geographical coordinates.
Definition gui.c:141
struct datawindow * gui_datawindow_new(struct gui *gui, const char *name, struct callback *click, struct callback *close)
Definition gui.c:116
int gui_set_graphics(struct gui *this_, struct graphics *gra)
Definition gui.c:152
struct gui * gui_new(struct attr *parent, struct attr **attrs)
Definition gui.c:37
static struct pcoord c
Definition popup.c:375
char name[0]
Definition street.c:3
Definition config_.c:47
Definition attr.h:136
Definition callback.c:27
Definition coord.h:34
Definition data_window.h:27
Definition datawindow.c:31
Definition data_window.h:33
graphics object A graphics object serves as the target for drawing operations. It encapsulates variou...
Definition graphics.c:78
Definition gui.h:37
int(* get_attr)(struct gui_priv *priv, enum attr_type type, struct attr *attr)
Definition gui.h:47
int(* add_attr)(struct gui_priv *priv, struct attr *attr)
Definition gui.h:48
void(* disable_suspend)(struct gui_priv *priv)
Definition gui.h:46
int(* set_graphics)(struct gui_priv *priv, struct graphics *gra)
Definition gui.h:40
int(* add_bookmark)(struct gui_priv *priv, struct pcoord *c, char *description)
Definition gui.h:44
int(* show_coord_actions)(struct gui_priv *priv, struct pcoord *c, char *description)
Definition gui.h:45
int(* set_attr)(struct gui_priv *priv, struct attr *attr)
Definition gui.h:49
int(* run_main_loop)(struct gui_priv *priv)
Definition gui.h:41
Definition graphics_win32.h:52
Definition gui.c:30
struct attr ** attrs
Definition gui.c:33
Definition menu.h:33
Definition graphics_win32.h:46
Definition menu.h:40
Definition navit.c:112
Definition gpx2navit_txt.h:51
Definition coord.h:52