Install ardour as a binary, a script and a set of shared
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / invisible.cc
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2
3 #include <gtkmm/invisible.h>
4 #include <gtkmm/private/invisible_p.h>
5
6 // -*- c++ -*-
7 /* $Id$ */
8
9 /* 
10  *
11  * Copyright 1998-2002 The gtkmm Development Team
12  *
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.
17  *
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.
22  *
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.
26  */
27
28 #include <gtk/gtkinvisible.h>
29
30 namespace Gtk
31 {
32
33
34 }
35
36
37 namespace
38 {
39 } // anonymous namespace
40
41
42 namespace Glib
43 {
44
45 Gtk::Invisible* wrap(GtkInvisible* object, bool take_copy)
46 {
47   return dynamic_cast<Gtk::Invisible *> (Glib::wrap_auto ((GObject*)(object), take_copy));
48 }
49
50 } /* namespace Glib */
51
52 namespace Gtk
53 {
54
55
56 /* The *_Class implementation: */
57
58 const Glib::Class& Invisible_Class::init()
59 {
60   if(!gtype_) // create the GType if necessary
61   {
62     // Glib::Class has to know the class init function to clone custom types.
63     class_init_func_ = &Invisible_Class::class_init_function;
64
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();
68
69     // Create the wrapper type, with the same class/instance size as the base type.
70     register_derived_type(gtk_invisible_get_type());
71
72     // Add derived versions of interfaces, if the C type implements any interfaces:
73   }
74
75   return *this;
76 }
77
78 void Invisible_Class::class_init_function(void* g_class, void* class_data)
79 {
80   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
81   CppClassParent::class_init_function(klass, class_data);
82
83 }
84
85
86 Glib::ObjectBase* Invisible_Class::wrap_new(GObject* o)
87 {
88   return manage(new Invisible((GtkInvisible*)(o)));
89
90 }
91
92
93 /* The implementation: */
94
95 Invisible::Invisible(const Glib::ConstructParams& construct_params)
96 :
97   Gtk::Widget(construct_params)
98 {
99   }
100
101 Invisible::Invisible(GtkInvisible* castitem)
102 :
103   Gtk::Widget((GtkWidget*)(castitem))
104 {
105   }
106
107 Invisible::~Invisible()
108 {
109   destroy_();
110 }
111
112 Invisible::CppClassType Invisible::invisible_class_; // initialize static member
113
114 GType Invisible::get_type()
115 {
116   return invisible_class_.init().get_type();
117 }
118
119 GType Invisible::get_base_type()
120 {
121   return gtk_invisible_get_type();
122 }
123
124
125 Invisible::Invisible()
126 :
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()))
129 {
130   }
131
132 Invisible::Invisible(const Glib::RefPtr<Gdk::Screen>& screen)
133 :
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))
136 {
137   }
138
139 Glib::RefPtr<Gdk::Screen> Invisible::get_screen()
140 {
141
142   Glib::RefPtr<Gdk::Screen> retvalue = Glib::wrap(gtk_invisible_get_screen(gobj()));
143
144   if(retvalue)
145     retvalue->reference(); //The function does not do a ref for us.
146   return retvalue;
147 }
148
149 Glib::RefPtr<const Gdk::Screen> Invisible::get_screen() const
150 {
151
152   Glib::RefPtr<const Gdk::Screen> retvalue = Glib::wrap(gtk_invisible_get_screen(const_cast<GtkInvisible*>(gobj())));
153
154   if(retvalue)
155     retvalue->reference(); //The function does not do a ref for us.
156   return retvalue;
157 }
158
159 void Invisible::set_screen(const Glib::RefPtr<Gdk::Screen>& screen)
160 {
161   gtk_invisible_set_screen(gobj(), Glib::unwrap(screen));
162 }
163
164
165 } // namespace Gtk
166
167