2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_RADIOMENUITEM_H
4 #define _GTKMM_RADIOMENUITEM_H
12 * Copyright (C) 1998-2002 The gtkmm Development Team
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Library General Public
16 * License as published by the Free Software Foundation; either
17 * version 2 of the License, or (at your option) any later version.
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Library General Public License for more details.
24 * You should have received a copy of the GNU Library General Public
25 * License along with this library; if not, write to the Free
26 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 #include <gtkmm/checkmenuitem.h>
30 #include <gtkmm/radiobutton.h>
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 typedef struct _GtkRadioMenuItem GtkRadioMenuItem;
35 typedef struct _GtkRadioMenuItemClass GtkRadioMenuItemClass;
36 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
40 { class RadioMenuItem_Class; } // namespace Gtk
46 /** A CheckMenuItem that belongs to a group.
47 * At each instant exactly one of the menu items from a group is selected.
52 class RadioMenuItem : public CheckMenuItem
55 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56 typedef RadioMenuItem CppObjectType;
57 typedef RadioMenuItem_Class CppClassType;
58 typedef GtkRadioMenuItem BaseObjectType;
59 typedef GtkRadioMenuItemClass BaseClassType;
60 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
62 virtual ~RadioMenuItem();
64 #ifndef DOXYGEN_SHOULD_SKIP_THIS
67 friend class RadioMenuItem_Class;
68 static CppClassType radiomenuitem_class_;
71 RadioMenuItem(const RadioMenuItem&);
72 RadioMenuItem& operator=(const RadioMenuItem&);
75 explicit RadioMenuItem(const Glib::ConstructParams& construct_params);
76 explicit RadioMenuItem(GtkRadioMenuItem* castitem);
78 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
82 static GType get_type() G_GNUC_CONST;
83 static GType get_base_type() G_GNUC_CONST;
86 ///Provides access to the underlying C GtkObject.
87 GtkRadioMenuItem* gobj() { return reinterpret_cast<GtkRadioMenuItem*>(gobject_); }
89 ///Provides access to the underlying C GtkObject.
90 const GtkRadioMenuItem* gobj() const { return reinterpret_cast<GtkRadioMenuItem*>(gobject_); }
94 //C++ methods used to invoke GTK+ virtual functions:
97 //GTK+ Virtual Functions (override these to change behaviour):
99 //Default Signal Handlers::
100 virtual void on_group_changed();
107 typedef RadioButtonGroup Group;
109 RadioMenuItem(Group& groupx);
111 RadioMenuItem(Group& groupx, const Glib::ustring& label, bool mnemonic = false);
114 //We ignore the _new_*_from_widget() functions because they are just the same as calling get_group() and set_group() ourselves.
119 void set_group(Group& group);
123 Glib::SignalProxy0< void > signal_group_changed();
127 void constructor(const Group& group);
137 /** @relates Gtk::RadioMenuItem
138 * @param object The C instance
139 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
140 * @result A C++ instance that wraps this C instance.
142 Gtk::RadioMenuItem* wrap(GtkRadioMenuItem* object, bool take_copy = false);
144 #endif /* _GTKMM_RADIOMENUITEM_H */