gtkaccelgroup.h 3.05 KB
Newer Older
Cody Russell's avatar
Cody Russell committed
1
/* GTK - The GIMP Toolkit
2
 * Copyright (C) 1998, 2001 Tim Janik
Tim Janik's avatar
Tim Janik committed
3
4
 *
 * This library is free software; you can redistribute it and/or
5
 * modify it under the terms of the GNU Lesser General Public
Tim Janik's avatar
Tim Janik committed
6
7
8
9
10
11
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
12
 * Lesser General Public License for more details.
Tim Janik's avatar
Tim Janik committed
13
 *
14
 * You should have received a copy of the GNU Lesser General Public
Javier Jardón's avatar
Javier Jardón committed
15
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
Tim Janik's avatar
Tim Janik committed
16
 */
17
18

/*
19
 * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
20
21
 * file for a list of people on the GTK+ Team.  See the ChangeLog
 * files for a list of changes.  These files are distributed with
22
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
23
24
 */

Tim Janik's avatar
Tim Janik committed
25
26
27
28
#ifndef __GTK_ACCEL_GROUP_H__
#define __GTK_ACCEL_GROUP_H__


29
30
31
32
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif

Tim Janik's avatar
Tim Janik committed
33
34
35
#include <gdk/gdk.h>
#include <gtk/gtkenums.h>

36
G_BEGIN_DECLS
Tim Janik's avatar
Tim Janik committed
37
38


39
/* --- Accelerators--- */
40
GDK_AVAILABLE_IN_ALL
41
42
gboolean gtk_accelerator_valid		      (guint	        keyval,
					       GdkModifierType  modifiers) G_GNUC_CONST;
43
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
44
gboolean gtk_accelerator_parse		      (const char      *accelerator,
45
46
					       guint	       *accelerator_key,
					       GdkModifierType *accelerator_mods);
Matthias Clasen's avatar
Matthias Clasen committed
47
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
48
gboolean gtk_accelerator_parse_with_keycode   (const char      *accelerator,
49
                                               GdkDisplay      *display,
50
51
52
                                               guint           *accelerator_key,
                                               guint          **accelerator_codes,
                                               GdkModifierType *accelerator_mods);
53
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
54
char *	 gtk_accelerator_name		      (guint	        accelerator_key,
55
					       GdkModifierType  accelerator_mods);
Matthias Clasen's avatar
Matthias Clasen committed
56
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
57
char *	 gtk_accelerator_name_with_keycode    (GdkDisplay      *display,
58
59
60
                                               guint            accelerator_key,
                                               guint            keycode,
                                               GdkModifierType  accelerator_mods);
61
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
62
char *   gtk_accelerator_get_label            (guint           accelerator_key,
63
                                               GdkModifierType accelerator_mods);
Matthias Clasen's avatar
Matthias Clasen committed
64
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
65
char *   gtk_accelerator_get_label_with_keycode (GdkDisplay      *display,
66
67
68
                                                 guint            accelerator_key,
                                                 guint            keycode,
                                                 GdkModifierType  accelerator_mods);
69
GDK_AVAILABLE_IN_ALL
70
GdkModifierType gtk_accelerator_get_default_mod_mask (void) G_GNUC_CONST;
71

72

73
G_END_DECLS
Tim Janik's avatar
Tim Janik committed
74
75

#endif /* __GTK_ACCEL_GROUP_H__ */