1 // Generated by gmmproc 2.60.0 -- DO NOT MODIFY!
2
3
4 #include <glibmm.h>
5
6 #include <gtkmm/colorchooserdialog.h>
7 #include <gtkmm/private/colorchooserdialog_p.h>
8
9
10 /* Copyright 2012 The gtkmm Development Team
11 *
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2.1 of the License, or (at your option) any later version.
16 *
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 */
26
27 #include <gtk/gtk.h>
28
29 namespace Gtk
30 {
31
ColorChooserDialog(const Glib::ustring & title)32 ColorChooserDialog::ColorChooserDialog(const Glib::ustring& title)
33 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
34 Glib::ObjectBase(nullptr),
35 Gtk::Dialog(Glib::ConstructParams(colorchooserdialog_class_.init(), "title",title.c_str(), nullptr))
36 {
37 }
38
39 } // namespace Gtk
40
41 namespace
42 {
43 } // anonymous namespace
44
45
46 namespace Glib
47 {
48
wrap(GtkColorChooserDialog * object,bool take_copy)49 Gtk::ColorChooserDialog* wrap(GtkColorChooserDialog* object, bool take_copy)
50 {
51 return dynamic_cast<Gtk::ColorChooserDialog *> (Glib::wrap_auto ((GObject*)(object), take_copy));
52 }
53
54 } /* namespace Glib */
55
56 namespace Gtk
57 {
58
59
60 /* The *_Class implementation: */
61
init()62 const Glib::Class& ColorChooserDialog_Class::init()
63 {
64 if(!gtype_) // create the GType if necessary
65 {
66 // Glib::Class has to know the class init function to clone custom types.
67 class_init_func_ = &ColorChooserDialog_Class::class_init_function;
68
69 // This is actually just optimized away, apparently with no harm.
70 // Make sure that the parent type has been created.
71 //CppClassParent::CppObjectType::get_type();
72
73 // Create the wrapper type, with the same class/instance size as the base type.
74 register_derived_type(gtk_color_chooser_dialog_get_type());
75
76 // Add derived versions of interfaces, if the C type implements any interfaces:
77
78 }
79
80 return *this;
81 }
82
83
class_init_function(void * g_class,void * class_data)84 void ColorChooserDialog_Class::class_init_function(void* g_class, void* class_data)
85 {
86 const auto klass = static_cast<BaseClassType*>(g_class);
87 CppClassParent::class_init_function(klass, class_data);
88
89
90 }
91
92
wrap_new(GObject * o)93 Glib::ObjectBase* ColorChooserDialog_Class::wrap_new(GObject* o)
94 {
95 return new ColorChooserDialog((GtkColorChooserDialog*)(o)); //top-level windows can not be manage()ed.
96
97 }
98
99
100 /* The implementation: */
101
ColorChooserDialog(const Glib::ConstructParams & construct_params)102 ColorChooserDialog::ColorChooserDialog(const Glib::ConstructParams& construct_params)
103 :
104 Gtk::Dialog(construct_params)
105 {
106 }
107
ColorChooserDialog(GtkColorChooserDialog * castitem)108 ColorChooserDialog::ColorChooserDialog(GtkColorChooserDialog* castitem)
109 :
110 Gtk::Dialog((GtkDialog*)(castitem))
111 {
112 }
113
114
ColorChooserDialog(ColorChooserDialog && src)115 ColorChooserDialog::ColorChooserDialog(ColorChooserDialog&& src) noexcept
116 : Gtk::Dialog(std::move(src))
117 {}
118
operator =(ColorChooserDialog && src)119 ColorChooserDialog& ColorChooserDialog::operator=(ColorChooserDialog&& src) noexcept
120 {
121 Gtk::Dialog::operator=(std::move(src));
122 return *this;
123 }
124
~ColorChooserDialog()125 ColorChooserDialog::~ColorChooserDialog() noexcept
126 {
127 destroy_();
128 }
129
130 ColorChooserDialog::CppClassType ColorChooserDialog::colorchooserdialog_class_; // initialize static member
131
get_type()132 GType ColorChooserDialog::get_type()
133 {
134 return colorchooserdialog_class_.init().get_type();
135 }
136
137
get_base_type()138 GType ColorChooserDialog::get_base_type()
139 {
140 return gtk_color_chooser_dialog_get_type();
141 }
142
143
ColorChooserDialog()144 ColorChooserDialog::ColorChooserDialog()
145 :
146 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
147 Glib::ObjectBase(nullptr),
148 Gtk::Dialog(Glib::ConstructParams(colorchooserdialog_class_.init()))
149 {
150
151
152 }
153
ColorChooserDialog(const Glib::ustring & title,Window & parent)154 ColorChooserDialog::ColorChooserDialog(const Glib::ustring& title, Window& parent)
155 :
156 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
157 Glib::ObjectBase(nullptr),
158 Gtk::Dialog(Glib::ConstructParams(colorchooserdialog_class_.init(), "title", title.c_str(), "parent", (parent).gobj(), nullptr))
159 {
160
161
162 }
163
164
property_show_editor()165 Glib::PropertyProxy< bool > ColorChooserDialog::property_show_editor()
166 {
167 return Glib::PropertyProxy< bool >(this, "show-editor");
168 }
169
property_show_editor() const170 Glib::PropertyProxy_ReadOnly< bool > ColorChooserDialog::property_show_editor() const
171 {
172 return Glib::PropertyProxy_ReadOnly< bool >(this, "show-editor");
173 }
174
175
176 } // namespace Gtk
177
178
179