1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include <atkmm/component.h>
4 #include <atkmm/private/component_p.h>
6 #include <atk/atk-enum-types.h>
10 /* Copyright 1998-2002 The gtkmm Development Team
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
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 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this library; if not, write to the Free
24 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #include <atkmm/object.h>
28 #include <atk/atkcomponent.h>
33 } // anonymous namespace
36 GType Glib::Value<Atk::CoordType>::value_type()
38 return atk_coord_type_get_type();
42 GType Glib::Value<Atk::Layer>::value_type()
44 return atk_layer_get_type();
51 Glib::RefPtr<Atk::Component> wrap(AtkComponent* object, bool take_copy)
53 return Glib::RefPtr<Atk::Component>( dynamic_cast<Atk::Component*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
54 //We use dynamic_cast<> in case of multiple inheritance.
64 /* The *_Class implementation: */
66 const Glib::Interface_Class& Component_Class::init()
68 if(!gtype_) // create the GType if necessary
70 // Glib::Interface_Class has to know the interface init function
71 // in order to add interfaces to implementing types.
72 class_init_func_ = &Component_Class::iface_init_function;
74 // We can not derive from another interface, and it is not necessary anyway.
75 gtype_ = atk_component_get_type();
81 void Component_Class::iface_init_function(void* g_iface, void*)
83 BaseClassType *const klass = static_cast<BaseClassType*>(g_iface);
85 //This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect.
86 //This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc
89 klass->add_focus_handler = &add_focus_handler_vfunc_callback;
90 klass->contains = &contains_vfunc_callback;
91 klass->ref_accessible_at_point = &ref_accessible_at_point_vfunc_callback;
92 klass->get_extents = &get_extents_vfunc_callback;
93 klass->get_position = &get_position_vfunc_callback;
94 klass->get_size = &get_size_vfunc_callback;
95 klass->get_layer = &get_layer_vfunc_callback;
96 klass->get_mdi_zorder = &get_mdi_zorder_vfunc_callback;
97 klass->grab_focus = &grab_focus_vfunc_callback;
98 klass->remove_focus_handler = &remove_focus_handler_vfunc_callback;
99 klass->set_extents = &set_extents_vfunc_callback;
100 klass->set_position = &set_position_vfunc_callback;
101 klass->set_size = &set_size_vfunc_callback;
104 guint Component_Class::add_focus_handler_vfunc_callback(AtkComponent* self, AtkFocusHandler handler)
106 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
107 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
109 // Non-gtkmmproc-generated custom classes implicitly call the default
110 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
111 // generated classes can use this optimisation, which avoids the unnecessary
112 // parameter conversions if there is no possibility of the virtual function
114 if(obj && obj->is_derived_())
116 try // Trap C++ exceptions which would normally be lost because this is a C callback.
118 // Call the virtual member method, which derived classes might override.
119 return obj->add_focus_handler_vfunc(handler);
123 Glib::exception_handlers_invoke();
128 BaseClassType *const base = static_cast<BaseClassType*>(
129 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
130 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
133 // Call the original underlying C function:
134 if(base && base->add_focus_handler)
135 return (*base->add_focus_handler)(self, handler);
142 gboolean Component_Class::contains_vfunc_callback(AtkComponent* self, gint x, gint y, AtkCoordType coord_type)
144 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
145 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
147 // Non-gtkmmproc-generated custom classes implicitly call the default
148 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
149 // generated classes can use this optimisation, which avoids the unnecessary
150 // parameter conversions if there is no possibility of the virtual function
152 if(obj && obj->is_derived_())
154 try // Trap C++ exceptions which would normally be lost because this is a C callback.
156 // Call the virtual member method, which derived classes might override.
157 return static_cast<int>(obj->contains_vfunc(x
159 , ((CoordType)(coord_type))
164 Glib::exception_handlers_invoke();
169 BaseClassType *const base = static_cast<BaseClassType*>(
170 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
171 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
174 // Call the original underlying C function:
175 if(base && base->contains)
176 return (*base->contains)(self, x, y, coord_type);
179 typedef gboolean RType;
183 AtkObject* Component_Class::ref_accessible_at_point_vfunc_callback(AtkComponent* self, gint x, gint y, AtkCoordType coord_type)
185 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
186 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
188 // Non-gtkmmproc-generated custom classes implicitly call the default
189 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
190 // generated classes can use this optimisation, which avoids the unnecessary
191 // parameter conversions if there is no possibility of the virtual function
193 if(obj && obj->is_derived_())
195 try // Trap C++ exceptions which would normally be lost because this is a C callback.
197 // Call the virtual member method, which derived classes might override.
198 return Glib::unwrap_copy(obj->get_accessible_at_point_vfunc(x
200 , ((CoordType)(coord_type))
205 Glib::exception_handlers_invoke();
210 BaseClassType *const base = static_cast<BaseClassType*>(
211 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
212 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
215 // Call the original underlying C function:
216 if(base && base->ref_accessible_at_point)
217 return (*base->ref_accessible_at_point)(self, x, y, coord_type);
220 typedef AtkObject* RType;
224 void Component_Class::get_extents_vfunc_callback(AtkComponent* self, gint* x, gint* y, gint* width, gint* height, AtkCoordType coord_type)
226 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
227 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
229 // Non-gtkmmproc-generated custom classes implicitly call the default
230 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
231 // generated classes can use this optimisation, which avoids the unnecessary
232 // parameter conversions if there is no possibility of the virtual function
234 if(obj && obj->is_derived_())
236 try // Trap C++ exceptions which would normally be lost because this is a C callback.
238 // Call the virtual member method, which derived classes might override.
239 obj->get_extents_vfunc(*(x)
243 , ((CoordType)(coord_type))
248 Glib::exception_handlers_invoke();
253 BaseClassType *const base = static_cast<BaseClassType*>(
254 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
255 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
258 // Call the original underlying C function:
259 if(base && base->get_extents)
260 (*base->get_extents)(self, x, y, width, height, coord_type);
264 void Component_Class::get_position_vfunc_callback(AtkComponent* self, gint* x, gint* y, AtkCoordType coord_type)
266 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
267 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
269 // Non-gtkmmproc-generated custom classes implicitly call the default
270 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
271 // generated classes can use this optimisation, which avoids the unnecessary
272 // parameter conversions if there is no possibility of the virtual function
274 if(obj && obj->is_derived_())
276 try // Trap C++ exceptions which would normally be lost because this is a C callback.
278 // Call the virtual member method, which derived classes might override.
279 obj->get_position_vfunc(*(x)
281 , ((CoordType)(coord_type))
286 Glib::exception_handlers_invoke();
291 BaseClassType *const base = static_cast<BaseClassType*>(
292 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
293 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
296 // Call the original underlying C function:
297 if(base && base->get_position)
298 (*base->get_position)(self, x, y, coord_type);
302 void Component_Class::get_size_vfunc_callback(AtkComponent* self, gint* width, gint* height)
304 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
305 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
307 // Non-gtkmmproc-generated custom classes implicitly call the default
308 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
309 // generated classes can use this optimisation, which avoids the unnecessary
310 // parameter conversions if there is no possibility of the virtual function
312 if(obj && obj->is_derived_())
314 try // Trap C++ exceptions which would normally be lost because this is a C callback.
316 // Call the virtual member method, which derived classes might override.
317 obj->get_size_vfunc(*(width)
323 Glib::exception_handlers_invoke();
328 BaseClassType *const base = static_cast<BaseClassType*>(
329 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
330 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
333 // Call the original underlying C function:
334 if(base && base->get_size)
335 (*base->get_size)(self, width, height);
339 AtkLayer Component_Class::get_layer_vfunc_callback(AtkComponent* self)
341 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
342 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
344 // Non-gtkmmproc-generated custom classes implicitly call the default
345 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
346 // generated classes can use this optimisation, which avoids the unnecessary
347 // parameter conversions if there is no possibility of the virtual function
349 if(obj && obj->is_derived_())
351 try // Trap C++ exceptions which would normally be lost because this is a C callback.
353 // Call the virtual member method, which derived classes might override.
354 return ((AtkLayer)(obj->get_layer_vfunc()));
358 Glib::exception_handlers_invoke();
363 BaseClassType *const base = static_cast<BaseClassType*>(
364 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
365 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
368 // Call the original underlying C function:
369 if(base && base->get_layer)
370 return (*base->get_layer)(self);
373 typedef AtkLayer RType;
377 gint Component_Class::get_mdi_zorder_vfunc_callback(AtkComponent* self)
379 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
380 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
382 // Non-gtkmmproc-generated custom classes implicitly call the default
383 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
384 // generated classes can use this optimisation, which avoids the unnecessary
385 // parameter conversions if there is no possibility of the virtual function
387 if(obj && obj->is_derived_())
389 try // Trap C++ exceptions which would normally be lost because this is a C callback.
391 // Call the virtual member method, which derived classes might override.
392 return obj->get_mdi_zorder_vfunc();
396 Glib::exception_handlers_invoke();
401 BaseClassType *const base = static_cast<BaseClassType*>(
402 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
403 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
406 // Call the original underlying C function:
407 if(base && base->get_mdi_zorder)
408 return (*base->get_mdi_zorder)(self);
415 gboolean Component_Class::grab_focus_vfunc_callback(AtkComponent* self)
417 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
418 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
420 // Non-gtkmmproc-generated custom classes implicitly call the default
421 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
422 // generated classes can use this optimisation, which avoids the unnecessary
423 // parameter conversions if there is no possibility of the virtual function
425 if(obj && obj->is_derived_())
427 try // Trap C++ exceptions which would normally be lost because this is a C callback.
429 // Call the virtual member method, which derived classes might override.
430 return static_cast<int>(obj->grab_focus_vfunc());
434 Glib::exception_handlers_invoke();
439 BaseClassType *const base = static_cast<BaseClassType*>(
440 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
441 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
444 // Call the original underlying C function:
445 if(base && base->grab_focus)
446 return (*base->grab_focus)(self);
449 typedef gboolean RType;
453 void Component_Class::remove_focus_handler_vfunc_callback(AtkComponent* self, guint handler_id)
455 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
456 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
458 // Non-gtkmmproc-generated custom classes implicitly call the default
459 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
460 // generated classes can use this optimisation, which avoids the unnecessary
461 // parameter conversions if there is no possibility of the virtual function
463 if(obj && obj->is_derived_())
465 try // Trap C++ exceptions which would normally be lost because this is a C callback.
467 // Call the virtual member method, which derived classes might override.
468 obj->remove_focus_handler_vfunc(handler_id);
472 Glib::exception_handlers_invoke();
477 BaseClassType *const base = static_cast<BaseClassType*>(
478 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
479 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
482 // Call the original underlying C function:
483 if(base && base->remove_focus_handler)
484 (*base->remove_focus_handler)(self, handler_id);
488 gboolean Component_Class::set_extents_vfunc_callback(AtkComponent* self, gint x, gint y, gint width, gint height, AtkCoordType coord_type)
490 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
491 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
493 // Non-gtkmmproc-generated custom classes implicitly call the default
494 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
495 // generated classes can use this optimisation, which avoids the unnecessary
496 // parameter conversions if there is no possibility of the virtual function
498 if(obj && obj->is_derived_())
500 try // Trap C++ exceptions which would normally be lost because this is a C callback.
502 // Call the virtual member method, which derived classes might override.
503 return static_cast<int>(obj->set_extents_vfunc(x
507 , ((CoordType)(coord_type))
512 Glib::exception_handlers_invoke();
517 BaseClassType *const base = static_cast<BaseClassType*>(
518 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
519 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
522 // Call the original underlying C function:
523 if(base && base->set_extents)
524 return (*base->set_extents)(self, x, y, width, height, coord_type);
527 typedef gboolean RType;
531 gboolean Component_Class::set_position_vfunc_callback(AtkComponent* self, gint x, gint y, AtkCoordType coord_type)
533 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
534 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
536 // Non-gtkmmproc-generated custom classes implicitly call the default
537 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
538 // generated classes can use this optimisation, which avoids the unnecessary
539 // parameter conversions if there is no possibility of the virtual function
541 if(obj && obj->is_derived_())
543 try // Trap C++ exceptions which would normally be lost because this is a C callback.
545 // Call the virtual member method, which derived classes might override.
546 return static_cast<int>(obj->set_position_vfunc(x
548 , ((CoordType)(coord_type))
553 Glib::exception_handlers_invoke();
558 BaseClassType *const base = static_cast<BaseClassType*>(
559 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
560 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
563 // Call the original underlying C function:
564 if(base && base->set_position)
565 return (*base->set_position)(self, x, y, coord_type);
568 typedef gboolean RType;
572 gboolean Component_Class::set_size_vfunc_callback(AtkComponent* self, gint width, gint height)
574 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
575 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
577 // Non-gtkmmproc-generated custom classes implicitly call the default
578 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
579 // generated classes can use this optimisation, which avoids the unnecessary
580 // parameter conversions if there is no possibility of the virtual function
582 if(obj && obj->is_derived_())
584 try // Trap C++ exceptions which would normally be lost because this is a C callback.
586 // Call the virtual member method, which derived classes might override.
587 return static_cast<int>(obj->set_size_vfunc(width
593 Glib::exception_handlers_invoke();
598 BaseClassType *const base = static_cast<BaseClassType*>(
599 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
600 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
603 // Call the original underlying C function:
604 if(base && base->set_size)
605 return (*base->set_size)(self, width, height);
608 typedef gboolean RType;
613 Glib::ObjectBase* Component_Class::wrap_new(GObject* object)
615 return new Component((AtkComponent*)(object));
619 /* The implementation: */
621 Component::Component()
623 Glib::Interface(component_class_.init())
626 Component::Component(AtkComponent* castitem)
628 Glib::Interface((GObject*)(castitem))
631 Component::~Component()
635 void Component::add_interface(GType gtype_implementer)
637 component_class_.init().add_interface(gtype_implementer);
640 Component::CppClassType Component::component_class_; // initialize static member
642 GType Component::get_type()
644 return component_class_.init().get_type();
647 GType Component::get_base_type()
649 return atk_component_get_type();
653 guint Component::add_focus_handler(AtkFocusHandler handler)
655 return atk_component_add_focus_handler(gobj(), handler);
658 bool Component::contains(int x, int y, CoordType coord_type) const
660 return atk_component_contains(const_cast<AtkComponent*>(gobj()), x, y, ((AtkCoordType)(coord_type)));
663 Glib::RefPtr<Atk::Object> Component::get_accessible_at_point(int x, int y, CoordType coord_type)
665 return Glib::wrap(atk_component_ref_accessible_at_point(gobj(), x, y, ((AtkCoordType)(coord_type))));
668 void Component::get_extents(int& x, int& y, int& width, int& height, CoordType coord_type) const
670 atk_component_get_extents(const_cast<AtkComponent*>(gobj()), &x, &y, &width, &height, ((AtkCoordType)(coord_type)));
673 void Component::get_position(int& x, int& y, CoordType coord_type) const
675 atk_component_get_position(const_cast<AtkComponent*>(gobj()), &x, &y, ((AtkCoordType)(coord_type)));
678 void Component::get_size(int& width, int& height) const
680 atk_component_get_size(const_cast<AtkComponent*>(gobj()), &width, &height);
683 Layer Component::get_layer() const
685 return ((Layer)(atk_component_get_layer(const_cast<AtkComponent*>(gobj()))));
688 int Component::get_mdi_zorder() const
690 return atk_component_get_mdi_zorder(const_cast<AtkComponent*>(gobj()));
693 bool Component::grab_focus()
695 return atk_component_grab_focus(gobj());
698 void Component::remove_focus_handler(guint handler_id)
700 atk_component_remove_focus_handler(gobj(), handler_id);
703 bool Component::set_extents(int x, int y, int width, int height, CoordType coord_type)
705 return atk_component_set_extents(gobj(), x, y, width, height, ((AtkCoordType)(coord_type)));
708 bool Component::set_position(int x, int y, CoordType coord_type)
710 return atk_component_set_position(gobj(), x, y, ((AtkCoordType)(coord_type)));
713 bool Component::set_size(int width, int height)
715 return atk_component_set_size(gobj(), width, height);
719 guint Atk::Component::add_focus_handler_vfunc(AtkFocusHandler handler)
721 BaseClassType *const base = static_cast<BaseClassType*>(
722 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
723 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
726 if(base && base->add_focus_handler)
727 return (*base->add_focus_handler)(gobj(),handler);
733 bool Atk::Component::contains_vfunc(int x, int y, CoordType coord_type) const
735 BaseClassType *const base = static_cast<BaseClassType*>(
736 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
737 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
740 if(base && base->contains)
741 return (*base->contains)(const_cast<AtkComponent*>(gobj()),x,y,((AtkCoordType)(coord_type)));
747 Glib::RefPtr<Atk::Object> Atk::Component::get_accessible_at_point_vfunc(int x, int y, CoordType coord_type)
749 BaseClassType *const base = static_cast<BaseClassType*>(
750 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
751 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
754 if(base && base->ref_accessible_at_point)
755 return Glib::wrap((*base->ref_accessible_at_point)(gobj(),x,y,((AtkCoordType)(coord_type))));
757 typedef Glib::RefPtr<Atk::Object> RType;
761 void Atk::Component::get_extents_vfunc(int& x, int& y, int& width, int& height, CoordType coord_type) const
763 BaseClassType *const base = static_cast<BaseClassType*>(
764 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
765 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
768 if(base && base->get_extents)
769 (*base->get_extents)(const_cast<AtkComponent*>(gobj()),&x,&y,&width,&height,((AtkCoordType)(coord_type)));
772 void Atk::Component::get_position_vfunc(int& x, int& y, CoordType coord_type) const
774 BaseClassType *const base = static_cast<BaseClassType*>(
775 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
776 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
779 if(base && base->get_position)
780 (*base->get_position)(const_cast<AtkComponent*>(gobj()),&x,&y,((AtkCoordType)(coord_type)));
783 void Atk::Component::get_size_vfunc(int& width, int& height) const
785 BaseClassType *const base = static_cast<BaseClassType*>(
786 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
787 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
790 if(base && base->get_size)
791 (*base->get_size)(const_cast<AtkComponent*>(gobj()),&width,&height);
794 Layer Atk::Component::get_layer_vfunc() const
796 BaseClassType *const base = static_cast<BaseClassType*>(
797 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
798 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
801 if(base && base->get_layer)
802 return ((Layer)((*base->get_layer)(const_cast<AtkComponent*>(gobj()))));
808 int Atk::Component::get_mdi_zorder_vfunc() const
810 BaseClassType *const base = static_cast<BaseClassType*>(
811 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
812 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
815 if(base && base->get_mdi_zorder)
816 return (*base->get_mdi_zorder)(const_cast<AtkComponent*>(gobj()));
822 bool Atk::Component::grab_focus_vfunc()
824 BaseClassType *const base = static_cast<BaseClassType*>(
825 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
826 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
829 if(base && base->grab_focus)
830 return (*base->grab_focus)(gobj());
836 void Atk::Component::remove_focus_handler_vfunc(guint handler_id)
838 BaseClassType *const base = static_cast<BaseClassType*>(
839 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
840 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
843 if(base && base->remove_focus_handler)
844 (*base->remove_focus_handler)(gobj(),handler_id);
847 bool Atk::Component::set_extents_vfunc(int x, int y, int width, int height, CoordType coord_type)
849 BaseClassType *const base = static_cast<BaseClassType*>(
850 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
851 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
854 if(base && base->set_extents)
855 return (*base->set_extents)(gobj(),x,y,width,height,((AtkCoordType)(coord_type)));
861 bool Atk::Component::set_position_vfunc(int x, int y, CoordType coord_type)
863 BaseClassType *const base = static_cast<BaseClassType*>(
864 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
865 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
868 if(base && base->set_position)
869 return (*base->set_position)(gobj(),x,y,((AtkCoordType)(coord_type)));
875 bool Atk::Component::set_size_vfunc(int width, int height)
877 BaseClassType *const base = static_cast<BaseClassType*>(
878 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
879 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
882 if(base && base->set_size)
883 return (*base->set_size)(gobj(),width,height);