navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
graphics_win32.h
Go to the documentation of this file.
1 #ifndef WIN32_GUI_INCLUDED
2 #define WIN32_GUI_INCLUDED
3 
4 #include "resources/resource.h"
5 #include "coord.h"
6 #include "point.h"
7 #include "graphics.h"
8 #include "event.h"
9 
10 #ifdef UNICODE
11 #include <wchar.h>
12 #define _tprintf wprintf
13 #else
14 #define _tprintf printf
15 #endif
16 
17 
18 #define ID_CHILD_GFX 100
19 #define ID_CHILD_TOOLBAR (ID_CHILD_GFX + 1)
20 #define ID_CHILD_1 (ID_CHILD_TOOLBAR + 1)
21 #define ID_CHILD_2 (ID_CHILD_1 + 1)
22 #define ID_CHILD_3 (ID_CHILD_2 + 1)
23 #define ID_CHILD_4 (ID_CHILD_4 + 1)
24 
25 #define ID_DISPLAY_ZOOMIN 200
26 #define ID_DISPLAY_ZOOMOUT 201
27 #define ID_DISPLAY_REFRESH 202
28 #define ID_DISPLAY_CURSOR 203
29 #define ID_DISPLAY_ORIENT 204
30 #define ID_DISPLAY_DESTINATION 205
31 
32 #define ID_FILE_EXIT 9001
33 #define ID_STUFF_GO 9002
34 
35 //#define _(text) gettext(text)
36 
37 #define POPUP_MENU_OFFSET 4000
38 
39 struct statusbar_methods;
40 struct menu_methods;
41 struct datawindow_methods;
42 struct navit;
43 struct callback;
44 
45 
46 struct menu_priv {
47  HWND wnd_handle;
48  HMENU hMenu;
49  struct callback* cb;
50 };
51 
52 struct gui_priv {
53  struct navit *nav;
54  HANDLE hwnd;
55 };
56 
57 
58 struct graphics_priv;
59 
60 struct menu_priv *gui_gtk_menubar_new(struct gui_priv *gui, struct menu_methods *meth);
61 struct menu_priv *gui_gtk_toolbar_new(struct gui_priv *gui, struct menu_methods *meth);
62 struct statusbar_priv *gui_gtk_statusbar_new(struct gui_priv *gui, struct statusbar_methods *meth);
63 struct menu_priv *gui_gtk_popup_new(struct gui_priv *gui, struct menu_methods *meth);
64 struct datawindow_priv *gui_gtk_datawindow_new(struct gui_priv *gui, char *name, struct callback *click, struct callback *close, struct datawindow_methods *meth);
65 
66 struct graphics_priv* win32_graphics_new( struct navit *nav, struct graphics_methods *meth, struct attr **attrs, struct callback_list *cbl);
67 
68 #endif
HANDLE hwnd
Definition: graphics_win32.h:54
HWND wnd_handle
Definition: graphics_win32.h:47
Definition: data_window.h:27
struct callback_list * cbl
Definition: main.c:64
Definition: gui.c:30
struct callback * click
Definition: datawindow.c:38
Definition: graphics_win32.h:52
struct graphics_priv * win32_graphics_new(struct navit *nav, struct graphics_methods *meth, struct attr **attrs, struct callback_list *cbl)
struct callback * cb
Definition: graphics_win32.h:49
Definition: graphics.h:117
Definition: menu.h:33
Definition: graphics_android.c:37
Definition: gui_gtk_statusbar.c:38
Definition: callback.c:36
struct navit * nav
Definition: graphics_win32.h:53
HMENU hMenu
Definition: graphics_win32.h:48
Definition: attr.h:156
Definition: datawindow.c:31
struct statusbar_priv * gui_gtk_statusbar_new(struct gui_priv *gui, struct statusbar_methods *meth)
Definition: callback.c:26
struct datawindow_priv * gui_gtk_datawindow_new(struct gui_priv *gui, char *name, struct callback *click, struct callback *close, struct datawindow_methods *meth)
struct menu_priv * gui_gtk_toolbar_new(struct gui_priv *gui, struct menu_methods *meth)
struct menu_priv * gui_gtk_popup_new(struct gui_priv *gui, struct menu_methods *meth)
Definition: gui_gtk_action.c:660
struct menu_priv * gui_gtk_menubar_new(struct gui_priv *gui, struct menu_methods *meth)
struct navit * nav
Definition: graphics_egl.c:94
char name[0]
Definition: street.c:559
Definition: navit.c:111
Definition: graphics_win32.h:46
Exported functions / structures for the graphics subsystem.
struct callback * close
Definition: datawindow.c:38