gdkmain-win32.c File Reference

#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <io.h>
#include "gdk.h"
#include "gdkprivate-win32.h"
#include "gdkinputprivate.h"
#include "gdkkeysyms.h"
#include <objbase.h>

Go to the source code of this file.

Classes

struct  gdk_key

Defines

#define GDK_NUM_KEYS   (sizeof (gdk_keys_by_keyval) / sizeof (gdk_keys_by_keyval[0]))

Functions

int __stdcall DllMain (HINSTANCE hinstDLL, DWORD dwReason, LPVOID reserved)
gboolean _gdk_windowing_init_check (int argc, char **argv)
void gdk_win32_api_failed (const gchar *where, gint line, const gchar *api)
void gdk_other_api_failed (const gchar *where, gint line, const gchar *api)
void gdk_win32_gdi_failed (const gchar *where, gint line, const gchar *api)
void gdk_set_use_xshm (gint use_xshm)
gint gdk_get_use_xshm (void)
gint gdk_screen_width (void)
gint gdk_screen_height (void)
gint gdk_screen_width_mm (void)
gint gdk_screen_height_mm (void)
void gdk_key_repeat_disable (void)
void gdk_key_repeat_restore (void)
void gdk_beep (void)
void gdk_windowing_exit (void)
gchargdk_get_display (void)
static int gdk_keys_keyval_compare (const void *pkey, const void *pbase)
gchargdk_keyval_name (guint keyval)
static int gdk_key_compare_by_name (const void *a, const void *b)
static int gdk_keys_name_compare (const void *pkey, const void *pbase)
guint gdk_keyval_from_name (const gchar *keyval_name)

Variables

static gboolean gdk_synchronize = FALSE
GdkArgDesc _gdk_windowing_args []
static struct gdk_key gdk_keys_by_keyval []
static struct gdk_keygdk_keys_by_name = NULL


Define Documentation

#define GDK_NUM_KEYS   (sizeof (gdk_keys_by_keyval) / sizeof (gdk_keys_by_keyval[0]))

Definition at line 1553 of file gdkmain-win32.c.

Referenced by gdk_keyval_from_name(), and gdk_keyval_name().


Function Documentation

gboolean _gdk_windowing_init_check ( int  argc,
char **  argv 
)

Definition at line 64 of file gdkmain-win32.c.

References FALSE, gdk_atom_intern(), gdk_clipboard_atom, gdk_DC, gdk_event_func_from_window_proc, gdk_input_ignore_wintab, gdk_ole2_dnd_atom, gdk_ProgInstance, gdk_root_window, gdk_selection_clear_msg, gdk_selection_notify_msg, gdk_selection_property, gdk_selection_request_msg, gdk_win32_dropfiles_atom, gdk_win32_selection_init(), getenv(), i, j, k, NULL, TRUE, and windows_version.

Referenced by gdk_init_check().

int __stdcall DllMain ( HINSTANCE  hinstDLL,
DWORD  dwReason,
LPVOID  reserved 
)

Definition at line 57 of file gdkmain-win32.c.

References gdk_DLLInstance, and TRUE.

void gdk_beep ( void   ) 

Definition at line 226 of file gdkmain-win32.c.

gchar* gdk_get_display ( void   ) 

Definition at line 239 of file gdkmain-win32.c.

Referenced by gdk_init().

gint gdk_get_use_xshm ( void   ) 

Definition at line 131 of file gdkmain-win32.c.

References TRUE.

static int gdk_key_compare_by_name ( const void *  a,
const void *  b 
) [static]

Definition at line 1573 of file gdkmain-win32.c.

References name.

Referenced by gdk_keyval_from_name().

void gdk_key_repeat_disable ( void   ) 

Definition at line 216 of file gdkmain-win32.c.

Referenced by TGWin32::SetKeyAutoRepeat().

void gdk_key_repeat_restore ( void   ) 

Definition at line 221 of file gdkmain-win32.c.

Referenced by gdk_exit_func(), and TGWin32::SetKeyAutoRepeat().

static int gdk_keys_keyval_compare ( const void *  pkey,
const void *  pbase 
) [static]

Definition at line 1557 of file gdkmain-win32.c.

Referenced by gdk_keyval_name().

static int gdk_keys_name_compare ( const void *  pkey,
const void *  pbase 
) [static]

Definition at line 1579 of file gdkmain-win32.c.

References name.

Referenced by gdk_keyval_from_name().

guint gdk_keyval_from_name ( const gchar keyval_name  ) 

Definition at line 1585 of file gdkmain-win32.c.

References g_new, g_return_val_if_fail, gdk_key_compare_by_name(), gdk_keys_by_keyval, gdk_keys_by_name, gdk_keys_name_compare(), GDK_NUM_KEYS, GDK_VoidSymbol, gdk_key::keyval, and NULL.

gchar* gdk_keyval_name ( guint  keyval  ) 

Definition at line 1562 of file gdkmain-win32.c.

References gchar, gdk_keys_by_keyval, gdk_keys_keyval_compare(), GDK_NUM_KEYS, gdk_key::name, and NULL.

Referenced by print_event().

void gdk_other_api_failed ( const gchar where,
gint  line,
const gchar api 
)

Definition at line 109 of file gdkmain-win32.c.

References g_warning().

Referenced by gdk_win32_gdi_failed().

gint gdk_screen_height ( void   ) 

Definition at line 171 of file gdkmain-win32.c.

References gdk_parent_root.

Referenced by gdk_window_set_geometry_hints(), and TGWin32::GetGeometry().

gint gdk_screen_height_mm ( void   ) 

Definition at line 211 of file gdkmain-win32.c.

References gdk_DC.

gint gdk_screen_width ( void   ) 

Definition at line 151 of file gdkmain-win32.c.

References gdk_parent_root.

Referenced by gdk_window_set_geometry_hints(), and TGWin32::GetGeometry().

gint gdk_screen_width_mm ( void   ) 

Definition at line 191 of file gdkmain-win32.c.

References gdk_DC.

Referenced by TGWin32::ScreenWidthMM().

void gdk_set_use_xshm ( gint  use_xshm  ) 

Definition at line 126 of file gdkmain-win32.c.

void gdk_win32_api_failed ( const gchar where,
gint  line,
const gchar api 
)

Definition at line 101 of file gdkmain-win32.c.

References g_free(), g_warning(), and gchar.

Referenced by gdk_win32_gdi_failed().

void gdk_win32_gdi_failed ( const gchar where,
gint  line,
const gchar api 
)

Definition at line 115 of file gdkmain-win32.c.

References gdk_other_api_failed(), gdk_win32_api_failed(), IS_WIN_NT, and windows_version.

void gdk_windowing_exit ( void   ) 

Definition at line 231 of file gdkmain-win32.c.

References gdk_DC, gdk_win32_dnd_exit(), and NULL.


Variable Documentation

GdkArgDesc _gdk_windowing_args[]

Initial value:

Definition at line 45 of file gdkmain-win32.c.

Referenced by gdk_init_check().

struct gdk_key gdk_keys_by_keyval[] [static]

Referenced by gdk_keyval_from_name(), and gdk_keyval_name().

struct gdk_key* gdk_keys_by_name = NULL [static]

Definition at line 1555 of file gdkmain-win32.c.

Referenced by gdk_keyval_from_name().

gboolean gdk_synchronize = FALSE [static]

Definition at line 43 of file gdkmain-win32.c.


Generated on Tue Jul 5 15:58:42 2011 for ROOT_528-00b_version by  doxygen 1.5.1