1 // Generated by gtkmmproc -- DO NOT MODIFY!
4 #include <atkmm/component.h>
5 #include <atkmm/private/component_p.h>
7 #include <atk/atk-enum-types.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 <atkmm/object.h>
29 #include <atk/atkcomponent.h>
34 } // anonymous namespace
37 GType Glib::Value<Atk::CoordType>::value_type()
39 return atk_coord_type_get_type();
43 GType Glib::Value<Atk::Layer>::value_type()
45 return atk_layer_get_type();
52 Glib::RefPtr<Atk::Component> wrap(AtkComponent* object, bool take_copy)
54 return Glib::RefPtr<Atk::Component>( dynamic_cast<Atk::Component*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
55 //We use dynamic_cast<> in case of multiple inheritance.
65 /* The *_Class implementation: */
67 const Glib::Interface_Class& Component_Class::init()
69 if(!gtype_) // create the GType if necessary
71 // Glib::Interface_Class has to know the interface init function
72 // in order to add interfaces to implementing types.
73 class_init_func_ = &Component_Class::iface_init_function;
75 // We can not derive from another interface, and it is not necessary anyway.
76 gtype_ = atk_component_get_type();
82 void Component_Class::iface_init_function(void* g_iface, void*)
84 BaseClassType *const klass = static_cast<BaseClassType*>(g_iface);
86 //This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect.
87 //This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc
90 #ifdef GLIBMM_VFUNCS_ENABLED
91 klass->add_focus_handler = &add_focus_handler_vfunc_callback;
92 klass->contains = &contains_vfunc_callback;
93 klass->ref_accessible_at_point = &ref_accessible_at_point_vfunc_callback;
94 klass->get_extents = &get_extents_vfunc_callback;
95 klass->get_position = &get_position_vfunc_callback;
96 klass->get_size = &get_size_vfunc_callback;
97 klass->get_layer = &get_layer_vfunc_callback;
98 klass->get_mdi_zorder = &get_mdi_zorder_vfunc_callback;
99 klass->grab_focus = &grab_focus_vfunc_callback;
100 klass->remove_focus_handler = &remove_focus_handler_vfunc_callback;
101 klass->set_extents = &set_extents_vfunc_callback;
102 klass->set_position = &set_position_vfunc_callback;
103 klass->set_size = &set_size_vfunc_callback;
104 #endif //GLIBMM_VFUNCS_ENABLED
106 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
107 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
110 #ifdef GLIBMM_VFUNCS_ENABLED
111 guint Component_Class::add_focus_handler_vfunc_callback(AtkComponent* self, AtkFocusHandler handler)
113 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
114 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
116 // Non-gtkmmproc-generated custom classes implicitly call the default
117 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
118 // generated classes can use this optimisation, which avoids the unnecessary
119 // parameter conversions if there is no possibility of the virtual function
121 if(obj && obj->is_derived_())
123 #ifdef GLIBMM_EXCEPTIONS_ENABLED
124 try // Trap C++ exceptions which would normally be lost because this is a C callback.
126 #endif //GLIBMM_EXCEPTIONS_ENABLED
127 // Call the virtual member method, which derived classes might override.
128 return obj->add_focus_handler_vfunc(handler);
129 #ifdef GLIBMM_EXCEPTIONS_ENABLED
133 Glib::exception_handlers_invoke();
135 #endif //GLIBMM_EXCEPTIONS_ENABLED
139 BaseClassType *const base = static_cast<BaseClassType*>(
140 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
141 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
144 // Call the original underlying C function:
145 if(base && base->add_focus_handler)
146 return (*base->add_focus_handler)(self, handler);
152 gboolean Component_Class::contains_vfunc_callback(AtkComponent* self, gint x, gint y, AtkCoordType coord_type)
154 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
155 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
157 // Non-gtkmmproc-generated custom classes implicitly call the default
158 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
159 // generated classes can use this optimisation, which avoids the unnecessary
160 // parameter conversions if there is no possibility of the virtual function
162 if(obj && obj->is_derived_())
164 #ifdef GLIBMM_EXCEPTIONS_ENABLED
165 try // Trap C++ exceptions which would normally be lost because this is a C callback.
167 #endif //GLIBMM_EXCEPTIONS_ENABLED
168 // Call the virtual member method, which derived classes might override.
169 return static_cast<int>(obj->contains_vfunc(x
171 , ((CoordType)(coord_type))
173 #ifdef GLIBMM_EXCEPTIONS_ENABLED
177 Glib::exception_handlers_invoke();
179 #endif //GLIBMM_EXCEPTIONS_ENABLED
183 BaseClassType *const base = static_cast<BaseClassType*>(
184 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
185 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
188 // Call the original underlying C function:
189 if(base && base->contains)
190 return (*base->contains)(self, x, y, coord_type);
193 typedef gboolean RType;
196 AtkObject* Component_Class::ref_accessible_at_point_vfunc_callback(AtkComponent* self, gint x, gint y, AtkCoordType coord_type)
198 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
199 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
201 // Non-gtkmmproc-generated custom classes implicitly call the default
202 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
203 // generated classes can use this optimisation, which avoids the unnecessary
204 // parameter conversions if there is no possibility of the virtual function
206 if(obj && obj->is_derived_())
208 #ifdef GLIBMM_EXCEPTIONS_ENABLED
209 try // Trap C++ exceptions which would normally be lost because this is a C callback.
211 #endif //GLIBMM_EXCEPTIONS_ENABLED
212 // Call the virtual member method, which derived classes might override.
213 return Glib::unwrap_copy(obj->get_accessible_at_point_vfunc(x
215 , ((CoordType)(coord_type))
217 #ifdef GLIBMM_EXCEPTIONS_ENABLED
221 Glib::exception_handlers_invoke();
223 #endif //GLIBMM_EXCEPTIONS_ENABLED
227 BaseClassType *const base = static_cast<BaseClassType*>(
228 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
229 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
232 // Call the original underlying C function:
233 if(base && base->ref_accessible_at_point)
234 return (*base->ref_accessible_at_point)(self, x, y, coord_type);
237 typedef AtkObject* RType;
240 void Component_Class::get_extents_vfunc_callback(AtkComponent* self, gint* x, gint* y, gint* width, gint* height, AtkCoordType coord_type)
242 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
243 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
245 // Non-gtkmmproc-generated custom classes implicitly call the default
246 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
247 // generated classes can use this optimisation, which avoids the unnecessary
248 // parameter conversions if there is no possibility of the virtual function
250 if(obj && obj->is_derived_())
252 #ifdef GLIBMM_EXCEPTIONS_ENABLED
253 try // Trap C++ exceptions which would normally be lost because this is a C callback.
255 #endif //GLIBMM_EXCEPTIONS_ENABLED
256 // Call the virtual member method, which derived classes might override.
257 obj->get_extents_vfunc(*(x)
261 , ((CoordType)(coord_type))
263 #ifdef GLIBMM_EXCEPTIONS_ENABLED
267 Glib::exception_handlers_invoke();
269 #endif //GLIBMM_EXCEPTIONS_ENABLED
273 BaseClassType *const base = static_cast<BaseClassType*>(
274 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
275 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
278 // Call the original underlying C function:
279 if(base && base->get_extents)
280 (*base->get_extents)(self, x, y, width, height, coord_type);
283 void Component_Class::get_position_vfunc_callback(AtkComponent* self, gint* x, gint* y, AtkCoordType coord_type)
285 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
286 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
288 // Non-gtkmmproc-generated custom classes implicitly call the default
289 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
290 // generated classes can use this optimisation, which avoids the unnecessary
291 // parameter conversions if there is no possibility of the virtual function
293 if(obj && obj->is_derived_())
295 #ifdef GLIBMM_EXCEPTIONS_ENABLED
296 try // Trap C++ exceptions which would normally be lost because this is a C callback.
298 #endif //GLIBMM_EXCEPTIONS_ENABLED
299 // Call the virtual member method, which derived classes might override.
300 obj->get_position_vfunc(*(x)
302 , ((CoordType)(coord_type))
304 #ifdef GLIBMM_EXCEPTIONS_ENABLED
308 Glib::exception_handlers_invoke();
310 #endif //GLIBMM_EXCEPTIONS_ENABLED
314 BaseClassType *const base = static_cast<BaseClassType*>(
315 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
316 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
319 // Call the original underlying C function:
320 if(base && base->get_position)
321 (*base->get_position)(self, x, y, coord_type);
324 void Component_Class::get_size_vfunc_callback(AtkComponent* self, gint* width, gint* height)
326 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
327 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
329 // Non-gtkmmproc-generated custom classes implicitly call the default
330 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
331 // generated classes can use this optimisation, which avoids the unnecessary
332 // parameter conversions if there is no possibility of the virtual function
334 if(obj && obj->is_derived_())
336 #ifdef GLIBMM_EXCEPTIONS_ENABLED
337 try // Trap C++ exceptions which would normally be lost because this is a C callback.
339 #endif //GLIBMM_EXCEPTIONS_ENABLED
340 // Call the virtual member method, which derived classes might override.
341 obj->get_size_vfunc(*(width)
344 #ifdef GLIBMM_EXCEPTIONS_ENABLED
348 Glib::exception_handlers_invoke();
350 #endif //GLIBMM_EXCEPTIONS_ENABLED
354 BaseClassType *const base = static_cast<BaseClassType*>(
355 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
356 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
359 // Call the original underlying C function:
360 if(base && base->get_size)
361 (*base->get_size)(self, width, height);
364 AtkLayer Component_Class::get_layer_vfunc_callback(AtkComponent* self)
366 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
367 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
369 // Non-gtkmmproc-generated custom classes implicitly call the default
370 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
371 // generated classes can use this optimisation, which avoids the unnecessary
372 // parameter conversions if there is no possibility of the virtual function
374 if(obj && obj->is_derived_())
376 #ifdef GLIBMM_EXCEPTIONS_ENABLED
377 try // Trap C++ exceptions which would normally be lost because this is a C callback.
379 #endif //GLIBMM_EXCEPTIONS_ENABLED
380 // Call the virtual member method, which derived classes might override.
381 return ((AtkLayer)(obj->get_layer_vfunc()));
382 #ifdef GLIBMM_EXCEPTIONS_ENABLED
386 Glib::exception_handlers_invoke();
388 #endif //GLIBMM_EXCEPTIONS_ENABLED
392 BaseClassType *const base = static_cast<BaseClassType*>(
393 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
394 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
397 // Call the original underlying C function:
398 if(base && base->get_layer)
399 return (*base->get_layer)(self);
402 typedef AtkLayer RType;
405 gint Component_Class::get_mdi_zorder_vfunc_callback(AtkComponent* self)
407 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
408 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
410 // Non-gtkmmproc-generated custom classes implicitly call the default
411 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
412 // generated classes can use this optimisation, which avoids the unnecessary
413 // parameter conversions if there is no possibility of the virtual function
415 if(obj && obj->is_derived_())
417 #ifdef GLIBMM_EXCEPTIONS_ENABLED
418 try // Trap C++ exceptions which would normally be lost because this is a C callback.
420 #endif //GLIBMM_EXCEPTIONS_ENABLED
421 // Call the virtual member method, which derived classes might override.
422 return obj->get_mdi_zorder_vfunc();
423 #ifdef GLIBMM_EXCEPTIONS_ENABLED
427 Glib::exception_handlers_invoke();
429 #endif //GLIBMM_EXCEPTIONS_ENABLED
433 BaseClassType *const base = static_cast<BaseClassType*>(
434 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
435 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
438 // Call the original underlying C function:
439 if(base && base->get_mdi_zorder)
440 return (*base->get_mdi_zorder)(self);
446 gboolean Component_Class::grab_focus_vfunc_callback(AtkComponent* self)
448 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
449 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
451 // Non-gtkmmproc-generated custom classes implicitly call the default
452 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
453 // generated classes can use this optimisation, which avoids the unnecessary
454 // parameter conversions if there is no possibility of the virtual function
456 if(obj && obj->is_derived_())
458 #ifdef GLIBMM_EXCEPTIONS_ENABLED
459 try // Trap C++ exceptions which would normally be lost because this is a C callback.
461 #endif //GLIBMM_EXCEPTIONS_ENABLED
462 // Call the virtual member method, which derived classes might override.
463 return static_cast<int>(obj->grab_focus_vfunc());
464 #ifdef GLIBMM_EXCEPTIONS_ENABLED
468 Glib::exception_handlers_invoke();
470 #endif //GLIBMM_EXCEPTIONS_ENABLED
474 BaseClassType *const base = static_cast<BaseClassType*>(
475 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
476 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
479 // Call the original underlying C function:
480 if(base && base->grab_focus)
481 return (*base->grab_focus)(self);
484 typedef gboolean RType;
487 void Component_Class::remove_focus_handler_vfunc_callback(AtkComponent* self, guint handler_id)
489 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
490 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
492 // Non-gtkmmproc-generated custom classes implicitly call the default
493 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
494 // generated classes can use this optimisation, which avoids the unnecessary
495 // parameter conversions if there is no possibility of the virtual function
497 if(obj && obj->is_derived_())
499 #ifdef GLIBMM_EXCEPTIONS_ENABLED
500 try // Trap C++ exceptions which would normally be lost because this is a C callback.
502 #endif //GLIBMM_EXCEPTIONS_ENABLED
503 // Call the virtual member method, which derived classes might override.
504 obj->remove_focus_handler_vfunc(handler_id);
505 #ifdef GLIBMM_EXCEPTIONS_ENABLED
509 Glib::exception_handlers_invoke();
511 #endif //GLIBMM_EXCEPTIONS_ENABLED
515 BaseClassType *const base = static_cast<BaseClassType*>(
516 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
517 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
520 // Call the original underlying C function:
521 if(base && base->remove_focus_handler)
522 (*base->remove_focus_handler)(self, handler_id);
525 gboolean Component_Class::set_extents_vfunc_callback(AtkComponent* self, gint x, gint y, gint width, gint height, AtkCoordType coord_type)
527 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
528 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
530 // Non-gtkmmproc-generated custom classes implicitly call the default
531 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
532 // generated classes can use this optimisation, which avoids the unnecessary
533 // parameter conversions if there is no possibility of the virtual function
535 if(obj && obj->is_derived_())
537 #ifdef GLIBMM_EXCEPTIONS_ENABLED
538 try // Trap C++ exceptions which would normally be lost because this is a C callback.
540 #endif //GLIBMM_EXCEPTIONS_ENABLED
541 // Call the virtual member method, which derived classes might override.
542 return static_cast<int>(obj->set_extents_vfunc(x
546 , ((CoordType)(coord_type))
548 #ifdef GLIBMM_EXCEPTIONS_ENABLED
552 Glib::exception_handlers_invoke();
554 #endif //GLIBMM_EXCEPTIONS_ENABLED
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_extents)
565 return (*base->set_extents)(self, x, y, width, height, coord_type);
568 typedef gboolean RType;
571 gboolean Component_Class::set_position_vfunc_callback(AtkComponent* self, gint x, gint y, AtkCoordType coord_type)
573 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
574 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
576 // Non-gtkmmproc-generated custom classes implicitly call the default
577 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
578 // generated classes can use this optimisation, which avoids the unnecessary
579 // parameter conversions if there is no possibility of the virtual function
581 if(obj && obj->is_derived_())
583 #ifdef GLIBMM_EXCEPTIONS_ENABLED
584 try // Trap C++ exceptions which would normally be lost because this is a C callback.
586 #endif //GLIBMM_EXCEPTIONS_ENABLED
587 // Call the virtual member method, which derived classes might override.
588 return static_cast<int>(obj->set_position_vfunc(x
590 , ((CoordType)(coord_type))
592 #ifdef GLIBMM_EXCEPTIONS_ENABLED
596 Glib::exception_handlers_invoke();
598 #endif //GLIBMM_EXCEPTIONS_ENABLED
602 BaseClassType *const base = static_cast<BaseClassType*>(
603 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
604 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
607 // Call the original underlying C function:
608 if(base && base->set_position)
609 return (*base->set_position)(self, x, y, coord_type);
612 typedef gboolean RType;
615 gboolean Component_Class::set_size_vfunc_callback(AtkComponent* self, gint width, gint height)
617 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
618 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
620 // Non-gtkmmproc-generated custom classes implicitly call the default
621 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
622 // generated classes can use this optimisation, which avoids the unnecessary
623 // parameter conversions if there is no possibility of the virtual function
625 if(obj && obj->is_derived_())
627 #ifdef GLIBMM_EXCEPTIONS_ENABLED
628 try // Trap C++ exceptions which would normally be lost because this is a C callback.
630 #endif //GLIBMM_EXCEPTIONS_ENABLED
631 // Call the virtual member method, which derived classes might override.
632 return static_cast<int>(obj->set_size_vfunc(width
635 #ifdef GLIBMM_EXCEPTIONS_ENABLED
639 Glib::exception_handlers_invoke();
641 #endif //GLIBMM_EXCEPTIONS_ENABLED
645 BaseClassType *const base = static_cast<BaseClassType*>(
646 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
647 g_type_interface_peek(G_OBJECT_GET_CLASS(self), CppObjectType::get_type()) // Get the interface.
650 // Call the original underlying C function:
651 if(base && base->set_size)
652 return (*base->set_size)(self, width, height);
655 typedef gboolean RType;
658 #endif //GLIBMM_VFUNCS_ENABLED
660 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
661 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
664 Glib::ObjectBase* Component_Class::wrap_new(GObject* object)
666 return new Component((AtkComponent*)(object));
670 /* The implementation: */
672 Component::Component()
674 Glib::Interface(component_class_.init())
677 Component::Component(AtkComponent* castitem)
679 Glib::Interface((GObject*)(castitem))
682 Component::~Component()
686 void Component::add_interface(GType gtype_implementer)
688 component_class_.init().add_interface(gtype_implementer);
691 Component::CppClassType Component::component_class_; // initialize static member
693 GType Component::get_type()
695 return component_class_.init().get_type();
698 GType Component::get_base_type()
700 return atk_component_get_type();
704 guint Component::add_focus_handler(AtkFocusHandler handler)
706 return atk_component_add_focus_handler(gobj(), handler);
709 bool Component::contains(int x, int y, CoordType coord_type) const
711 return atk_component_contains(const_cast<AtkComponent*>(gobj()), x, y, ((AtkCoordType)(coord_type)));
714 Glib::RefPtr<Atk::Object> Component::get_accessible_at_point(int x, int y, CoordType coord_type)
716 return Glib::wrap(atk_component_ref_accessible_at_point(gobj(), x, y, ((AtkCoordType)(coord_type))));
719 void Component::get_extents(int& x, int& y, int& width, int& height, CoordType coord_type) const
721 atk_component_get_extents(const_cast<AtkComponent*>(gobj()), &x, &y, &width, &height, ((AtkCoordType)(coord_type)));
724 void Component::get_position(int& x, int& y, CoordType coord_type) const
726 atk_component_get_position(const_cast<AtkComponent*>(gobj()), &x, &y, ((AtkCoordType)(coord_type)));
729 void Component::get_size(int& width, int& height) const
731 atk_component_get_size(const_cast<AtkComponent*>(gobj()), &width, &height);
734 Layer Component::get_layer() const
736 return ((Layer)(atk_component_get_layer(const_cast<AtkComponent*>(gobj()))));
739 int Component::get_mdi_zorder() const
741 return atk_component_get_mdi_zorder(const_cast<AtkComponent*>(gobj()));
744 bool Component::grab_focus()
746 return atk_component_grab_focus(gobj());
749 void Component::remove_focus_handler(guint handler_id)
751 atk_component_remove_focus_handler(gobj(), handler_id);
754 bool Component::set_extents(int x, int y, int width, int height, CoordType coord_type)
756 return atk_component_set_extents(gobj(), x, y, width, height, ((AtkCoordType)(coord_type)));
759 bool Component::set_position(int x, int y, CoordType coord_type)
761 return atk_component_set_position(gobj(), x, y, ((AtkCoordType)(coord_type)));
764 bool Component::set_size(int width, int height)
766 return atk_component_set_size(gobj(), width, height);
770 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
771 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
773 #ifdef GLIBMM_VFUNCS_ENABLED
774 guint Atk::Component::add_focus_handler_vfunc(AtkFocusHandler handler)
776 BaseClassType *const base = static_cast<BaseClassType*>(
777 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
778 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
781 if(base && base->add_focus_handler)
782 return (*base->add_focus_handler)(gobj(),handler);
787 bool Atk::Component::contains_vfunc(int x, int y, CoordType coord_type) const
789 BaseClassType *const base = static_cast<BaseClassType*>(
790 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
791 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
794 if(base && base->contains)
795 return (*base->contains)(const_cast<AtkComponent*>(gobj()),x,y,((AtkCoordType)(coord_type)));
800 Glib::RefPtr<Atk::Object> Atk::Component::get_accessible_at_point_vfunc(int x, int y, CoordType coord_type)
802 BaseClassType *const base = static_cast<BaseClassType*>(
803 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
804 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
807 if(base && base->ref_accessible_at_point)
808 return Glib::wrap((*base->ref_accessible_at_point)(gobj(),x,y,((AtkCoordType)(coord_type))));
810 typedef Glib::RefPtr<Atk::Object> RType;
813 void Atk::Component::get_extents_vfunc(int& x, int& y, int& width, int& height, CoordType coord_type) const
815 BaseClassType *const base = static_cast<BaseClassType*>(
816 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
817 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
820 if(base && base->get_extents)
821 (*base->get_extents)(const_cast<AtkComponent*>(gobj()),&x,&y,&width,&height,((AtkCoordType)(coord_type)));
823 void Atk::Component::get_position_vfunc(int& x, int& y, CoordType coord_type) const
825 BaseClassType *const base = static_cast<BaseClassType*>(
826 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
827 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
830 if(base && base->get_position)
831 (*base->get_position)(const_cast<AtkComponent*>(gobj()),&x,&y,((AtkCoordType)(coord_type)));
833 void Atk::Component::get_size_vfunc(int& width, int& height) const
835 BaseClassType *const base = static_cast<BaseClassType*>(
836 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
837 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
840 if(base && base->get_size)
841 (*base->get_size)(const_cast<AtkComponent*>(gobj()),&width,&height);
843 Layer Atk::Component::get_layer_vfunc() const
845 BaseClassType *const base = static_cast<BaseClassType*>(
846 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
847 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
850 if(base && base->get_layer)
851 return ((Layer)((*base->get_layer)(const_cast<AtkComponent*>(gobj()))));
856 int Atk::Component::get_mdi_zorder_vfunc() const
858 BaseClassType *const base = static_cast<BaseClassType*>(
859 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
860 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
863 if(base && base->get_mdi_zorder)
864 return (*base->get_mdi_zorder)(const_cast<AtkComponent*>(gobj()));
869 bool Atk::Component::grab_focus_vfunc()
871 BaseClassType *const base = static_cast<BaseClassType*>(
872 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
873 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
876 if(base && base->grab_focus)
877 return (*base->grab_focus)(gobj());
882 void Atk::Component::remove_focus_handler_vfunc(guint handler_id)
884 BaseClassType *const base = static_cast<BaseClassType*>(
885 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
886 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
889 if(base && base->remove_focus_handler)
890 (*base->remove_focus_handler)(gobj(),handler_id);
892 bool Atk::Component::set_extents_vfunc(int x, int y, int width, int height, CoordType coord_type)
894 BaseClassType *const base = static_cast<BaseClassType*>(
895 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
896 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
899 if(base && base->set_extents)
900 return (*base->set_extents)(gobj(),x,y,width,height,((AtkCoordType)(coord_type)));
905 bool Atk::Component::set_position_vfunc(int x, int y, CoordType coord_type)
907 BaseClassType *const base = static_cast<BaseClassType*>(
908 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
909 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
912 if(base && base->set_position)
913 return (*base->set_position)(gobj(),x,y,((AtkCoordType)(coord_type)));
918 bool Atk::Component::set_size_vfunc(int width, int height)
920 BaseClassType *const base = static_cast<BaseClassType*>(
921 g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface).
922 g_type_interface_peek(G_OBJECT_GET_CLASS(gobject_), CppObjectType::get_type()) // Get the interface.
925 if(base && base->set_size)
926 return (*base->set_size)(gobj(),width,height);
931 #endif //GLIBMM_VFUNCS_ENABLED