Ardour  8.7-14-g57a6773833
gtkaccellabel.h
Go to the documentation of this file.
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
3  *
4  * GtkAccelLabel: GtkLabel with accelerator monitoring facilities.
5  * Copyright (C) 1998 Tim Janik
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22 
23 /*
24  * Modified by the GTK+ Team and others 1997-2001. See the AUTHORS
25  * file for a list of people on the GTK+ Team. See the ChangeLog
26  * files for a list of changes. These files are distributed with
27  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
28  */
29 
30 #ifndef __GTK_ACCEL_LABEL_H__
31 #define __GTK_ACCEL_LABEL_H__
32 
33 
34 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
35 #error "Only <gtk/gtk.h> can be included directly."
36 #endif
37 
38 #include <gtk/gtklabel.h>
39 
40 
41 G_BEGIN_DECLS
42 
43 #define GTK_TYPE_ACCEL_LABEL (gtk_accel_label_get_type ())
44 #define GTK_ACCEL_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_ACCEL_LABEL, GtkAccelLabel))
45 #define GTK_ACCEL_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_ACCEL_LABEL, GtkAccelLabelClass))
46 #define GTK_IS_ACCEL_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_ACCEL_LABEL))
47 #define GTK_IS_ACCEL_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_ACCEL_LABEL))
48 #define GTK_ACCEL_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_ACCEL_LABEL, GtkAccelLabelClass))
49 
50 
51 typedef struct _GtkAccelLabel GtkAccelLabel;
53 
61 {
63 
64  guint GSEAL (gtk_reserved);
65  guint GSEAL (accel_padding); /* should be style property? */
66  GtkWidget *GSEAL (accel_widget); /* done*/
67  GClosure *GSEAL (accel_closure); /* has set function */
68  GtkAccelGroup *GSEAL (accel_group); /* set by set_accel_closure() */
69  gchar *GSEAL (accel_string); /* has set function */
70  guint16 GSEAL (accel_string_width); /* seems to be private */
71 };
72 
74 {
76 
77  gchar *signal_quote1;
78  gchar *signal_quote2;
81  gchar *mod_name_alt;
82  gchar *mod_separator;
84  guint latin1_to_char : 1;
85 
86  /* Padding for future expansion */
87  void (*_gtk_reserved1) (void);
88  void (*_gtk_reserved2) (void);
89  void (*_gtk_reserved3) (void);
90  void (*_gtk_reserved4) (void);
91 };
92 
93 #ifndef GTK_DISABLE_DEPRECATED
94 #define gtk_accel_label_accelerator_width gtk_accel_label_get_accel_width
95 #endif /* GTK_DISABLE_DEPRECATED */
96 
97 GType gtk_accel_label_get_type (void) G_GNUC_CONST;
98 GtkWidget* gtk_accel_label_new (const gchar *string);
102  GtkWidget *accel_widget);
104  GClosure *accel_closure);
105 gboolean gtk_accel_label_refetch (GtkAccelLabel *accel_label);
106 
107 /* private */
109  guint accelerator_key,
110  GdkModifierType accelerator_mods);
111 
112 G_END_DECLS
113 
114 #endif /* __GTK_ACCEL_LABEL_H__ */
GdkModifierType
Definition: gdktypes.h:127
void gtk_accel_label_set_accel_closure(GtkAccelLabel *accel_label, GClosure *accel_closure)
GtkWidget * gtk_accel_label_get_accel_widget(GtkAccelLabel *accel_label)
GType gtk_accel_label_get_type(void) G_GNUC_CONST
gchar * _gtk_accel_label_class_get_accelerator_label(GtkAccelLabelClass *klass, guint accelerator_key, GdkModifierType accelerator_mods)
guint gtk_accel_label_get_accel_width(GtkAccelLabel *accel_label)
GtkWidget * gtk_accel_label_new(const gchar *string)
gboolean gtk_accel_label_refetch(GtkAccelLabel *accel_label)
void gtk_accel_label_set_accel_widget(GtkAccelLabel *accel_label, GtkWidget *accel_widget)
void(* _gtk_reserved4)(void)
Definition: gtkaccellabel.h:90
GtkLabelClass parent_class
Definition: gtkaccellabel.h:75
void(* _gtk_reserved3)(void)
Definition: gtkaccellabel.h:89
void(* _gtk_reserved2)(void)
Definition: gtkaccellabel.h:88
void(* _gtk_reserved1)(void)
Definition: gtkaccellabel.h:87
GtkLabel label
Definition: gtkaccellabel.h:62
GtkAccelGroup * GSEAL(accel_group)
guint GSEAL(accel_padding)
GtkWidget * GSEAL(accel_widget)
guint GSEAL(gtk_reserved)
GClosure * GSEAL(accel_closure)
gchar * GSEAL(accel_string)
guint16 GSEAL(accel_string_width)