Static Public Member Functions | Static Public Attributes
vgui_gtk2_utils Class Reference

GTK support for menus. More...

#include <vgui_gtk2_utils.h>

List of all members.

Static Public Member Functions

static vgui_button translate_button (int button)
static vgui_key translate_key (GdkEventKey const *gev)
static guint translate_key_reverse (vgui_key key)
static void set_coordinates (vgui_event &e, const gdouble x, const gdouble y)
static void set_modifiers (vgui_event &e, const guint state)
static bool is_modifier (GdkEvent const *gev)
static void add_submenu (GtkWidget *widget, const vgui_menu &menu)
static void set_menu (GtkWidget *widget, const vgui_menu &menu, bool is_menubar=false)

Static Public Attributes

static GtkAccelGroup * accel_group = NULL

Detailed Description

GTK support for menus.

Definition at line 34 of file vgui_gtk2_utils.h.


Member Function Documentation

void vgui_gtk2_utils::add_submenu ( GtkWidget *  widget,
const vgui_menu menu 
) [static]

Definition at line 190 of file vgui_gtk2_utils.cxx.

bool vgui_gtk2_utils::is_modifier ( GdkEvent const *  gev) [static]

Definition at line 151 of file vgui_gtk2_utils.cxx.

void vgui_gtk2_utils::set_coordinates ( vgui_event e,
const gdouble  x,
const gdouble  y 
) [static]

Definition at line 133 of file vgui_gtk2_utils.cxx.

void vgui_gtk2_utils::set_menu ( GtkWidget *  widget,
const vgui_menu menu,
bool  is_menubar = false 
) [static]

Definition at line 254 of file vgui_gtk2_utils.cxx.

void vgui_gtk2_utils::set_modifiers ( vgui_event e,
const guint  state 
) [static]

Definition at line 143 of file vgui_gtk2_utils.cxx.

vgui_button vgui_gtk2_utils::translate_button ( int  button) [static]

Definition at line 26 of file vgui_gtk2_utils.cxx.

vgui_key vgui_gtk2_utils::translate_key ( GdkEventKey const *  gev) [static]

Definition at line 46 of file vgui_gtk2_utils.cxx.

guint vgui_gtk2_utils::translate_key_reverse ( vgui_key  key) [static]

Definition at line 78 of file vgui_gtk2_utils.cxx.


Member Data Documentation

GtkAccelGroup * vgui_gtk2_utils::accel_group = NULL [static]

Definition at line 46 of file vgui_gtk2_utils.h.


The documentation for this class was generated from the following files: