2 // Generated by gtkmmproc -- DO NOT MODIFY!
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/bin.h>
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 typedef struct _GtkItem GtkItem;
34 typedef struct _GtkItemClass GtkItemClass;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 { class Item_Class; } // namespace Gtk
43 /** This class should be considered as a virtual base class.
44 * Only the signals and methods it provides are of any interest.
45 * You don't want to instantiate any objects of that class.
50 class Item : public Bin
53 #ifndef DOXYGEN_SHOULD_SKIP_THIS
54 typedef Item CppObjectType;
55 typedef Item_Class CppClassType;
56 typedef GtkItem BaseObjectType;
57 typedef GtkItemClass BaseClassType;
58 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
62 #ifndef DOXYGEN_SHOULD_SKIP_THIS
65 friend class Item_Class;
66 static CppClassType item_class_;
70 Item& operator=(const Item&);
73 explicit Item(const Glib::ConstructParams& construct_params);
74 explicit Item(GtkItem* castitem);
76 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
79 #ifndef DOXYGEN_SHOULD_SKIP_THIS
80 static GType get_type() G_GNUC_CONST;
81 static GType get_base_type() G_GNUC_CONST;
84 ///Provides access to the underlying C GtkObject.
85 GtkItem* gobj() { return reinterpret_cast<GtkItem*>(gobject_); }
87 ///Provides access to the underlying C GtkObject.
88 const GtkItem* gobj() const { return reinterpret_cast<GtkItem*>(gobject_); }
92 //C++ methods used to invoke GTK+ virtual functions:
95 //GTK+ Virtual Functions (override these to change behaviour):
97 //Default Signal Handlers::
98 virtual void on_select();
99 virtual void on_deselect();
100 virtual void on_toggle();
111 Glib::SignalProxy0< void > signal_select();
117 Glib::SignalProxy0< void > signal_deselect();
123 Glib::SignalProxy0< void > signal_toggle();
132 } /* namespace Gtk */
137 /** @relates Gtk::Item
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::Item* wrap(GtkItem* object, bool take_copy = false);
144 #endif /* _GTKMM_ITEM_H */