1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include <gtkmm/invisible.h>
4 #include <gtkmm/private/invisible_p.h>
11 * Copyright 1998-2002 The gtkmm Development Team
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Library General Public
15 * License as published by the Free Software Foundation; either
16 * version 2 of the License, or (at your option) any later version.
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Library General Public License for more details.
23 * You should have received a copy of the GNU Library General Public
24 * License along with this library; if not, write to the Free
25 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 #include <gtk/gtkinvisible.h>
39 } // anonymous namespace
45 Gtk::Invisible* wrap(GtkInvisible* object, bool take_copy)
47 return dynamic_cast<Gtk::Invisible *> (Glib::wrap_auto ((GObject*)(object), take_copy));
50 } /* namespace Glib */
56 /* The *_Class implementation: */
58 const Glib::Class& Invisible_Class::init()
60 if(!gtype_) // create the GType if necessary
62 // Glib::Class has to know the class init function to clone custom types.
63 class_init_func_ = &Invisible_Class::class_init_function;
65 // This is actually just optimized away, apparently with no harm.
66 // Make sure that the parent type has been created.
67 //CppClassParent::CppObjectType::get_type();
69 // Create the wrapper type, with the same class/instance size as the base type.
70 register_derived_type(gtk_invisible_get_type());
72 // Add derived versions of interfaces, if the C type implements any interfaces:
78 void Invisible_Class::class_init_function(void* g_class, void* class_data)
80 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
81 CppClassParent::class_init_function(klass, class_data);
86 Glib::ObjectBase* Invisible_Class::wrap_new(GObject* o)
88 return manage(new Invisible((GtkInvisible*)(o)));
93 /* The implementation: */
95 Invisible::Invisible(const Glib::ConstructParams& construct_params)
97 Gtk::Widget(construct_params)
101 Invisible::Invisible(GtkInvisible* castitem)
103 Gtk::Widget((GtkWidget*)(castitem))
107 Invisible::~Invisible()
112 Invisible::CppClassType Invisible::invisible_class_; // initialize static member
114 GType Invisible::get_type()
116 return invisible_class_.init().get_type();
119 GType Invisible::get_base_type()
121 return gtk_invisible_get_type();
125 Invisible::Invisible()
127 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
128 Gtk::Widget(Glib::ConstructParams(invisible_class_.init()))
132 Invisible::Invisible(const Glib::RefPtr<Gdk::Screen>& screen)
134 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
135 Gtk::Widget(Glib::ConstructParams(invisible_class_.init(), "screen", Glib::unwrap(screen), (char*) 0))
139 Glib::RefPtr<Gdk::Screen> Invisible::get_screen()
142 Glib::RefPtr<Gdk::Screen> retvalue = Glib::wrap(gtk_invisible_get_screen(gobj()));
145 retvalue->reference(); //The function does not do a ref for us.
149 Glib::RefPtr<const Gdk::Screen> Invisible::get_screen() const
152 Glib::RefPtr<const Gdk::Screen> retvalue = Glib::wrap(gtk_invisible_get_screen(const_cast<GtkInvisible*>(gobj())));
155 retvalue->reference(); //The function does not do a ref for us.
159 void Invisible::set_screen(const Glib::RefPtr<Gdk::Screen>& screen)
161 gtk_invisible_set_screen(gobj(), Glib::unwrap(screen));