navit 0.5.3-trunk
Loading...
Searching...
No Matches
gui.c File Reference
#include "gui.h"
#include "callback.h"
#include "data_window.h"
#include "debug.h"
#include "item.h"
#include "menu.h"
#include "plugin.h"
#include <glib.h>
#include <string.h>

Data Structures

struct  gui
 

Functions

struct guigui_new (struct attr *parent, struct attr **attrs)
 
int gui_get_attr (struct gui *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
 
int gui_set_attr (struct gui *this_, struct attr *attr)
 
int gui_add_attr (struct gui *this_, struct attr *attr)
 
struct menugui_menubar_new (struct gui *gui)
 
struct menugui_popup_new (struct gui *gui)
 
struct datawindowgui_datawindow_new (struct gui *gui, const char *name, struct callback *click, struct callback *close)
 
int gui_add_bookmark (struct gui *gui, struct pcoord *c, char *description)
 
int gui_show_coord_actions (struct gui *gui, const struct pcoord *c, const char *description)
 Show an action menu related to specific geographical coordinates.
 
int gui_set_graphics (struct gui *this_, struct graphics *gra)
 
void gui_disable_suspend (struct gui *this_)
 
int gui_has_main_loop (struct gui *this_)
 
int gui_run_main_loop (struct gui *this_)
 

Function Documentation

◆ gui_add_attr()

int gui_add_attr ( struct gui this_,
struct attr attr 
)

◆ gui_add_bookmark()

int gui_add_bookmark ( struct gui gui,
struct pcoord c,
char *  description 
)

◆ gui_datawindow_new()

struct datawindow * gui_datawindow_new ( struct gui gui,
const char *  name,
struct callback click,
struct callback close 
)

◆ gui_disable_suspend()

void gui_disable_suspend ( struct gui this_)

◆ gui_get_attr()

int gui_get_attr ( struct gui this_,
enum attr_type  type,
struct attr attr,
struct attr_iter iter 
)

◆ gui_has_main_loop()

int gui_has_main_loop ( struct gui this_)

◆ gui_menubar_new()

struct menu * gui_menubar_new ( struct gui gui)

◆ gui_new()

struct gui * gui_new ( struct attr parent,
struct attr **  attrs 
)

◆ gui_popup_new()

struct menu * gui_popup_new ( struct gui gui)

◆ gui_run_main_loop()

int gui_run_main_loop ( struct gui this_)

◆ gui_set_attr()

int gui_set_attr ( struct gui this_,
struct attr attr 
)

◆ gui_set_graphics()

int gui_set_graphics ( struct gui this_,
struct graphics gra 
)

◆ gui_show_coord_actions()

int gui_show_coord_actions ( struct gui this_,
const struct pcoord c,
const char *  description 
)

Show an action menu related to specific geographical coordinates.

Parameters
[in]this_The gui context
[in]cA pointer to the geographical coordinates data
[in]descriptionAn (optional) string to use as a label for the geographical coordinates
Returns
!=0 if the action menu GUI can be displayed
Warning
To probe whether the action menu GUI is supported for the current GUI, just run this function with NULL pointers in c. This will not open any GUI menu but rather return -1 if the action menu supported.

References c, dbg, description(), lvl_info, gui::meth, gui::priv, and gui_methods::show_coord_actions.

Referenced by Java_org_navitproject_navit_NavitCallbackHandler_callbackMessageChannel().