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)  

keybindingsprivate.h
Go to the documentation of this file.
1/*
2 * keybindingsprivate.h - this file is part of Geany, a fast and lightweight IDE
3 *
4 * Copyright 2014 The Geany contributors
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21#ifndef GEANY_KEYBINDINGS_PRIVATE_H
22#define GEANY_KEYBINDINGS_PRIVATE_H 1
23
24#include "keybindings.h"
25
26#include <glib.h>
27
28G_BEGIN_DECLS
29
31{
32 const gchar *name; /* Group name used in the configuration file, such as @c "html_chars" */
33 const gchar *label; /* Group label used in the preferences dialog keybindings tab */
34 GeanyKeyGroupCallback callback; /* use this or individual keybinding callbacks */
35 gboolean plugin; /* used by plugin */
36 GPtrArray *key_items; /* pointers to GeanyKeyBinding structs */
37 gsize plugin_key_count; /* number of keybindings the group holds */
38 GeanyKeyBinding *plugin_keys; /* array of GeanyKeyBinding structs */
39 GeanyKeyGroupFunc cb_func; /* use this or individual keybinding callbacks (new style) */
40 gpointer cb_data;
41 GDestroyNotify cb_data_destroy; /* used to destroy handler_data */
42};
43
44G_END_DECLS
45
46#endif /* GEANY_KEYBINDINGS_PRIVATE_H */
Configurable keyboard shortcuts.
gboolean(* GeanyKeyGroupCallback)(guint key_id)
Function pointer type used for keybinding group callbacks.
Definition: keybindings.h:48
gboolean(* GeanyKeyGroupFunc)(GeanyKeyGroup *group, guint key_id, gpointer user_data)
Function pointer type used for keybinding group callbacks, with userdata for passing context.
Definition: keybindings.h:57
Represents a single keybinding action.
Definition: keybindings.h:75
const gchar * name
GeanyKeyGroupFunc cb_func
const gchar * label
GPtrArray * key_items
GeanyKeyBinding * plugin_keys
GeanyKeyGroupCallback callback
GDestroyNotify cb_data_destroy