diff options
Diffstat (limited to 'navit/gui/win32/gui_win32.h')
-rw-r--r-- | navit/gui/win32/gui_win32.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/navit/gui/win32/gui_win32.h b/navit/gui/win32/gui_win32.h new file mode 100644 index 00000000..cdb6d302 --- /dev/null +++ b/navit/gui/win32/gui_win32.h @@ -0,0 +1,75 @@ +#ifndef WIN32_GUI_INCLUDED +#define WIN32_GUI_INCLUDED + +#include "resources\resource.h" +#include "coord.h" +#include "point.h" +#include "graphics.h" + +#define ID_CHILD_GFX 100 +#define ID_CHILD_TOOLBAR (ID_CHILD_GFX + 1) +#define ID_CHILD_1 (ID_CHILD_TOOLBAR + 1) +#define ID_CHILD_2 (ID_CHILD_1 + 1) +#define ID_CHILD_3 (ID_CHILD_2 + 1) +#define ID_CHILD_4 (ID_CHILD_4 + 1) + +#define ID_DISPLAY_ZOOMIN 200 +#define ID_DISPLAY_ZOOMOUT 201 +#define ID_DISPLAY_REFRESH 202 +#define ID_DISPLAY_CURSOR 203 +#define ID_DISPLAY_ORIENT 204
+#define ID_DISPLAY_DESTINATION 205
+ +#define ID_FILE_EXIT 9001 +#define ID_STUFF_GO 9002 + +#define _(text) gettext(text) + +#define POPUP_MENU_OFFSET 4000 + +struct statusbar_methods; +struct menu_methods; +struct datawindow_methods; +struct navit; +struct callback; + + +struct menu_priv { + HWND wnd_handle; + HMENU hMenu; + struct callback* cb; +}; + +struct gui_priv { + struct navit *nav; + HANDLE hwnd; +}; + + +struct graphics_priv { + struct point p; + int width; + int height; + int library_init; + int visible; + HANDLE wnd_parent_handle; + HANDLE wnd_handle; + COLORREF bg_color; + + + void (*resize_callback)(void *data, int w, int h); + void *resize_callback_data; + void (*motion_callback)(void *data, struct point *p); + void *motion_callback_data; + void (*button_callback)(void *data, int press, int button, struct point *p); + void *button_callback_data; + enum draw_mode_num mode; +}; + + +struct graphics_priv* win32_graphics_new( struct graphics_methods *meth, struct attr **attrs); +HANDLE create_destination_window( struct navit *nav ); +BOOL register_destination_window(); + + +#endif |