2 * GTK - The GIMP Toolkit
3 * Copyright (C) 1998, 1999 Red Hat, Inc.
6 * This Library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This Library 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 GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with the Gnome Library; see the file COPYING.LIB. If not,
18 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
23 * Author: James Henstridge <james@daa.com.au>
25 * Modified by the GTK+ Team and others 2003. See the AUTHORS
26 * file for a list of people on the GTK+ Team. See the ChangeLog
27 * files for a list of changes. These files are distributed with
28 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
30 #ifndef __GTK_RADIO_ACTION_H__
31 #define __GTK_RADIO_ACTION_H__
33 #include <gtk/gtktoggleaction.h>
35 #define GTK_TYPE_RADIO_ACTION (gtk_radio_action_get_type ())
36 #define GTK_RADIO_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RADIO_ACTION, GtkRadioAction))
37 #define GTK_RADIO_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RADIO_ACTION, GtkRadioActionClass))
38 #define GTK_IS_RADIO_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RADIO_ACTION))
39 #define GTK_IS_RADIO_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), GTK_TYPE_RADIO_ACTION))
40 #define GTK_RADIO_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_RADIO_ACTION, GtkRadioActionClass))
42 typedef struct _GtkRadioAction GtkRadioAction;
43 typedef struct _GtkRadioActionPrivate GtkRadioActionPrivate;
44 typedef struct _GtkRadioActionClass GtkRadioActionClass;
46 struct _GtkRadioAction
48 GtkToggleAction parent;
52 GtkRadioActionPrivate *private_data;
55 struct _GtkRadioActionClass
57 GtkToggleActionClass parent_class;
59 void (* changed) (GtkRadioAction *action, GtkRadioAction *current);
61 /* Padding for future expansion */
62 void (*_gtk_reserved1) (void);
63 void (*_gtk_reserved2) (void);
64 void (*_gtk_reserved3) (void);
65 void (*_gtk_reserved4) (void);
68 GType gtk_radio_action_get_type (void);
70 GSList *gtk_radio_action_get_group (GtkRadioAction *action);
71 void gtk_radio_action_set_group (GtkRadioAction *action,
73 gint gtk_radio_action_get_current_value (GtkRadioAction *action);
75 #endif /* __GTK_RADIO_ACTION_H__ */