geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

GeanyKeyBinding Struct Reference

Represents a single keybinding action. More...

#include <keybindings.h>

Collaboration diagram for GeanyKeyBinding:
[legend]

Public Attributes

guint key
 Key value in lower-case, such as GDK_KEY_a or 0. More...
 
GdkModifierType mods
 Modifier keys, such as GDK_CONTROL_MASK or 0. More...
 
gchar * name
 Key name for the configuration file, such as "menu_new". More...
 
gchar * label
 Label used in the preferences dialog keybindings tab. More...
 
GeanyKeyCallback callback
 Function called when the key combination is pressed, or NULL to use the group callback (preferred). More...
 
GtkWidget * menu_item
 Optional widget to set an accelerator for, or NULL. More...
 
guint id
 
guint default_key
 
GdkModifierType default_mods
 
GeanyKeyBindingFunc cb_func
 
gpointer cb_data
 
GDestroyNotify cb_data_destroy
 

Detailed Description

Represents a single keybinding action.

Use keybindings_set_item() to set.

Definition at line 74 of file keybindings.h.

Member Data Documentation

◆ callback

GeanyKeyCallback GeanyKeyBinding::callback

Function called when the key combination is pressed, or NULL to use the group callback (preferred).

See also
plugin_set_key_group().

Definition at line 84 of file keybindings.h.

Referenced by keybindings_set_item(), and run_kb().

◆ cb_data

gpointer GeanyKeyBinding::cb_data

◆ cb_data_destroy

GDestroyNotify GeanyKeyBinding::cb_data_destroy

Definition at line 91 of file keybindings.h.

Referenced by free_key_binding(), and keybindings_set_item_full().

◆ cb_func

GeanyKeyBindingFunc GeanyKeyBinding::cb_func

Definition at line 89 of file keybindings.h.

Referenced by keybindings_set_item(), keybindings_set_item_full(), and run_kb().

◆ default_key

guint GeanyKeyBinding::default_key

Definition at line 87 of file keybindings.h.

Referenced by kb_set_shortcut(), and keybindings_set_item().

◆ default_mods

GdkModifierType GeanyKeyBinding::default_mods

Definition at line 88 of file keybindings.h.

Referenced by kb_set_shortcut(), and keybindings_set_item().

◆ id

guint GeanyKeyBinding::id

Definition at line 86 of file keybindings.h.

Referenced by kb_init(), keybindings_set_item(), and run_kb().

◆ key

◆ label

gchar* GeanyKeyBinding::label

Label used in the preferences dialog keybindings tab.

May contain underscores - these won't be displayed.

Definition at line 81 of file keybindings.h.

Referenced by free_key_binding(), keybindings_get_label(), and keybindings_set_item().

◆ menu_item

GtkWidget* GeanyKeyBinding::menu_item

Optional widget to set an accelerator for, or NULL.

Definition at line 85 of file keybindings.h.

Referenced by apply_kb_accel(), keybindings_set_item(), and keybindings_update_combo().

◆ mods

◆ name

gchar* GeanyKeyBinding::name

Key name for the configuration file, such as "menu_new".

Definition at line 78 of file keybindings.h.

Referenced by free_key_binding(), keybindings_set_item(), load_kb(), run_kb(), set_keyfile_kb(), and gen-api-gtkdoc.DoxyElement::to_gtkdoc().


The documentation for this struct was generated from the following file: