Ticket #370: win32_gui.h.diff

File win32_gui.h.diff, 1.6 KB (added by Stressedpiper, 13 years ago)
  • win32_gui.h

     
    55#include "coord.h"
    66#include "point.h"
    77#include "graphics.h"
     8#include "event.h"
    89
    910#define ID_CHILD_GFX 100
    1011#define ID_CHILD_TOOLBAR (ID_CHILD_GFX + 1)
     
    4546};
    4647
    4748
    48 struct graphics_priv {
    49         struct point p;
    50         int width;
    51         int height;
    52         int library_init;
    53         int visible;
    54         HANDLE wnd_parent_handle;
    55         HANDLE wnd_handle;
    56         COLORREF bg_color;
     49struct graphics_priv;
    5750
    58 
    59         void (*resize_callback)(void *data, int w, int h);
    60         void *resize_callback_data;
    61         void (*motion_callback)(void *data, struct point *p);
    62         void *motion_callback_data;
    63         void (*button_callback)(void *data, int press, int button, struct point *p);
    64         void *button_callback_data;
    65         enum draw_mode_num mode;
    66 };
    67 
    6851struct menu_priv *gui_gtk_menubar_new(struct gui_priv *gui, struct menu_methods *meth);
    6952struct menu_priv *gui_gtk_toolbar_new(struct gui_priv *gui, struct menu_methods *meth);
    7053struct statusbar_priv *gui_gtk_statusbar_new(struct gui_priv *gui, struct statusbar_methods *meth);
    7154struct menu_priv *gui_gtk_popup_new(struct gui_priv *gui, struct menu_methods *meth);
    7255struct datawindow_priv *gui_gtk_datawindow_new(struct gui_priv *gui, char *name, struct callback *click, struct callback *close, struct datawindow_methods *meth);
    7356
    74 struct graphics_priv* win32_graphics_new( struct graphics_methods *meth, struct attr **attrs);
     57struct graphics_priv* win32_graphics_new( struct navit *nav, struct graphics_methods *meth, struct attr **attrs, struct callback_list *cbl);
    7558
    7659#endif