2
// Generated by gtkmmproc -- DO NOT MODIFY!
3
#ifndef _GTKMM_RADIOMENUITEM_H
4
#define _GTKMM_RADIOMENUITEM_H
9
/* $Id: radiomenuitem.hg,v 1.7 2005/04/07 08:46:44 murrayc Exp $ */
13
* Copyright (C) 1998-2002 The gtkmm Development Team
15
* This library is free software; you can redistribute it and/or
16
* modify it under the terms of the GNU Lesser General Public
17
* License as published by the Free Software Foundation; either
18
* version 2.1 of the License, or (at your option) any later version.
20
* This library is distributed in the hope that it will be useful,
21
* but WITHOUT ANY WARRANTY; without even the implied warranty of
22
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23
* Lesser General Public License for more details.
25
* You should have received a copy of the GNU Lesser General Public
26
* License along with this library; if not, write to the Free
27
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30
#include <gtkmm/checkmenuitem.h>
31
#include <gtkmm/radiobutton.h>
34
#ifndef DOXYGEN_SHOULD_SKIP_THIS
35
typedef struct _GtkRadioMenuItem GtkRadioMenuItem;
36
typedef struct _GtkRadioMenuItemClass GtkRadioMenuItemClass;
37
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
41
{ class RadioMenuItem_Class; } // namespace Gtk
47
/** A CheckMenuItem that belongs to a group.
48
* At each instant exactly one of the menu items from a group is selected.
53
class RadioMenuItem : public CheckMenuItem
56
#ifndef DOXYGEN_SHOULD_SKIP_THIS
57
typedef RadioMenuItem CppObjectType;
58
typedef RadioMenuItem_Class CppClassType;
59
typedef GtkRadioMenuItem BaseObjectType;
60
typedef GtkRadioMenuItemClass BaseClassType;
61
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
63
virtual ~RadioMenuItem();
65
#ifndef DOXYGEN_SHOULD_SKIP_THIS
68
friend class RadioMenuItem_Class;
69
static CppClassType radiomenuitem_class_;
72
RadioMenuItem(const RadioMenuItem&);
73
RadioMenuItem& operator=(const RadioMenuItem&);
76
explicit RadioMenuItem(const Glib::ConstructParams& construct_params);
77
explicit RadioMenuItem(GtkRadioMenuItem* castitem);
79
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
82
#ifndef DOXYGEN_SHOULD_SKIP_THIS
83
static GType get_type() G_GNUC_CONST;
86
static GType get_base_type() G_GNUC_CONST;
89
///Provides access to the underlying C GtkObject.
90
GtkRadioMenuItem* gobj() { return reinterpret_cast<GtkRadioMenuItem*>(gobject_); }
92
///Provides access to the underlying C GtkObject.
93
const GtkRadioMenuItem* gobj() const { return reinterpret_cast<GtkRadioMenuItem*>(gobject_); }
97
//C++ methods used to invoke GTK+ virtual functions:
100
//GTK+ Virtual Functions (override these to change behaviour):
102
//Default Signal Handlers::
103
virtual void on_group_changed();
110
typedef RadioButtonGroup Group;
112
RadioMenuItem(Group& groupx);
114
RadioMenuItem(Group& groupx, const Glib::ustring& label, bool mnemonic = false);
117
//We ignore the _new_*_from_widget() functions because they are just the same as calling get_group() and set_group() ourselves.
120
/** Returns the group to which the radio menu item belongs, as a List of
121
* Gtk::RadioMenuItem. The list belongs to GTK+ and should not be freed.
122
* @return The group of @a radio_menu_item.
126
void set_group(Group& group);
129
/** Emitted when the group of radio menu items that a radio menu item belongs
130
* to changes. This is emitted when a radio menu item switches from
131
* being alone to being part of a group of 2 or more menu items, or
132
* vice-versa, and when a buttton is moved from one group of 2 or
133
* more menu items to a different one, but not when the composition
134
* of the group that a menu item belongs to changes.
137
* <tt>void on_my_%group_changed()</tt>
140
Glib::SignalProxy0< void > signal_group_changed();
143
//Probably wouldn't work: _WRAP_PROPERTY("group", Group)
146
void constructor(const Group& group);
156
/** A Glib::wrap() method for this object.
158
* @param object The C instance.
159
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
160
* @result A C++ instance that wraps this C instance.
162
* @relates Gtk::RadioMenuItem
164
Gtk::RadioMenuItem* wrap(GtkRadioMenuItem* object, bool take_copy = false);
168
#endif /* _GTKMM_RADIOMENUITEM_H */