1 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
2
3
4 #include <glibmm.h>
5
6 #include <gtkmm/sizegroup.h>
7 #include <gtkmm/private/sizegroup_p.h>
8
9 #include <gtk/gtk.h>
10
11 // -*- c++ -*-
12 /* $Id: sizegroup.ccg,v 1.1 2003/01/21 13:40:37 murrayc Exp $ */
13
14 /*
15 *
16 * Copyright 2002 The gtkmm Development Team
17 *
18 * This library is free software; you can redistribute it and/or
19 * modify it under the terms of the GNU Lesser General Public
20 * License as published by the Free Software Foundation; either
21 * version 2.1 of the License, or (at your option) any later version.
22 *
23 * This library is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26 * Lesser General Public License for more details.
27 *
28 * You should have received a copy of the GNU Lesser General Public
29 * License along with this library; if not, write to the Free
30 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 */
32
33 #include <gtk/gtk.h>
34
35 namespace Gtk
36 {
37
SizeGroup(SizeGroupMode mode)38 SizeGroup::SizeGroup(SizeGroupMode mode)
39 :
40 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
41 Glib::ObjectBase(0),
42 Glib::Object(Glib::ConstructParams(sizegroup_class_.init(), "mode",(GtkSizeGroupMode) mode, static_cast<char*>(0)))
43 {}
44
45 } // namespace Gtk
46
47
48 namespace
49 {
50 } // anonymous namespace
51
52 // static
value_type()53 GType Glib::Value<Gtk::SizeGroupMode>::value_type()
54 {
55 return gtk_size_group_mode_get_type();
56 }
57
58
59 namespace Glib
60 {
61
wrap(GtkSizeGroup * object,bool take_copy)62 Glib::RefPtr<Gtk::SizeGroup> wrap(GtkSizeGroup* object, bool take_copy)
63 {
64 return Glib::RefPtr<Gtk::SizeGroup>( dynamic_cast<Gtk::SizeGroup*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
65 //We use dynamic_cast<> in case of multiple inheritance.
66 }
67
68 } /* namespace Glib */
69
70
71 namespace Gtk
72 {
73
74
75 /* The *_Class implementation: */
76
init()77 const Glib::Class& SizeGroup_Class::init()
78 {
79 if(!gtype_) // create the GType if necessary
80 {
81 // Glib::Class has to know the class init function to clone custom types.
82 class_init_func_ = &SizeGroup_Class::class_init_function;
83
84 // This is actually just optimized away, apparently with no harm.
85 // Make sure that the parent type has been created.
86 //CppClassParent::CppObjectType::get_type();
87
88 // Create the wrapper type, with the same class/instance size as the base type.
89 register_derived_type(gtk_size_group_get_type());
90
91 // Add derived versions of interfaces, if the C type implements any interfaces:
92
93 }
94
95 return *this;
96 }
97
98
class_init_function(void * g_class,void * class_data)99 void SizeGroup_Class::class_init_function(void* g_class, void* class_data)
100 {
101 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
102 CppClassParent::class_init_function(klass, class_data);
103
104
105 }
106
107
wrap_new(GObject * object)108 Glib::ObjectBase* SizeGroup_Class::wrap_new(GObject* object)
109 {
110 return new SizeGroup((GtkSizeGroup*)object);
111 }
112
113
114 /* The implementation: */
115
gobj_copy()116 GtkSizeGroup* SizeGroup::gobj_copy()
117 {
118 reference();
119 return gobj();
120 }
121
SizeGroup(const Glib::ConstructParams & construct_params)122 SizeGroup::SizeGroup(const Glib::ConstructParams& construct_params)
123 :
124 Glib::Object(construct_params)
125 {
126
127 }
128
SizeGroup(GtkSizeGroup * castitem)129 SizeGroup::SizeGroup(GtkSizeGroup* castitem)
130 :
131 Glib::Object((GObject*)(castitem))
132 {}
133
134
~SizeGroup()135 SizeGroup::~SizeGroup()
136 {}
137
138
139 SizeGroup::CppClassType SizeGroup::sizegroup_class_; // initialize static member
140
get_type()141 GType SizeGroup::get_type()
142 {
143 return sizegroup_class_.init().get_type();
144 }
145
146
get_base_type()147 GType SizeGroup::get_base_type()
148 {
149 return gtk_size_group_get_type();
150 }
151
152
create(SizeGroupMode mode)153 Glib::RefPtr<SizeGroup> SizeGroup::create(SizeGroupMode mode)
154 {
155 return Glib::RefPtr<SizeGroup>( new SizeGroup(mode) );
156 }
157
set_mode(SizeGroupMode mode)158 void SizeGroup::set_mode(SizeGroupMode mode)
159 {
160 gtk_size_group_set_mode(gobj(), ((GtkSizeGroupMode)(mode)));
161 }
162
get_mode() const163 SizeGroupMode SizeGroup::get_mode() const
164 {
165 return ((SizeGroupMode)(gtk_size_group_get_mode(const_cast<GtkSizeGroup*>(gobj()))));
166 }
167
set_ignore_hidden(bool ignore_hidden)168 void SizeGroup::set_ignore_hidden(bool ignore_hidden)
169 {
170 gtk_size_group_set_ignore_hidden(gobj(), static_cast<int>(ignore_hidden));
171 }
172
get_ignore_hidden() const173 bool SizeGroup::get_ignore_hidden() const
174 {
175 return gtk_size_group_get_ignore_hidden(const_cast<GtkSizeGroup*>(gobj()));
176 }
177
add_widget(Widget & widget)178 void SizeGroup::add_widget(Widget& widget)
179 {
180 gtk_size_group_add_widget(gobj(), (widget).gobj());
181 }
182
remove_widget(Widget & widget)183 void SizeGroup::remove_widget(Widget& widget)
184 {
185 gtk_size_group_remove_widget(gobj(), (widget).gobj());
186 }
187
get_widgets()188 Glib::SListHandle<Widget*> SizeGroup::get_widgets()
189 {
190 return Glib::SListHandle<Widget*>(gtk_size_group_get_widgets(gobj()), Glib::OWNERSHIP_SHALLOW);
191 }
192
get_widgets() const193 Glib::SListHandle<const Widget*> SizeGroup::get_widgets() const
194 {
195 return Glib::SListHandle<const Widget*>(gtk_size_group_get_widgets(const_cast<GtkSizeGroup*>(gobj())), Glib::OWNERSHIP_SHALLOW);
196 }
197
198
property_mode()199 Glib::PropertyProxy< SizeGroupMode > SizeGroup::property_mode()
200 {
201 return Glib::PropertyProxy< SizeGroupMode >(this, "mode");
202 }
203
property_mode() const204 Glib::PropertyProxy_ReadOnly< SizeGroupMode > SizeGroup::property_mode() const
205 {
206 return Glib::PropertyProxy_ReadOnly< SizeGroupMode >(this, "mode");
207 }
208
property_ignore_hidden()209 Glib::PropertyProxy< bool > SizeGroup::property_ignore_hidden()
210 {
211 return Glib::PropertyProxy< bool >(this, "ignore-hidden");
212 }
213
property_ignore_hidden() const214 Glib::PropertyProxy_ReadOnly< bool > SizeGroup::property_ignore_hidden() const
215 {
216 return Glib::PropertyProxy_ReadOnly< bool >(this, "ignore-hidden");
217 }
218
219
220 } // namespace Gtk
221
222
223