gdk.c File Reference

#include "config.h"
#include <string.h>
#include <stdlib.h>
#include "gdk.h"
#include "gdkprivate.h"
#include "gdkkeysyms.h"

Go to the source code of this file.

Classes

struct  _GdkPredicate
struct  _GdkErrorTrap

Typedefs

typedef _GdkPredicate GdkPredicate
typedef _GdkErrorTrap GdkErrorTrap

Functions

static void gdk_exit_func (void)
GdkFilterReturn gdk_wm_protocols_filter (GdkXEvent *xev, GdkEvent *event, gpointer data)
GdkArgContextgdk_arg_context_new (gpointer cb_data)
void gdk_arg_context_destroy (GdkArgContext *context)
void gdk_arg_context_add_table (GdkArgContext *context, GdkArgDesc *table)
void gdk_arg_context_parse (GdkArgContext *context, gint *argc, gchar ***argv)
static void gdk_arg_debug_cb (const char *key, const char *value, gpointer user_data)
static void gdk_arg_no_debug_cb (const char *key, const char *value, gpointer user_data)
static void gdk_arg_name_cb (const char *key, const char *value, gpointer user_data)
gboolean gdk_init_check (int *argc, char ***argv)
void gdk_init (int *argc, char ***argv)
void gdk_exit (gint errorcode)
void gdk_error_trap_push (void)
gint gdk_error_trap_pop (void)
void gdk_keyval_convert_case (guint symbol, guint *lower, guint *upper)
guint gdk_keyval_to_upper (guint keyval)
guint gdk_keyval_to_lower (guint keyval)
gboolean gdk_keyval_is_upper (guint keyval)
gboolean gdk_keyval_is_lower (guint keyval)
void gdk_threads_enter ()
void gdk_threads_leave ()

Variables

static int gdk_initialized = 0
static GSListgdk_error_traps = NULL
static GSListgdk_error_trap_free_list = NULL
static GdkArgDesc gdk_args []


Typedef Documentation

typedef struct _GdkErrorTrap GdkErrorTrap

Definition at line 40 of file gdk.c.

typedef struct _GdkPredicate GdkPredicate

Definition at line 39 of file gdk.c.


Function Documentation

void gdk_arg_context_add_table ( GdkArgContext context,
GdkArgDesc table 
)

Definition at line 98 of file gdk.c.

References g_ptr_array_add(), and _GdkArgContext::tables.

Referenced by gdk_init_check().

void gdk_arg_context_destroy ( GdkArgContext context  ) 

Definition at line 92 of file gdk.c.

References g_free(), g_ptr_array_free(), _GdkArgContext::tables, and TRUE.

Referenced by gdk_init_check().

GdkArgContext* gdk_arg_context_new ( gpointer  cb_data  ) 

Definition at line 83 of file gdk.c.

References g_new, g_ptr_array_new(), and result().

Referenced by gdk_init_check().

void gdk_arg_context_parse ( GdkArgContext context,
gint argc,
gchar ***  argv 
)

Definition at line 104 of file gdk.c.

References _GdkArgContext::cb_data, FALSE, for(), g_strdup(), gchar, GDK_ARG_BOOL, GDK_ARG_CALLBACK, GDK_ARG_INT, GDK_ARG_NOBOOL, GDK_ARG_STRING, i, int, j, k, len, _GPtrArray::len, location, name, NULL, _GPtrArray::pdata, _GdkArgContext::tables, TRUE, type, and value.

Referenced by gdk_init_check().

static void gdk_arg_debug_cb ( const char *  key,
const char *  value,
gpointer  user_data 
) [static]

Definition at line 200 of file gdk.c.

References g_parse_debug_string(), and gdk_debug_flags.

static void gdk_arg_name_cb ( const char *  key,
const char *  value,
gpointer  user_data 
) [static]

Definition at line 216 of file gdk.c.

References g_set_prgname().

static void gdk_arg_no_debug_cb ( const char *  key,
const char *  value,
gpointer  user_data 
) [static]

Definition at line 208 of file gdk.c.

References g_parse_debug_string(), and gdk_debug_flags.

gint gdk_error_trap_pop ( void   ) 

Definition at line 450 of file gdk.c.

References g_return_val_if_fail, gdk_error_code, gdk_error_trap_free_list, gdk_error_traps, gdk_error_warnings, NULL, result(), and trap().

void gdk_error_trap_push ( void   ) 

Definition at line 417 of file gdk.c.

References g_new, g_slist_alloc(), gdk_error_code, gdk_error_trap_free_list, gdk_error_traps, gdk_error_warnings, and trap().

void gdk_exit ( gint  errorcode  ) 

Definition at line 357 of file gdk.c.

static void gdk_exit_func ( void   )  [static]

Definition at line 381 of file gdk.c.

References FALSE, gdk_image_exit(), gdk_initialized, gdk_input_exit(), gdk_key_repeat_restore(), and TRUE.

Referenced by gdk_init_check().

void gdk_init ( int *  argc,
char ***  argv 
)

Definition at line 330 of file gdk.c.

References g_warning(), gdk_get_display(), and gdk_init_check().

Referenced by main().

gboolean gdk_init_check ( int *  argc,
char ***  argv 
)

Definition at line 252 of file gdk.c.

References _gdk_windowing_args, _gdk_windowing_init_check(), d, FALSE, g_atexit(), g_free(), g_get_prgname(), g_malloc(), g_message(), g_mutex_new, g_parse_debug_string(), g_set_prgname(), g_strdup(), g_thread_supported, gchar, gdk_arg_context_add_table(), gdk_arg_context_destroy(), gdk_arg_context_new(), gdk_arg_context_parse(), gdk_args, gdk_debug_flags, gdk_dnd_init(), gdk_events_init(), gdk_exit_func(), gdk_image_init(), gdk_initialized, gdk_input_init(), GDK_NOTE, gdk_threads_mutex, gdk_visual_init(), gdk_window_init(), getenv(), i, NULL, result(), and TRUE.

Referenced by gdk_init(), and TGWin32::Init().

void gdk_keyval_convert_case ( guint  symbol,
guint lower,
guint upper 
)

Definition at line 477 of file gdk.c.

References GDK_A, GDK_a, GDK_agrave, GDK_Agrave, GDK_Amacron, GDK_amacron, GDK_Aogonek, GDK_aogonek, GDK_Cabovedot, GDK_cabovedot, GDK_Cyrillic_hardsign, GDK_Cyrillic_HARDSIGN, GDK_Cyrillic_yu, GDK_Cyrillic_YU, GDK_ENG, GDK_eng, GDK_gbreve, GDK_Gbreve, GDK_Greek_ALPHA, GDK_Greek_alpha, GDK_Greek_alphaaccent, GDK_Greek_ALPHAaccent, GDK_Greek_finalsmallsigma, GDK_Greek_iotaaccentdieresis, GDK_Greek_omega, GDK_Greek_OMEGA, GDK_Greek_omegaaccent, GDK_Greek_OMEGAaccent, GDK_Greek_upsilonaccentdieresis, GDK_Hcircumflex, GDK_hcircumflex, GDK_Hstroke, GDK_hstroke, GDK_Jcircumflex, GDK_jcircumflex, GDK_Lstroke, GDK_lstroke, GDK_odiaeresis, GDK_Odiaeresis, GDK_Ooblique, GDK_oslash, GDK_racute, GDK_Racute, GDK_Rcedilla, GDK_rcedilla, GDK_sacute, GDK_Sacute, GDK_scaron, GDK_Scaron, GDK_scircumflex, GDK_Scircumflex, GDK_Serbian_DJE, GDK_Serbian_dje, GDK_Serbian_DZE, GDK_Serbian_dze, GDK_tcedilla, GDK_Tcedilla, GDK_Thorn, GDK_thorn, GDK_Tslash, GDK_tslash, GDK_Umacron, GDK_umacron, GDK_Z, GDK_z, GDK_Zabovedot, GDK_zabovedot, GDK_zacute, GDK_Zacute, GDK_zcaron, and GDK_Zcaron.

Referenced by gdk_keyval_is_lower(), gdk_keyval_is_upper(), gdk_keyval_to_lower(), and gdk_keyval_to_upper().

gboolean gdk_keyval_is_lower ( guint  keyval  ) 

Definition at line 634 of file gdk.c.

References FALSE, gdk_keyval_convert_case(), and NULL.

gboolean gdk_keyval_is_upper ( guint  keyval  ) 

Definition at line 623 of file gdk.c.

References FALSE, gdk_keyval_convert_case(), and NULL.

guint gdk_keyval_to_lower ( guint  keyval  ) 

Definition at line 614 of file gdk.c.

References gdk_keyval_convert_case(), NULL, and result().

guint gdk_keyval_to_upper ( guint  keyval  ) 

Definition at line 605 of file gdk.c.

References gdk_keyval_convert_case(), NULL, and result().

void gdk_threads_enter ( void   ) 

Definition at line 645 of file gdk.c.

References GDK_THREADS_ENTER.

void gdk_threads_leave ( void   ) 

Definition at line 650 of file gdk.c.

References GDK_THREADS_LEAVE.

GdkFilterReturn gdk_wm_protocols_filter ( GdkXEvent xev,
GdkEvent event,
gpointer  data 
)


Variable Documentation

GdkArgDesc gdk_args[] [static]

Initial value:

Definition at line 221 of file gdk.c.

Referenced by gdk_init_check().

GSList* gdk_error_trap_free_list = NULL [static]

Definition at line 67 of file gdk.c.

Referenced by gdk_error_trap_pop(), and gdk_error_trap_push().

GSList* gdk_error_traps = NULL [static]

Definition at line 66 of file gdk.c.

Referenced by gdk_error_trap_pop(), and gdk_error_trap_push().

int gdk_initialized = 0 [static]

Definition at line 62 of file gdk.c.

Referenced by gdk_exit_func(), and gdk_init_check().


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