1 // Generated by gmmproc 2.56.0 -- DO NOT MODIFY!
2 
3 
4 #include <glibmm.h>
5 
6 #include <atkmm/objectaccessible.h>
7 #include <atkmm/private/objectaccessible_p.h>
8 
9 
10 // -*- c++ -*-
11 /* $Id: objectaccessible.ccg,v 1.1 2003/01/21 13:37:06 murrayc Exp $ */
12 
13 /*
14  *
15  * Copyright 1998-2002 The gtkmm Development Team
16  *
17  * This library is free software; you can redistribute it and/or
18  * modify it under the terms of the GNU Lesser General Public
19  * License as published by the Free Software Foundation; either
20  * version 2.1 of the License, or (at your option) any later version.
21  *
22  * This library is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25  * Lesser General Public License for more details.
26  *
27  * You should have received a copy of the GNU Lesser General Public
28  * License along with this library; if not, write to the Free
29  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30  */
31 
32 #include <atk/atkgobjectaccessible.h>
33 namespace
34 {
35 } // anonymous namespace
36 
37 
38 namespace Glib
39 {
40 
wrap(AtkGObjectAccessible * object,bool take_copy)41 Glib::RefPtr<Atk::ObjectAccessible> wrap(AtkGObjectAccessible* object, bool take_copy)
42 {
43   return Glib::RefPtr<Atk::ObjectAccessible>( dynamic_cast<Atk::ObjectAccessible*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
44   //We use dynamic_cast<> in case of multiple inheritance.
45 }
46 
47 } /* namespace Glib */
48 
49 
50 namespace Atk
51 {
52 
53 
54 /* The *_Class implementation: */
55 
init()56 const Glib::Class& ObjectAccessible_Class::init()
57 {
58   if(!gtype_) // create the GType if necessary
59   {
60     // Glib::Class has to know the class init function to clone custom types.
61     class_init_func_ = &ObjectAccessible_Class::class_init_function;
62 
63     // This is actually just optimized away, apparently with no harm.
64     // Make sure that the parent type has been created.
65     //CppClassParent::CppObjectType::get_type();
66 
67     // Create the wrapper type, with the same class/instance size as the base type.
68     register_derived_type(atk_gobject_accessible_get_type());
69 
70     // Add derived versions of interfaces, if the C type implements any interfaces:
71 
72   }
73 
74   return *this;
75 }
76 
77 
class_init_function(void * g_class,void * class_data)78 void ObjectAccessible_Class::class_init_function(void* g_class, void* class_data)
79 {
80   const auto klass = static_cast<BaseClassType*>(g_class);
81   CppClassParent::class_init_function(klass, class_data);
82 
83 
84 }
85 
86 
wrap_new(GObject * object)87 Glib::ObjectBase* ObjectAccessible_Class::wrap_new(GObject* object)
88 {
89   return new ObjectAccessible((AtkGObjectAccessible*)object);
90 }
91 
92 
93 /* The implementation: */
94 
gobj_copy()95 AtkGObjectAccessible* ObjectAccessible::gobj_copy()
96 {
97   reference();
98   return gobj();
99 }
100 
ObjectAccessible(const Glib::ConstructParams & construct_params)101 ObjectAccessible::ObjectAccessible(const Glib::ConstructParams& construct_params)
102 :
103   Atk::Object(construct_params)
104 {
105 
106 }
107 
ObjectAccessible(AtkGObjectAccessible * castitem)108 ObjectAccessible::ObjectAccessible(AtkGObjectAccessible* castitem)
109 :
110   Atk::Object((AtkObject*)(castitem))
111 {}
112 
113 
ObjectAccessible(ObjectAccessible && src)114 ObjectAccessible::ObjectAccessible(ObjectAccessible&& src) noexcept
115 : Atk::Object(std::move(src))
116 {}
117 
operator =(ObjectAccessible && src)118 ObjectAccessible& ObjectAccessible::operator=(ObjectAccessible&& src) noexcept
119 {
120   Atk::Object::operator=(std::move(src));
121   return *this;
122 }
123 
124 
~ObjectAccessible()125 ObjectAccessible::~ObjectAccessible() noexcept
126 {}
127 
128 
129 ObjectAccessible::CppClassType ObjectAccessible::objectaccessible_class_; // initialize static member
130 
get_type()131 GType ObjectAccessible::get_type()
132 {
133   return objectaccessible_class_.init().get_type();
134 }
135 
136 
get_base_type()137 GType ObjectAccessible::get_base_type()
138 {
139   return atk_gobject_accessible_get_type();
140 }
141 
142 
get_object()143 Glib::RefPtr<Glib::Object> ObjectAccessible::get_object()
144 {
145   Glib::RefPtr<Glib::Object> retvalue = Glib::wrap(atk_gobject_accessible_get_object(gobj()));
146   if(retvalue)
147     retvalue->reference(); //The function does not do a ref for us.
148   return retvalue;
149 }
150 
get_object() const151 Glib::RefPtr<const Glib::Object> ObjectAccessible::get_object() const
152 {
153   return const_cast<ObjectAccessible*>(this)->get_object();
154 }
155 
for_object(const Glib::RefPtr<Glib::Object> & obj)156 Glib::RefPtr<Atk::Object> ObjectAccessible::for_object(const Glib::RefPtr<Glib::Object>& obj)
157 {
158 
159   Glib::RefPtr<Atk::Object> retvalue = Glib::wrap(atk_gobject_accessible_for_object(Glib::unwrap(obj)));
160   if(retvalue)
161     retvalue->reference(); //The function does not do a ref for us
162   return retvalue;
163 }
164 
for_object(const Glib::RefPtr<const Glib::Object> & obj)165 Glib::RefPtr<const Atk::Object> ObjectAccessible::for_object(const Glib::RefPtr<const Glib::Object>& obj)
166 {
167 
168   Glib::RefPtr<const Atk::Object> retvalue = Glib::wrap(atk_gobject_accessible_for_object(const_cast<GObject*>(Glib::unwrap<Glib::Object>(obj))));
169   if(retvalue)
170     retvalue->reference(); //The function does not do a ref for us
171   return retvalue;
172 }
173 
174 
175 } // namespace Atk
176 
177 
178