1 // Generated by gmmproc 2.56.0 -- DO NOT MODIFY!
2
3
4 #include <glibmm.h>
5
6 #include <atkmm/hyperlink.h>
7 #include <atkmm/private/hyperlink_p.h>
8
9
10 // -*- c++ -*-
11 /* $Id: hyperlink.ccg,v 1.1 2004/01/02 09:56:43 murrayc Exp $ */
12
13 /* Copyright 2003 The gtkmm Development Team
14 *
15 * This library is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Lesser General Public
17 * License as published by the Free Software Foundation; either
18 * version 2.1 of the License, or (at your option) any later version.
19 *
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Lesser General Public License for more details.
24 *
25 * You should have received a copy of the GNU Lesser General Public
26 * License along with this library; if not, write to the Free
27 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 */
29
30 #include <atkmm/object.h>
31 #include <atk/atkobject.h>
32 #include <atk/atkhyperlink.h>
33
34
35 namespace Atk
36 {
37
38 } // namespace Atk
39
40
41 namespace
42 {
43
44
45 static const Glib::SignalProxyInfo Hyperlink_signal_link_activated_info =
46 {
47 "link_activated",
48 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
49 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
50 };
51
52
53 } // anonymous namespace
54
55
56 namespace Glib
57 {
58
wrap(AtkHyperlink * object,bool take_copy)59 Glib::RefPtr<Atk::Hyperlink> wrap(AtkHyperlink* object, bool take_copy)
60 {
61 return Glib::RefPtr<Atk::Hyperlink>( dynamic_cast<Atk::Hyperlink*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
62 //We use dynamic_cast<> in case of multiple inheritance.
63 }
64
65 } /* namespace Glib */
66
67
68 namespace Atk
69 {
70
71
72 /* The *_Class implementation: */
73
init()74 const Glib::Class& Hyperlink_Class::init()
75 {
76 if(!gtype_) // create the GType if necessary
77 {
78 // Glib::Class has to know the class init function to clone custom types.
79 class_init_func_ = &Hyperlink_Class::class_init_function;
80
81 // This is actually just optimized away, apparently with no harm.
82 // Make sure that the parent type has been created.
83 //CppClassParent::CppObjectType::get_type();
84
85 // Create the wrapper type, with the same class/instance size as the base type.
86 register_derived_type(atk_hyperlink_get_type());
87
88 // Add derived versions of interfaces, if the C type implements any interfaces:
89 Action::add_interface(get_type());
90
91 }
92
93 return *this;
94 }
95
96
class_init_function(void * g_class,void * class_data)97 void Hyperlink_Class::class_init_function(void* g_class, void* class_data)
98 {
99 const auto klass = static_cast<BaseClassType*>(g_class);
100 CppClassParent::class_init_function(klass, class_data);
101
102 klass->get_uri = &get_uri_vfunc_callback;
103 klass->get_object = &get_object_vfunc_callback;
104 klass->get_end_index = &get_end_index_vfunc_callback;
105 klass->get_start_index = &get_start_index_vfunc_callback;
106 klass->is_valid = &is_valid_vfunc_callback;
107 klass->get_n_anchors = &get_n_anchors_vfunc_callback;
108 klass->link_state = &link_state_vfunc_callback;
109 klass->is_selected_link = &is_selected_link_vfunc_callback;
110
111 klass->link_activated = &link_activated_callback;
112 }
113
get_uri_vfunc_callback(AtkHyperlink * self,gint i)114 gchar* Hyperlink_Class::get_uri_vfunc_callback(AtkHyperlink* self, gint i)
115 {
116 const auto obj_base = static_cast<Glib::ObjectBase*>(
117 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
118
119 // Non-gtkmmproc-generated custom classes implicitly call the default
120 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
121 // generated classes can use this optimisation, which avoids the unnecessary
122 // parameter conversions if there is no possibility of the virtual function
123 // being overridden:
124 if(obj_base && obj_base->is_derived_())
125 {
126 const auto obj = dynamic_cast<CppObjectType* const>(obj_base);
127 if(obj) // This can be NULL during destruction.
128 {
129 try // Trap C++ exceptions which would normally be lost because this is a C callback.
130 {
131 // Call the virtual member method, which derived classes might override.
132 return obj->get_uri_vfunc(i
133 );
134 }
135 catch(...)
136 {
137 Glib::exception_handlers_invoke();
138 }
139 }
140 }
141
142 BaseClassType *const base = static_cast<BaseClassType*>(
143 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
144 );
145
146 // Call the original underlying C function:
147 if(base && base->get_uri)
148 return (*base->get_uri)(self, i);
149
150 using RType = gchar*;
151 return RType();
152 }
get_object_vfunc_callback(AtkHyperlink * self,gint i)153 AtkObject* Hyperlink_Class::get_object_vfunc_callback(AtkHyperlink* self, gint i)
154 {
155 const auto obj_base = static_cast<Glib::ObjectBase*>(
156 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
157
158 // Non-gtkmmproc-generated custom classes implicitly call the default
159 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
160 // generated classes can use this optimisation, which avoids the unnecessary
161 // parameter conversions if there is no possibility of the virtual function
162 // being overridden:
163 if(obj_base && obj_base->is_derived_())
164 {
165 const auto obj = dynamic_cast<CppObjectType* const>(obj_base);
166 if(obj) // This can be NULL during destruction.
167 {
168 try // Trap C++ exceptions which would normally be lost because this is a C callback.
169 {
170 // Call the virtual member method, which derived classes might override.
171 return Glib::unwrap(obj->get_object_vfunc(i
172 ));
173 }
174 catch(...)
175 {
176 Glib::exception_handlers_invoke();
177 }
178 }
179 }
180
181 BaseClassType *const base = static_cast<BaseClassType*>(
182 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
183 );
184
185 // Call the original underlying C function:
186 if(base && base->get_object)
187 return (*base->get_object)(self, i);
188
189 using RType = AtkObject*;
190 return RType();
191 }
get_end_index_vfunc_callback(AtkHyperlink * self)192 gint Hyperlink_Class::get_end_index_vfunc_callback(AtkHyperlink* self)
193 {
194 const auto obj_base = static_cast<Glib::ObjectBase*>(
195 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
196
197 // Non-gtkmmproc-generated custom classes implicitly call the default
198 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
199 // generated classes can use this optimisation, which avoids the unnecessary
200 // parameter conversions if there is no possibility of the virtual function
201 // being overridden:
202 if(obj_base && obj_base->is_derived_())
203 {
204 const auto obj = dynamic_cast<CppObjectType* const>(obj_base);
205 if(obj) // This can be NULL during destruction.
206 {
207 try // Trap C++ exceptions which would normally be lost because this is a C callback.
208 {
209 // Call the virtual member method, which derived classes might override.
210 return obj->get_end_index_vfunc();
211 }
212 catch(...)
213 {
214 Glib::exception_handlers_invoke();
215 }
216 }
217 }
218
219 BaseClassType *const base = static_cast<BaseClassType*>(
220 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
221 );
222
223 // Call the original underlying C function:
224 if(base && base->get_end_index)
225 return (*base->get_end_index)(self);
226
227 using RType = gint;
228 return RType();
229 }
get_start_index_vfunc_callback(AtkHyperlink * self)230 gint Hyperlink_Class::get_start_index_vfunc_callback(AtkHyperlink* self)
231 {
232 const auto obj_base = static_cast<Glib::ObjectBase*>(
233 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
234
235 // Non-gtkmmproc-generated custom classes implicitly call the default
236 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
237 // generated classes can use this optimisation, which avoids the unnecessary
238 // parameter conversions if there is no possibility of the virtual function
239 // being overridden:
240 if(obj_base && obj_base->is_derived_())
241 {
242 const auto obj = dynamic_cast<CppObjectType* const>(obj_base);
243 if(obj) // This can be NULL during destruction.
244 {
245 try // Trap C++ exceptions which would normally be lost because this is a C callback.
246 {
247 // Call the virtual member method, which derived classes might override.
248 return obj->get_start_index_vfunc();
249 }
250 catch(...)
251 {
252 Glib::exception_handlers_invoke();
253 }
254 }
255 }
256
257 BaseClassType *const base = static_cast<BaseClassType*>(
258 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
259 );
260
261 // Call the original underlying C function:
262 if(base && base->get_start_index)
263 return (*base->get_start_index)(self);
264
265 using RType = gint;
266 return RType();
267 }
is_valid_vfunc_callback(AtkHyperlink * self)268 gboolean Hyperlink_Class::is_valid_vfunc_callback(AtkHyperlink* self)
269 {
270 const auto obj_base = static_cast<Glib::ObjectBase*>(
271 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
272
273 // Non-gtkmmproc-generated custom classes implicitly call the default
274 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
275 // generated classes can use this optimisation, which avoids the unnecessary
276 // parameter conversions if there is no possibility of the virtual function
277 // being overridden:
278 if(obj_base && obj_base->is_derived_())
279 {
280 const auto obj = dynamic_cast<CppObjectType* const>(obj_base);
281 if(obj) // This can be NULL during destruction.
282 {
283 try // Trap C++ exceptions which would normally be lost because this is a C callback.
284 {
285 // Call the virtual member method, which derived classes might override.
286 return static_cast<int>(obj->is_valid_vfunc());
287 }
288 catch(...)
289 {
290 Glib::exception_handlers_invoke();
291 }
292 }
293 }
294
295 BaseClassType *const base = static_cast<BaseClassType*>(
296 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
297 );
298
299 // Call the original underlying C function:
300 if(base && base->is_valid)
301 return (*base->is_valid)(self);
302
303 using RType = gboolean;
304 return RType();
305 }
get_n_anchors_vfunc_callback(AtkHyperlink * self)306 gint Hyperlink_Class::get_n_anchors_vfunc_callback(AtkHyperlink* self)
307 {
308 const auto obj_base = static_cast<Glib::ObjectBase*>(
309 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
310
311 // Non-gtkmmproc-generated custom classes implicitly call the default
312 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
313 // generated classes can use this optimisation, which avoids the unnecessary
314 // parameter conversions if there is no possibility of the virtual function
315 // being overridden:
316 if(obj_base && obj_base->is_derived_())
317 {
318 const auto obj = dynamic_cast<CppObjectType* const>(obj_base);
319 if(obj) // This can be NULL during destruction.
320 {
321 try // Trap C++ exceptions which would normally be lost because this is a C callback.
322 {
323 // Call the virtual member method, which derived classes might override.
324 return obj->get_n_anchors_vfunc();
325 }
326 catch(...)
327 {
328 Glib::exception_handlers_invoke();
329 }
330 }
331 }
332
333 BaseClassType *const base = static_cast<BaseClassType*>(
334 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
335 );
336
337 // Call the original underlying C function:
338 if(base && base->get_n_anchors)
339 return (*base->get_n_anchors)(self);
340
341 using RType = gint;
342 return RType();
343 }
link_state_vfunc_callback(AtkHyperlink * self)344 guint Hyperlink_Class::link_state_vfunc_callback(AtkHyperlink* self)
345 {
346 const auto obj_base = static_cast<Glib::ObjectBase*>(
347 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
348
349 // Non-gtkmmproc-generated custom classes implicitly call the default
350 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
351 // generated classes can use this optimisation, which avoids the unnecessary
352 // parameter conversions if there is no possibility of the virtual function
353 // being overridden:
354 if(obj_base && obj_base->is_derived_())
355 {
356 const auto obj = dynamic_cast<CppObjectType* const>(obj_base);
357 if(obj) // This can be NULL during destruction.
358 {
359 try // Trap C++ exceptions which would normally be lost because this is a C callback.
360 {
361 // Call the virtual member method, which derived classes might override.
362 return obj->link_state_vfunc();
363 }
364 catch(...)
365 {
366 Glib::exception_handlers_invoke();
367 }
368 }
369 }
370
371 BaseClassType *const base = static_cast<BaseClassType*>(
372 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
373 );
374
375 // Call the original underlying C function:
376 if(base && base->link_state)
377 return (*base->link_state)(self);
378
379 using RType = guint;
380 return RType();
381 }
is_selected_link_vfunc_callback(AtkHyperlink * self)382 gboolean Hyperlink_Class::is_selected_link_vfunc_callback(AtkHyperlink* self)
383 {
384 const auto obj_base = static_cast<Glib::ObjectBase*>(
385 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
386
387 // Non-gtkmmproc-generated custom classes implicitly call the default
388 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
389 // generated classes can use this optimisation, which avoids the unnecessary
390 // parameter conversions if there is no possibility of the virtual function
391 // being overridden:
392 if(obj_base && obj_base->is_derived_())
393 {
394 const auto obj = dynamic_cast<CppObjectType* const>(obj_base);
395 if(obj) // This can be NULL during destruction.
396 {
397 try // Trap C++ exceptions which would normally be lost because this is a C callback.
398 {
399 // Call the virtual member method, which derived classes might override.
400 return static_cast<int>(obj->is_selected_link_vfunc());
401 }
402 catch(...)
403 {
404 Glib::exception_handlers_invoke();
405 }
406 }
407 }
408
409 BaseClassType *const base = static_cast<BaseClassType*>(
410 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
411 );
412
413 // Call the original underlying C function:
414 if(base && base->is_selected_link)
415 return (*base->is_selected_link)(self);
416
417 using RType = gboolean;
418 return RType();
419 }
420
link_activated_callback(AtkHyperlink * self)421 void Hyperlink_Class::link_activated_callback(AtkHyperlink* self)
422 {
423 const auto obj_base = static_cast<Glib::ObjectBase*>(
424 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
425
426 // Non-gtkmmproc-generated custom classes implicitly call the default
427 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
428 // generated classes can use this optimisation, which avoids the unnecessary
429 // parameter conversions if there is no possibility of the virtual function
430 // being overridden:
431 if(obj_base && obj_base->is_derived_())
432 {
433 const auto obj = dynamic_cast<CppObjectType* const>(obj_base);
434 if(obj) // This can be NULL during destruction.
435 {
436 try // Trap C++ exceptions which would normally be lost because this is a C callback.
437 {
438 // Call the virtual member method, which derived classes might override.
439 obj->on_link_activated();
440 return;
441 }
442 catch(...)
443 {
444 Glib::exception_handlers_invoke();
445 }
446 }
447 }
448
449 const auto base = static_cast<BaseClassType*>(
450 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
451 );
452
453 // Call the original underlying C function:
454 if(base && base->link_activated)
455 (*base->link_activated)(self);
456 }
457
458
wrap_new(GObject * object)459 Glib::ObjectBase* Hyperlink_Class::wrap_new(GObject* object)
460 {
461 return new Hyperlink((AtkHyperlink*)object);
462 }
463
464
465 /* The implementation: */
466
gobj_copy()467 AtkHyperlink* Hyperlink::gobj_copy()
468 {
469 reference();
470 return gobj();
471 }
472
Hyperlink(const Glib::ConstructParams & construct_params)473 Hyperlink::Hyperlink(const Glib::ConstructParams& construct_params)
474 :
475 Glib::Object(construct_params)
476 {
477
478 }
479
Hyperlink(AtkHyperlink * castitem)480 Hyperlink::Hyperlink(AtkHyperlink* castitem)
481 :
482 Glib::Object((GObject*)(castitem))
483 {}
484
485
Hyperlink(Hyperlink && src)486 Hyperlink::Hyperlink(Hyperlink&& src) noexcept
487 : Glib::Object(std::move(src))
488 , Action(std::move(src))
489 {}
490
operator =(Hyperlink && src)491 Hyperlink& Hyperlink::operator=(Hyperlink&& src) noexcept
492 {
493 Glib::Object::operator=(std::move(src));
494 Action::operator=(std::move(src));
495 return *this;
496 }
497
498
~Hyperlink()499 Hyperlink::~Hyperlink() noexcept
500 {}
501
502
503 Hyperlink::CppClassType Hyperlink::hyperlink_class_; // initialize static member
504
get_type()505 GType Hyperlink::get_type()
506 {
507 return hyperlink_class_.init().get_type();
508 }
509
510
get_base_type()511 GType Hyperlink::get_base_type()
512 {
513 return atk_hyperlink_get_type();
514 }
515
516
get_uri(int i) const517 Glib::ustring Hyperlink::get_uri(int i) const
518 {
519 return Glib::convert_return_gchar_ptr_to_ustring(atk_hyperlink_get_uri(const_cast<AtkHyperlink*>(gobj()), i));
520 }
521
get_object(int i)522 Glib::RefPtr<Atk::Object> Hyperlink::get_object(int i)
523 {
524 Glib::RefPtr<Atk::Object> retvalue = Glib::wrap(atk_hyperlink_get_object(gobj(), i));
525 if(retvalue)
526 retvalue->reference(); //The function does not do a ref for us.
527 return retvalue;
528 }
529
get_object(int i) const530 Glib::RefPtr<const Atk::Object> Hyperlink::get_object(int i) const
531 {
532 return const_cast<Hyperlink*>(this)->get_object(i);
533 }
534
get_end_index() const535 int Hyperlink::get_end_index() const
536 {
537 return atk_hyperlink_get_end_index(const_cast<AtkHyperlink*>(gobj()));
538 }
539
get_start_index() const540 int Hyperlink::get_start_index() const
541 {
542 return atk_hyperlink_get_start_index(const_cast<AtkHyperlink*>(gobj()));
543 }
544
is_valid() const545 bool Hyperlink::is_valid() const
546 {
547 return atk_hyperlink_is_valid(const_cast<AtkHyperlink*>(gobj()));
548 }
549
is_inline() const550 bool Hyperlink::is_inline() const
551 {
552 return atk_hyperlink_is_inline(const_cast<AtkHyperlink*>(gobj()));
553 }
554
get_n_anchors() const555 int Hyperlink::get_n_anchors() const
556 {
557 return atk_hyperlink_get_n_anchors(const_cast<AtkHyperlink*>(gobj()));
558 }
559
560
signal_link_activated()561 Glib::SignalProxy< void > Hyperlink::signal_link_activated()
562 {
563 return Glib::SignalProxy< void >(this, &Hyperlink_signal_link_activated_info);
564 }
565
566
property_selected_link() const567 Glib::PropertyProxy_ReadOnly< bool > Hyperlink::property_selected_link() const
568 {
569 return Glib::PropertyProxy_ReadOnly< bool >(this, "selected-link");
570 }
571
property_number_of_anchors() const572 Glib::PropertyProxy_ReadOnly< int > Hyperlink::property_number_of_anchors() const
573 {
574 return Glib::PropertyProxy_ReadOnly< int >(this, "number-of-anchors");
575 }
576
property_end_index() const577 Glib::PropertyProxy_ReadOnly< int > Hyperlink::property_end_index() const
578 {
579 return Glib::PropertyProxy_ReadOnly< int >(this, "end-index");
580 }
581
property_start_index() const582 Glib::PropertyProxy_ReadOnly< int > Hyperlink::property_start_index() const
583 {
584 return Glib::PropertyProxy_ReadOnly< int >(this, "start-index");
585 }
586
587
on_link_activated()588 void Atk::Hyperlink::on_link_activated()
589 {
590 const auto base = static_cast<BaseClassType*>(
591 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
592 );
593
594 if(base && base->link_activated)
595 (*base->link_activated)(gobj());
596 }
597
get_uri_vfunc(int i) const598 gchar* Atk::Hyperlink::get_uri_vfunc(int i) const
599 {
600 const auto base = static_cast<BaseClassType*>(
601 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
602 );
603
604 if(base && base->get_uri)
605 {
606 gchar* retval((*base->get_uri)(const_cast<AtkHyperlink*>(gobj()),i));
607 return retval;
608 }
609
610 using RType = gchar*;
611 return RType();
612 }
get_object_vfunc(int i)613 Glib::RefPtr<Atk::Object> Atk::Hyperlink::get_object_vfunc(int i)
614 {
615 const auto base = static_cast<BaseClassType*>(
616 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
617 );
618
619 if(base && base->get_object)
620 {
621 Glib::RefPtr<Atk::Object> retval(Glib::wrap((*base->get_object)(gobj(),i)));
622 return retval;
623 }
624
625 using RType = Glib::RefPtr<Atk::Object>;
626 return RType();
627 }
get_end_index_vfunc() const628 int Atk::Hyperlink::get_end_index_vfunc() const
629 {
630 const auto base = static_cast<BaseClassType*>(
631 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
632 );
633
634 if(base && base->get_end_index)
635 {
636 int retval((*base->get_end_index)(const_cast<AtkHyperlink*>(gobj())));
637 return retval;
638 }
639
640 using RType = int;
641 return RType();
642 }
get_start_index_vfunc() const643 int Atk::Hyperlink::get_start_index_vfunc() const
644 {
645 const auto base = static_cast<BaseClassType*>(
646 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
647 );
648
649 if(base && base->get_start_index)
650 {
651 int retval((*base->get_start_index)(const_cast<AtkHyperlink*>(gobj())));
652 return retval;
653 }
654
655 using RType = int;
656 return RType();
657 }
is_valid_vfunc() const658 bool Atk::Hyperlink::is_valid_vfunc() const
659 {
660 const auto base = static_cast<BaseClassType*>(
661 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
662 );
663
664 if(base && base->is_valid)
665 {
666 bool retval((*base->is_valid)(const_cast<AtkHyperlink*>(gobj())));
667 return retval;
668 }
669
670 using RType = bool;
671 return RType();
672 }
get_n_anchors_vfunc() const673 int Atk::Hyperlink::get_n_anchors_vfunc() const
674 {
675 const auto base = static_cast<BaseClassType*>(
676 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
677 );
678
679 if(base && base->get_n_anchors)
680 {
681 int retval((*base->get_n_anchors)(const_cast<AtkHyperlink*>(gobj())));
682 return retval;
683 }
684
685 using RType = int;
686 return RType();
687 }
link_state_vfunc() const688 guint Atk::Hyperlink::link_state_vfunc() const
689 {
690 const auto base = static_cast<BaseClassType*>(
691 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
692 );
693
694 if(base && base->link_state)
695 {
696 guint retval((*base->link_state)(const_cast<AtkHyperlink*>(gobj())));
697 return retval;
698 }
699
700 using RType = guint;
701 return RType();
702 }
is_selected_link_vfunc() const703 bool Atk::Hyperlink::is_selected_link_vfunc() const
704 {
705 const auto base = static_cast<BaseClassType*>(
706 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
707 );
708
709 if(base && base->is_selected_link)
710 {
711 bool retval((*base->is_selected_link)(const_cast<AtkHyperlink*>(gobj())));
712 return retval;
713 }
714
715 using RType = bool;
716 return RType();
717 }
718
719
720 } // namespace Atk
721
722
723