Static Public Member Functions | Static Public Attributes
vgui_gtk_utils Class Reference

GTK support for menus. More...

#include <vgui_gtk_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 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 28 of file vgui_gtk_utils.h.


Member Function Documentation

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

Definition at line 136 of file vgui_gtk_utils.cxx.

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

Definition at line 97 of file vgui_gtk_utils.cxx.

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

Definition at line 79 of file vgui_gtk_utils.cxx.

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

Definition at line 196 of file vgui_gtk_utils.cxx.

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

Definition at line 89 of file vgui_gtk_utils.cxx.

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

Definition at line 27 of file vgui_gtk_utils.cxx.

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

Definition at line 47 of file vgui_gtk_utils.cxx.


Member Data Documentation

GtkAccelGroup * vgui_gtk_utils::accel_group = NULL [static]

Definition at line 39 of file vgui_gtk_utils.h.


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