#include <gdk/gdktypes.h>
#include <gdk/gdkkeysyms.h>
#include <gdk/gdkkeys.h>
#include "generic/callback.h"
#include <string>
Go to the source code of this file.
Data Structures | |
struct | Accelerator |
class | Command |
class | Toggle |
class | KeyEvent |
Defines | |
#define | INCLUDED_GTKUTIL_ACCELERATOR_H |
#define | ALLOWED_MODIFIERS (~(GDK_MOD2_MASK | GDK_LOCK_MASK | GDK_MOD3_MASK | GDK_MOD4_MASK | GDK_MOD5_MASK)) |
Typedefs | |
typedef struct _GtkWidget | GtkWidget |
typedef struct _GtkWindow | GtkWindow |
typedef struct _GtkAccelGroup | GtkAccelGroup |
Functions | |
Accelerator | accelerator_null () |
const char * | global_keys_find (unsigned int key) |
unsigned int | global_keys_find (const std::string &name) |
void | accelerator_write (const Accelerator &accelerator, TextOutputStream &ostream) |
template<typename TextOutputStreamType > | |
TextOutputStreamType & | ostream_write (TextOutputStreamType &ostream, const Accelerator &accelerator) |
void | keydown_accelerators_add (Accelerator accelerator, const Callback &callback) |
void | keydown_accelerators_remove (Accelerator accelerator) |
void | keyup_accelerators_add (Accelerator accelerator, const Callback &callback) |
void | keyup_accelerators_remove (Accelerator accelerator) |
void | global_accel_connect_window (GtkWindow *window) |
void | global_accel_disconnect_window (GtkWindow *window) |
void | GlobalPressedKeys_releaseAll () |
void | global_accel_init () |
void | global_accel_destroy () |
GClosure * | global_accel_group_find (Accelerator accelerator) |
void | global_accel_group_connect (const Accelerator &accelerator, const Callback &callback) |
void | global_accel_group_disconnect (const Accelerator &accelerator, const Callback &callback) |
void | PressedButtons_connect (PressedButtons &pressedButtons, GtkWidget *widget) |
Variables | |
GtkAccelGroup * | global_accel |
PressedButtons | g_pressedButtons |
#define ALLOWED_MODIFIERS (~(GDK_MOD2_MASK | GDK_LOCK_MASK | GDK_MOD3_MASK | GDK_MOD4_MASK | GDK_MOD5_MASK)) |
Definition at line 32 of file accelerator.h.
Referenced by Accelerator::operator<(), Accelerator::operator=(), and Accelerator::operator==().
#define INCLUDED_GTKUTIL_ACCELERATOR_H |
Definition at line 23 of file accelerator.h.
typedef struct _GtkAccelGroup GtkAccelGroup |
Definition at line 104 of file accelerator.h.
typedef struct _GtkWidget GtkWidget |
Definition at line 97 of file accelerator.h.
typedef struct _GtkWindow GtkWindow |
Definition at line 98 of file accelerator.h.
Accelerator accelerator_null | ( | ) | [inline] |
Definition at line 74 of file accelerator.h.
void accelerator_write | ( | const Accelerator & | accelerator, | |
TextOutputStream & | ostream | |||
) |
Referenced by ostream_write().
void global_accel_connect_window | ( | GtkWindow * | window | ) |
void global_accel_destroy | ( | ) |
void global_accel_disconnect_window | ( | GtkWindow * | window | ) |
void global_accel_group_connect | ( | const Accelerator & | accelerator, | |
const Callback & | callback | |||
) |
void global_accel_group_disconnect | ( | const Accelerator & | accelerator, | |
const Callback & | callback | |||
) |
GClosure* global_accel_group_find | ( | Accelerator | accelerator | ) |
void global_accel_init | ( | ) |
unsigned int global_keys_find | ( | const std::string & | name | ) |
const char* global_keys_find | ( | unsigned int | key | ) |
void GlobalPressedKeys_releaseAll | ( | ) |
void keydown_accelerators_add | ( | Accelerator | accelerator, | |
const Callback & | callback | |||
) |
void keydown_accelerators_remove | ( | Accelerator | accelerator | ) |
void keyup_accelerators_add | ( | Accelerator | accelerator, | |
const Callback & | callback | |||
) |
void keyup_accelerators_remove | ( | Accelerator | accelerator | ) |
TextOutputStreamType& ostream_write | ( | TextOutputStreamType & | ostream, | |
const Accelerator & | accelerator | |||
) | [inline] |
Definition at line 86 of file accelerator.h.
References accelerator_write().
void PressedButtons_connect | ( | PressedButtons & | pressedButtons, | |
GtkWidget * | widget | |||
) |
PressedButtons g_pressedButtons |