navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
gui_win32.c File Reference
#include <stdlib.h>
#include <process.h>
#include <windows.h>
#include <glib.h>
#include "config.h"
#include "plugin.h"
#include "gui.h"
#include "graphics_win32.h"
#include "point.h"
#include "menu.h"
#include "item.h"
#include "attr.h"
#include "callback.h"
#include <commctrl.h>
#include "debug.h"
#include "util.h"
#include "navit.h"
#include "navit_nls.h"

Macros

#define GET_WHEEL_DELTA_WPARAM(wParam)   ((short)HIWORD(wParam))
 

Functions

static void CreateToolBar (HWND hwnd)
 
static void window_layout (HWND hwnd)
 
static LRESULT CALLBACK WndProc (HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
 
static HANDLE CreateWin32Window (void)
 
static int win32_gui_set_graphics (struct gui_priv *this_, struct graphics *gra)
 
static void win32_gui_add_bookmark_do (struct gui_priv *gui)
 
static int win32_gui_add_bookmark (struct gui_priv *gui, struct pcoord *c, char *description)
 
static struct menu_privadd_menu (struct menu_priv *menu, struct menu_methods *meth, char *name, enum menu_type type, struct callback *cb)
 
static void set_toggle (struct menu_priv *menu, int active)
 
static int get_toggle (struct menu_priv *menu)
 
static void popup_activate (struct menu_priv *menu)
 
static void popup_deactivate (struct menu_priv *menu)
 
static struct menu_privwin32_gui_popup_new (struct gui_priv *this_, struct menu_methods *meth)
 
static struct gui_privwin32_gui_new (struct navit *nav, struct gui_methods *meth, struct attr **attrs)
 
void plugin_init (void)
 

Variables

const TCHAR g_szClassName [] = TEXT("navit_gui_class")
 
static UINT_PTR menu_id = 0
 
static struct menu_methods menu_methods
 
struct gui_methods win32_gui_methods
 

Macro Definition Documentation

#define GET_WHEEL_DELTA_WPARAM (   wParam)    ((short)HIWORD(wParam))

Referenced by WndProc().

Function Documentation

static struct menu_priv* add_menu ( struct menu_priv menu,
struct menu_methods meth,
char *  name,
enum menu_type  type,
struct callback cb 
)
static
static void CreateToolBar ( HWND  hwnd)
static
static HANDLE CreateWin32Window ( void  )
static
static int get_toggle ( struct menu_priv menu)
static
void plugin_init ( void  )

References win32_gui_new().

static void popup_activate ( struct menu_priv menu)
static
static void popup_deactivate ( struct menu_priv menu)
static

References menu_priv::hMenu.

static void set_toggle ( struct menu_priv menu,
int  active 
)
static
static int win32_gui_add_bookmark ( struct gui_priv gui,
struct pcoord c,
char *  description 
)
static
static void win32_gui_add_bookmark_do ( struct gui_priv gui)
static
static struct gui_priv* win32_gui_new ( struct navit nav,
struct gui_methods meth,
struct attr **  attrs 
)
static
static struct menu_priv* win32_gui_popup_new ( struct gui_priv this_,
struct menu_methods meth 
)
static
static int win32_gui_set_graphics ( struct gui_priv this_,
struct graphics gra 
)
static
static void window_layout ( HWND  hwnd)
static

References dbg, ID_CHILD_GFX, ID_CHILD_TOOLBAR, lvl_debug, and TRUE.

Referenced by WndProc().

Variable Documentation

const TCHAR g_szClassName[] = TEXT("navit_gui_class")
UINT_PTR menu_id = 0
static

Referenced by add_menu(), and win32_gui_popup_new().

static struct menu_methods menu_methods
static
Initial value:
= {
}
static struct menu_priv * add_menu(struct menu_priv *menu, struct menu_methods *meth, char *name, enum menu_type type, struct callback *cb)
Definition: gui_win32.c:498
static void set_toggle(struct menu_priv *menu, int active)
Definition: gui_win32.c:538
static int get_toggle(struct menu_priv *menu)
Definition: gui_win32.c:543

Referenced by add_menu(), and win32_gui_popup_new().

struct gui_methods win32_gui_methods
Initial value:
= {
NULL,
NULL,
NULL,
}
static int win32_gui_add_bookmark(struct gui_priv *gui, struct pcoord *c, char *description)
Definition: gui_win32.c:489
static int win32_gui_set_graphics(struct gui_priv *this_, struct graphics *gra)
Definition: gui_win32.c:474
static struct menu_priv * win32_gui_popup_new(struct gui_priv *this_, struct menu_methods *meth)
Definition: gui_win32.c:573

Referenced by win32_gui_new().