1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include <gtkmm/style.h>
4 #include <gtkmm/private/style_p.h>
9 /* Copyright 1998-2002 The gtkmm Development Team
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Library General Public
13 * License as published by the Free Software Foundation; either
14 * version 2 of the License, or (at your option) any later version.
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Library General Public License for more details.
21 * You should have received a copy of the GNU Library General Public
22 * License along with this library; if not, write to the Free
23 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 #include <gtkmm/widget.h>
28 #include <gtk/gtkstyle.h>
37 Okay these are my notes on how a GtkStyle works.
38 They are not meant to be taken as documentation as I didn't
41 styles keeps a copy of itself for each color depth. Thus
42 changing a style after it has been attached wont work!
44 At allocation time a Gtk Style has
45 - all GC set to 0 as they will be allocated later
46 - has all color values set to default values.
47 - a ref count of 1 and an attach count of 0 (floating?)
48 - a properly referenced font.
49 - colormap and depth are invalid.
50 - The style list and rcstyle are 0. (??? styles wasn't set explicitly!)
52 It returns to this state if the style is detatched from
55 Attach acts to sink the object removing it from the floating state.
57 attaching a style for the first time initializes it.
59 - sets the colormap and depth.
60 - sets the mid colors. (thus allowing user to set these would be pointless)
61 - gets black and white from the colormap.
62 - allocates all the colors.
63 - uses gtk_gc_get to share a gc if there is a matching one.
65 Conclusions, we need to rework the concept of Gdk to allow
70 void Style::set_font(const Pango::FontDescription& font_desc)
72 g_return_if_fail(font_desc.gobj() != 0);
74 // It will be freed when it goes out of scope.
75 const Pango::FontDescription fontBefore (gobj()->font_desc, false);
77 gobj()->font_desc = font_desc.gobj_copy();
80 Pango::FontDescription Style::get_font() const
82 // Direct struct access seems the only way.
83 return Pango::FontDescription(gobj()->font_desc, true); // true = make a copy.
86 Glib::RefPtr<Gdk::GC> Style::get_fg_gc(StateType state_type)
88 return Glib::wrap(gobj()->fg_gc[state_type], true);
91 Glib::RefPtr<const Gdk::GC> Style::get_fg_gc(StateType state_type) const
93 return Glib::wrap(gobj()->fg_gc[state_type], true);
96 Glib::RefPtr<Gdk::GC> Style::get_bg_gc(StateType state_type)
98 return Glib::wrap(gobj()->bg_gc[state_type], true);
101 Glib::RefPtr<const Gdk::GC> Style::get_bg_gc(StateType state_type) const
103 return Glib::wrap(gobj()->bg_gc[state_type], true);
106 Glib::RefPtr<Gdk::GC> Style::get_light_gc(StateType state_type)
108 return Glib::wrap(gobj()->light_gc[state_type], true);
111 Glib::RefPtr<const Gdk::GC> Style::get_light_gc(StateType state_type) const
113 return Glib::wrap(gobj()->light_gc[state_type], true);
116 Glib::RefPtr<Gdk::GC> Style::get_dark_gc(StateType state_type)
118 return Glib::wrap(gobj()->dark_gc[state_type], true);
121 Glib::RefPtr<const Gdk::GC> Style::get_dark_gc(StateType state_type) const
123 return Glib::wrap(gobj()->dark_gc[state_type], true);
126 Glib::RefPtr<Gdk::GC> Style::get_mid_gc(StateType state_type)
128 return Glib::wrap(gobj()->mid_gc[state_type], true);
131 Glib::RefPtr<const Gdk::GC> Style::get_mid_gc(StateType state_type) const
133 return Glib::wrap(gobj()->mid_gc[state_type], true);
136 Glib::RefPtr<Gdk::GC> Style::get_text_gc(StateType state_type)
138 return Glib::wrap(gobj()->text_gc[state_type], true);
141 Glib::RefPtr<const Gdk::GC> Style::get_text_gc(StateType state_type) const
143 return Glib::wrap(gobj()->text_gc[state_type], true);
146 Glib::RefPtr<Gdk::GC> Style::get_base_gc(StateType state_type)
148 return Glib::wrap(gobj()->base_gc[state_type], true);
151 Glib::RefPtr<const Gdk::GC> Style::get_base_gc(StateType state_type) const
153 return Glib::wrap(gobj()->base_gc[state_type], true);
156 Gdk::Color Style::get_background(StateType state_type) const
158 GdkColor* pGdkColor = const_cast<GdkColor*>(&(gobj()->bg[state_type]));
159 return Glib::wrap(pGdkColor, true); //true = take_copy.
162 Glib::RefPtr<Gdk::Pixmap> Style::get_background_pixmap(StateType state_type)
164 return Glib::wrap((GdkPixmapObject*) (gobj()->bg_pixmap[state_type]), true); //true = take_copy.
167 void Style::set_bg_pixmap(StateType state_type, const Glib::RefPtr<Gdk::Pixmap>& pixmap)
169 GdkPixmap *const old_pixmap = gobj()->bg_pixmap[state_type];
170 gobj()->bg_pixmap[state_type] = Glib::unwrap_copy(pixmap);
173 g_object_unref(old_pixmap);
176 Glib::RefPtr<Gdk::Pixmap> Style::get_bg_pixmap(StateType state_type)
178 return Glib::wrap((GdkPixmapObject*) (gobj()->bg_pixmap[state_type]), true); // true = take_copy
181 Glib::RefPtr<const Gdk::Pixmap> Style::get_bg_pixmap(StateType state_type) const
183 return Glib::wrap((GdkPixmapObject*) (gobj()->bg_pixmap[state_type]), true); // true = take_copy
186 void Style::set_xthickness(int xthickness)
188 gobj()->xthickness = xthickness;
191 void Style::set_ythickness(int ythickness)
193 gobj()->ythickness = ythickness;
196 void Style::paint_polygon(const Glib::RefPtr<Gdk::Window>& window,
197 StateType state_type,
198 ShadowType shadow_type,
199 const Gdk::Rectangle& area,
201 const Glib::ustring& detail,
202 const Glib::ArrayHandle<Gdk::Point>& points,
206 const_cast<GtkStyle*>(gobj()),
207 Glib::unwrap(window),
208 (GtkStateType) state_type,
209 (GtkShadowType) shadow_type,
210 const_cast<GdkRectangle*>(area.gobj()),
213 reinterpret_cast<GdkPoint*>(const_cast<Gdk::Point*>(points.data())),
224 const Glib::SignalProxyInfo Style_signal_realize_info =
227 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
228 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
232 const Glib::SignalProxyInfo Style_signal_unrealize_info =
235 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
236 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
239 } // anonymous namespace
245 Glib::RefPtr<Gtk::Style> wrap(GtkStyle* object, bool take_copy)
247 return Glib::RefPtr<Gtk::Style>( dynamic_cast<Gtk::Style*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
248 //We use dynamic_cast<> in case of multiple inheritance.
251 } /* namespace Glib */
258 /* The *_Class implementation: */
260 const Glib::Class& Style_Class::init()
262 if(!gtype_) // create the GType if necessary
264 // Glib::Class has to know the class init function to clone custom types.
265 class_init_func_ = &Style_Class::class_init_function;
267 // This is actually just optimized away, apparently with no harm.
268 // Make sure that the parent type has been created.
269 //CppClassParent::CppObjectType::get_type();
271 // Create the wrapper type, with the same class/instance size as the base type.
272 register_derived_type(gtk_style_get_type());
274 // Add derived versions of interfaces, if the C type implements any interfaces:
280 void Style_Class::class_init_function(void* g_class, void* class_data)
282 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
283 CppClassParent::class_init_function(klass, class_data);
285 klass->realize = &realize_vfunc_callback;
286 klass->unrealize = &unrealize_vfunc_callback;
287 klass->copy = ©_vfunc_callback;
288 klass->clone = &clone_vfunc_callback;
289 klass->init_from_rc = &init_from_rc_vfunc_callback;
290 klass->set_background = &set_background_vfunc_callback;
291 klass->render_icon = &render_icon_vfunc_callback;
292 klass->draw_hline = &draw_hline_vfunc_callback;
293 klass->draw_vline = &draw_vline_vfunc_callback;
294 klass->draw_shadow = &draw_shadow_vfunc_callback;
295 klass->draw_polygon = &draw_polygon_vfunc_callback;
296 klass->draw_arrow = &draw_arrow_vfunc_callback;
297 klass->draw_diamond = &draw_diamond_vfunc_callback;
298 klass->draw_string = &draw_string_vfunc_callback;
299 klass->draw_box = &draw_box_vfunc_callback;
300 klass->draw_flat_box = &draw_flat_box_vfunc_callback;
301 klass->draw_check = &draw_check_vfunc_callback;
302 klass->draw_option = &draw_option_vfunc_callback;
303 klass->draw_tab = &draw_tab_vfunc_callback;
304 klass->draw_shadow_gap = &draw_shadow_gap_vfunc_callback;
305 klass->draw_box_gap = &draw_box_gap_vfunc_callback;
306 klass->draw_extension = &draw_extension_vfunc_callback;
307 klass->draw_focus = &draw_focus_vfunc_callback;
308 klass->draw_slider = &draw_slider_vfunc_callback;
309 klass->draw_handle = &draw_handle_vfunc_callback;
310 klass->draw_expander = &draw_expander_vfunc_callback;
311 klass->draw_layout = &draw_layout_vfunc_callback;
312 klass->draw_resize_grip = &draw_resize_grip_vfunc_callback;
313 klass->realize = &realize_callback;
314 klass->unrealize = &unrealize_callback;
317 void Style_Class::realize_vfunc_callback(GtkStyle* self)
319 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
320 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
322 // Non-gtkmmproc-generated custom classes implicitly call the default
323 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
324 // generated classes can use this optimisation, which avoids the unnecessary
325 // parameter conversions if there is no possibility of the virtual function
327 if(obj && obj->is_derived_())
329 try // Trap C++ exceptions which would normally be lost because this is a C callback.
331 // Call the virtual member method, which derived classes might override.
332 obj->realize_vfunc();
336 Glib::exception_handlers_invoke();
341 BaseClassType *const base = static_cast<BaseClassType*>(
342 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
345 // Call the original underlying C function:
346 if(base && base->realize)
347 (*base->realize)(self);
351 void Style_Class::unrealize_vfunc_callback(GtkStyle* self)
353 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
354 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
356 // Non-gtkmmproc-generated custom classes implicitly call the default
357 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
358 // generated classes can use this optimisation, which avoids the unnecessary
359 // parameter conversions if there is no possibility of the virtual function
361 if(obj && obj->is_derived_())
363 try // Trap C++ exceptions which would normally be lost because this is a C callback.
365 // Call the virtual member method, which derived classes might override.
366 obj->unrealize_vfunc();
370 Glib::exception_handlers_invoke();
375 BaseClassType *const base = static_cast<BaseClassType*>(
376 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
379 // Call the original underlying C function:
380 if(base && base->unrealize)
381 (*base->unrealize)(self);
385 void Style_Class::copy_vfunc_callback(GtkStyle* self, GtkStyle* src)
387 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
388 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
390 // Non-gtkmmproc-generated custom classes implicitly call the default
391 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
392 // generated classes can use this optimisation, which avoids the unnecessary
393 // parameter conversions if there is no possibility of the virtual function
395 if(obj && obj->is_derived_())
397 try // Trap C++ exceptions which would normally be lost because this is a C callback.
399 // Call the virtual member method, which derived classes might override.
400 obj->copy_vfunc(Glib::wrap(src, true)
405 Glib::exception_handlers_invoke();
410 BaseClassType *const base = static_cast<BaseClassType*>(
411 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
414 // Call the original underlying C function:
415 if(base && base->copy)
416 (*base->copy)(self, src);
420 GtkStyle* Style_Class::clone_vfunc_callback(GtkStyle* self)
422 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
423 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
425 // Non-gtkmmproc-generated custom classes implicitly call the default
426 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
427 // generated classes can use this optimisation, which avoids the unnecessary
428 // parameter conversions if there is no possibility of the virtual function
430 if(obj && obj->is_derived_())
432 try // Trap C++ exceptions which would normally be lost because this is a C callback.
434 // Call the virtual member method, which derived classes might override.
435 return Glib::unwrap(obj->clone_vfunc());
439 Glib::exception_handlers_invoke();
444 BaseClassType *const base = static_cast<BaseClassType*>(
445 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
448 // Call the original underlying C function:
449 if(base && base->clone)
450 return (*base->clone)(self);
453 typedef GtkStyle* RType;
457 void Style_Class::init_from_rc_vfunc_callback(GtkStyle* self, GtkRcStyle* rc_style)
459 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
460 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
462 // Non-gtkmmproc-generated custom classes implicitly call the default
463 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
464 // generated classes can use this optimisation, which avoids the unnecessary
465 // parameter conversions if there is no possibility of the virtual function
467 if(obj && obj->is_derived_())
469 try // Trap C++ exceptions which would normally be lost because this is a C callback.
471 // Call the virtual member method, which derived classes might override.
472 obj->init_from_rc_vfunc(Glib::wrap(rc_style)
477 Glib::exception_handlers_invoke();
482 BaseClassType *const base = static_cast<BaseClassType*>(
483 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
486 // Call the original underlying C function:
487 if(base && base->init_from_rc)
488 (*base->init_from_rc)(self, rc_style);
492 void Style_Class::set_background_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type)
494 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
495 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
497 // Non-gtkmmproc-generated custom classes implicitly call the default
498 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
499 // generated classes can use this optimisation, which avoids the unnecessary
500 // parameter conversions if there is no possibility of the virtual function
502 if(obj && obj->is_derived_())
504 try // Trap C++ exceptions which would normally be lost because this is a C callback.
506 // Call the virtual member method, which derived classes might override.
507 obj->set_background_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
508 , ((Gtk::StateType)(state_type))
513 Glib::exception_handlers_invoke();
518 BaseClassType *const base = static_cast<BaseClassType*>(
519 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
522 // Call the original underlying C function:
523 if(base && base->set_background)
524 (*base->set_background)(self, window, state_type);
528 GdkPixbuf* Style_Class::render_icon_vfunc_callback(GtkStyle* self, const GtkIconSource* source, GtkTextDirection direction, GtkStateType state, GtkIconSize size, GtkWidget* widget, const gchar* detail)
530 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
531 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
533 // Non-gtkmmproc-generated custom classes implicitly call the default
534 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
535 // generated classes can use this optimisation, which avoids the unnecessary
536 // parameter conversions if there is no possibility of the virtual function
538 if(obj && obj->is_derived_())
540 try // Trap C++ exceptions which would normally be lost because this is a C callback.
542 // Call the virtual member method, which derived classes might override.
543 return Glib::unwrap(obj->render_icon_vfunc(Glib::wrap(const_cast<GtkIconSource*>(source), true)
544 , ((TextDirection)(direction))
545 , ((Gtk::StateType)(state))
546 , IconSize(static_cast<int>(size))
548 , Glib::convert_const_gchar_ptr_to_ustring(detail)
553 Glib::exception_handlers_invoke();
558 BaseClassType *const base = static_cast<BaseClassType*>(
559 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
562 // Call the original underlying C function:
563 if(base && base->render_icon)
564 return (*base->render_icon)(self, source, direction, state, size, widget, detail);
567 typedef GdkPixbuf* RType;
571 void Style_Class::draw_hline_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x1, gint x2, gint y)
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 try // Trap C++ exceptions which would normally be lost because this is a C callback.
585 // Call the virtual member method, which derived classes might override.
586 obj->draw_hline_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
587 , ((Gtk::StateType)(state_type))
590 , Glib::convert_const_gchar_ptr_to_ustring(detail)
598 Glib::exception_handlers_invoke();
603 BaseClassType *const base = static_cast<BaseClassType*>(
604 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
607 // Call the original underlying C function:
608 if(base && base->draw_hline)
609 (*base->draw_hline)(self, window, state_type, area, widget, detail, x1, x2, y);
613 void Style_Class::draw_vline_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint y1, gint y2, gint x)
615 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
616 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
618 // Non-gtkmmproc-generated custom classes implicitly call the default
619 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
620 // generated classes can use this optimisation, which avoids the unnecessary
621 // parameter conversions if there is no possibility of the virtual function
623 if(obj && obj->is_derived_())
625 try // Trap C++ exceptions which would normally be lost because this is a C callback.
627 // Call the virtual member method, which derived classes might override.
628 obj->draw_vline_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
629 , ((Gtk::StateType)(state_type))
632 , Glib::convert_const_gchar_ptr_to_ustring(detail)
640 Glib::exception_handlers_invoke();
645 BaseClassType *const base = static_cast<BaseClassType*>(
646 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
649 // Call the original underlying C function:
650 if(base && base->draw_vline)
651 (*base->draw_vline)(self, window, state_type, area, widget, detail, y1, y2, x);
655 void Style_Class::draw_shadow_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, gint width, gint height)
657 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
658 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
660 // Non-gtkmmproc-generated custom classes implicitly call the default
661 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
662 // generated classes can use this optimisation, which avoids the unnecessary
663 // parameter conversions if there is no possibility of the virtual function
665 if(obj && obj->is_derived_())
667 try // Trap C++ exceptions which would normally be lost because this is a C callback.
669 // Call the virtual member method, which derived classes might override.
670 obj->draw_shadow_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
671 , ((Gtk::StateType)(state_type))
672 , ((ShadowType)(shadow_type))
675 , Glib::convert_const_gchar_ptr_to_ustring(detail)
684 Glib::exception_handlers_invoke();
689 BaseClassType *const base = static_cast<BaseClassType*>(
690 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
693 // Call the original underlying C function:
694 if(base && base->draw_shadow)
695 (*base->draw_shadow)(self, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
699 void Style_Class::draw_polygon_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, GdkPoint* point, gint npoints, gboolean fill)
701 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
702 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
704 // Non-gtkmmproc-generated custom classes implicitly call the default
705 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
706 // generated classes can use this optimisation, which avoids the unnecessary
707 // parameter conversions if there is no possibility of the virtual function
709 if(obj && obj->is_derived_())
711 try // Trap C++ exceptions which would normally be lost because this is a C callback.
713 // Call the virtual member method, which derived classes might override.
714 obj->draw_polygon_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
715 , ((Gtk::StateType)(state_type))
716 , ((ShadowType)(shadow_type))
719 , Glib::convert_const_gchar_ptr_to_ustring(detail)
726 Glib::exception_handlers_invoke();
731 BaseClassType *const base = static_cast<BaseClassType*>(
732 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
735 // Call the original underlying C function:
736 if(base && base->draw_polygon)
737 (*base->draw_polygon)(self, window, state_type, shadow_type, area, widget, detail, point, npoints, fill);
741 void Style_Class::draw_arrow_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, GtkArrowType arrow_type, gboolean fill, gint x, gint y, gint width, gint height)
743 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
744 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
746 // Non-gtkmmproc-generated custom classes implicitly call the default
747 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
748 // generated classes can use this optimisation, which avoids the unnecessary
749 // parameter conversions if there is no possibility of the virtual function
751 if(obj && obj->is_derived_())
753 try // Trap C++ exceptions which would normally be lost because this is a C callback.
755 // Call the virtual member method, which derived classes might override.
756 obj->draw_arrow_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
757 , ((Gtk::StateType)(state_type))
758 , ((ShadowType)(shadow_type))
761 , Glib::convert_const_gchar_ptr_to_ustring(detail)
762 , ((Gtk::ArrowType)(arrow_type))
772 Glib::exception_handlers_invoke();
777 BaseClassType *const base = static_cast<BaseClassType*>(
778 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
781 // Call the original underlying C function:
782 if(base && base->draw_arrow)
783 (*base->draw_arrow)(self, window, state_type, shadow_type, area, widget, detail, arrow_type, fill, x, y, width, height);
787 void Style_Class::draw_diamond_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, gint width, gint height)
789 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
790 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
792 // Non-gtkmmproc-generated custom classes implicitly call the default
793 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
794 // generated classes can use this optimisation, which avoids the unnecessary
795 // parameter conversions if there is no possibility of the virtual function
797 if(obj && obj->is_derived_())
799 try // Trap C++ exceptions which would normally be lost because this is a C callback.
801 // Call the virtual member method, which derived classes might override.
802 obj->draw_diamond_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
803 , ((Gtk::StateType)(state_type))
804 , ((ShadowType)(shadow_type))
807 , Glib::convert_const_gchar_ptr_to_ustring(detail)
816 Glib::exception_handlers_invoke();
821 BaseClassType *const base = static_cast<BaseClassType*>(
822 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
825 // Call the original underlying C function:
826 if(base && base->draw_diamond)
827 (*base->draw_diamond)(self, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
831 void Style_Class::draw_string_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, const gchar* string)
833 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
834 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
836 // Non-gtkmmproc-generated custom classes implicitly call the default
837 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
838 // generated classes can use this optimisation, which avoids the unnecessary
839 // parameter conversions if there is no possibility of the virtual function
841 if(obj && obj->is_derived_())
843 try // Trap C++ exceptions which would normally be lost because this is a C callback.
845 // Call the virtual member method, which derived classes might override.
846 obj->draw_string_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
847 , ((Gtk::StateType)(state_type))
850 , Glib::convert_const_gchar_ptr_to_ustring(detail)
853 , Glib::convert_const_gchar_ptr_to_ustring(string)
858 Glib::exception_handlers_invoke();
863 BaseClassType *const base = static_cast<BaseClassType*>(
864 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
867 // Call the original underlying C function:
868 if(base && base->draw_string)
869 (*base->draw_string)(self, window, state_type, area, widget, detail, x, y, string);
873 void Style_Class::draw_box_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, gint width, gint height)
875 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
876 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
878 // Non-gtkmmproc-generated custom classes implicitly call the default
879 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
880 // generated classes can use this optimisation, which avoids the unnecessary
881 // parameter conversions if there is no possibility of the virtual function
883 if(obj && obj->is_derived_())
885 try // Trap C++ exceptions which would normally be lost because this is a C callback.
887 // Call the virtual member method, which derived classes might override.
888 obj->draw_box_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
889 , ((Gtk::StateType)(state_type))
890 , ((ShadowType)(shadow_type))
893 , Glib::convert_const_gchar_ptr_to_ustring(detail)
902 Glib::exception_handlers_invoke();
907 BaseClassType *const base = static_cast<BaseClassType*>(
908 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
911 // Call the original underlying C function:
912 if(base && base->draw_box)
913 (*base->draw_box)(self, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
917 void Style_Class::draw_flat_box_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, gint width, gint height)
919 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
920 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
922 // Non-gtkmmproc-generated custom classes implicitly call the default
923 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
924 // generated classes can use this optimisation, which avoids the unnecessary
925 // parameter conversions if there is no possibility of the virtual function
927 if(obj && obj->is_derived_())
929 try // Trap C++ exceptions which would normally be lost because this is a C callback.
931 // Call the virtual member method, which derived classes might override.
932 obj->draw_flat_box_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
933 , ((Gtk::StateType)(state_type))
934 , ((ShadowType)(shadow_type))
937 , Glib::convert_const_gchar_ptr_to_ustring(detail)
946 Glib::exception_handlers_invoke();
951 BaseClassType *const base = static_cast<BaseClassType*>(
952 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
955 // Call the original underlying C function:
956 if(base && base->draw_flat_box)
957 (*base->draw_flat_box)(self, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
961 void Style_Class::draw_check_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, gint width, gint height)
963 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
964 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
966 // Non-gtkmmproc-generated custom classes implicitly call the default
967 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
968 // generated classes can use this optimisation, which avoids the unnecessary
969 // parameter conversions if there is no possibility of the virtual function
971 if(obj && obj->is_derived_())
973 try // Trap C++ exceptions which would normally be lost because this is a C callback.
975 // Call the virtual member method, which derived classes might override.
976 obj->draw_check_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
977 , ((Gtk::StateType)(state_type))
978 , ((ShadowType)(shadow_type))
981 , Glib::convert_const_gchar_ptr_to_ustring(detail)
990 Glib::exception_handlers_invoke();
995 BaseClassType *const base = static_cast<BaseClassType*>(
996 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
999 // Call the original underlying C function:
1000 if(base && base->draw_check)
1001 (*base->draw_check)(self, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
1005 void Style_Class::draw_option_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, gint width, gint height)
1007 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
1008 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
1010 // Non-gtkmmproc-generated custom classes implicitly call the default
1011 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
1012 // generated classes can use this optimisation, which avoids the unnecessary
1013 // parameter conversions if there is no possibility of the virtual function
1014 // being overridden:
1015 if(obj && obj->is_derived_())
1017 try // Trap C++ exceptions which would normally be lost because this is a C callback.
1019 // Call the virtual member method, which derived classes might override.
1020 obj->draw_option_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
1021 , ((Gtk::StateType)(state_type))
1022 , ((ShadowType)(shadow_type))
1024 , Glib::wrap(widget)
1025 , Glib::convert_const_gchar_ptr_to_ustring(detail)
1034 Glib::exception_handlers_invoke();
1039 BaseClassType *const base = static_cast<BaseClassType*>(
1040 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
1043 // Call the original underlying C function:
1044 if(base && base->draw_option)
1045 (*base->draw_option)(self, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
1049 void Style_Class::draw_tab_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, gint width, gint height)
1051 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
1052 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
1054 // Non-gtkmmproc-generated custom classes implicitly call the default
1055 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
1056 // generated classes can use this optimisation, which avoids the unnecessary
1057 // parameter conversions if there is no possibility of the virtual function
1058 // being overridden:
1059 if(obj && obj->is_derived_())
1061 try // Trap C++ exceptions which would normally be lost because this is a C callback.
1063 // Call the virtual member method, which derived classes might override.
1064 obj->draw_tab_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
1065 , ((Gtk::StateType)(state_type))
1066 , ((ShadowType)(shadow_type))
1068 , Glib::wrap(widget)
1069 , Glib::convert_const_gchar_ptr_to_ustring(detail)
1078 Glib::exception_handlers_invoke();
1083 BaseClassType *const base = static_cast<BaseClassType*>(
1084 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
1087 // Call the original underlying C function:
1088 if(base && base->draw_tab)
1089 (*base->draw_tab)(self, window, state_type, shadow_type, area, widget, detail, x, y, width, height);
1093 void Style_Class::draw_shadow_gap_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, gint width, gint height, GtkPositionType gap_side, gint gap_x, gint gap_width)
1095 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
1096 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
1098 // Non-gtkmmproc-generated custom classes implicitly call the default
1099 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
1100 // generated classes can use this optimisation, which avoids the unnecessary
1101 // parameter conversions if there is no possibility of the virtual function
1102 // being overridden:
1103 if(obj && obj->is_derived_())
1105 try // Trap C++ exceptions which would normally be lost because this is a C callback.
1107 // Call the virtual member method, which derived classes might override.
1108 obj->draw_shadow_gap_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
1109 , ((Gtk::StateType)(state_type))
1110 , ((ShadowType)(shadow_type))
1112 , Glib::wrap(widget)
1113 , Glib::convert_const_gchar_ptr_to_ustring(detail)
1118 , ((Gtk::PositionType)(gap_side))
1125 Glib::exception_handlers_invoke();
1130 BaseClassType *const base = static_cast<BaseClassType*>(
1131 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
1134 // Call the original underlying C function:
1135 if(base && base->draw_shadow_gap)
1136 (*base->draw_shadow_gap)(self, window, state_type, shadow_type, area, widget, detail, x, y, width, height, gap_side, gap_x, gap_width);
1140 void Style_Class::draw_box_gap_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, gint width, gint height, GtkPositionType gap_side, gint gap_x, gint gap_width)
1142 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
1143 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
1145 // Non-gtkmmproc-generated custom classes implicitly call the default
1146 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
1147 // generated classes can use this optimisation, which avoids the unnecessary
1148 // parameter conversions if there is no possibility of the virtual function
1149 // being overridden:
1150 if(obj && obj->is_derived_())
1152 try // Trap C++ exceptions which would normally be lost because this is a C callback.
1154 // Call the virtual member method, which derived classes might override.
1155 obj->draw_box_gap_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
1156 , ((Gtk::StateType)(state_type))
1157 , ((ShadowType)(shadow_type))
1159 , Glib::wrap(widget)
1160 , Glib::convert_const_gchar_ptr_to_ustring(detail)
1165 , ((Gtk::PositionType)(gap_side))
1172 Glib::exception_handlers_invoke();
1177 BaseClassType *const base = static_cast<BaseClassType*>(
1178 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
1181 // Call the original underlying C function:
1182 if(base && base->draw_box_gap)
1183 (*base->draw_box_gap)(self, window, state_type, shadow_type, area, widget, detail, x, y, width, height, gap_side, gap_x, gap_width);
1187 void Style_Class::draw_extension_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, gint width, gint height, GtkPositionType gap_side)
1189 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
1190 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
1192 // Non-gtkmmproc-generated custom classes implicitly call the default
1193 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
1194 // generated classes can use this optimisation, which avoids the unnecessary
1195 // parameter conversions if there is no possibility of the virtual function
1196 // being overridden:
1197 if(obj && obj->is_derived_())
1199 try // Trap C++ exceptions which would normally be lost because this is a C callback.
1201 // Call the virtual member method, which derived classes might override.
1202 obj->draw_extension_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
1203 , ((Gtk::StateType)(state_type))
1204 , ((ShadowType)(shadow_type))
1206 , Glib::wrap(widget)
1207 , Glib::convert_const_gchar_ptr_to_ustring(detail)
1212 , ((PositionType)(gap_side))
1217 Glib::exception_handlers_invoke();
1222 BaseClassType *const base = static_cast<BaseClassType*>(
1223 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
1226 // Call the original underlying C function:
1227 if(base && base->draw_extension)
1228 (*base->draw_extension)(self, window, state_type, shadow_type, area, widget, detail, x, y, width, height, gap_side);
1232 void Style_Class::draw_focus_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, gint width, gint height)
1234 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
1235 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
1237 // Non-gtkmmproc-generated custom classes implicitly call the default
1238 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
1239 // generated classes can use this optimisation, which avoids the unnecessary
1240 // parameter conversions if there is no possibility of the virtual function
1241 // being overridden:
1242 if(obj && obj->is_derived_())
1244 try // Trap C++ exceptions which would normally be lost because this is a C callback.
1246 // Call the virtual member method, which derived classes might override.
1247 obj->draw_focus_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
1248 , ((Gtk::StateType)(state_type))
1250 , Glib::wrap(widget)
1251 , Glib::convert_const_gchar_ptr_to_ustring(detail)
1260 Glib::exception_handlers_invoke();
1265 BaseClassType *const base = static_cast<BaseClassType*>(
1266 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
1269 // Call the original underlying C function:
1270 if(base && base->draw_focus)
1271 (*base->draw_focus)(self, window, state_type, area, widget, detail, x, y, width, height);
1275 void Style_Class::draw_slider_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, gint width, gint height, GtkOrientation orientation)
1277 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
1278 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
1280 // Non-gtkmmproc-generated custom classes implicitly call the default
1281 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
1282 // generated classes can use this optimisation, which avoids the unnecessary
1283 // parameter conversions if there is no possibility of the virtual function
1284 // being overridden:
1285 if(obj && obj->is_derived_())
1287 try // Trap C++ exceptions which would normally be lost because this is a C callback.
1289 // Call the virtual member method, which derived classes might override.
1290 obj->draw_slider_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
1291 , ((Gtk::StateType)(state_type))
1292 , ((ShadowType)(shadow_type))
1294 , Glib::wrap(widget)
1295 , Glib::convert_const_gchar_ptr_to_ustring(detail)
1300 , ((Orientation)(orientation))
1305 Glib::exception_handlers_invoke();
1310 BaseClassType *const base = static_cast<BaseClassType*>(
1311 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
1314 // Call the original underlying C function:
1315 if(base && base->draw_slider)
1316 (*base->draw_slider)(self, window, state_type, shadow_type, area, widget, detail, x, y, width, height, orientation);
1320 void Style_Class::draw_handle_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GtkShadowType shadow_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, gint width, gint height, GtkOrientation orientation)
1322 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
1323 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
1325 // Non-gtkmmproc-generated custom classes implicitly call the default
1326 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
1327 // generated classes can use this optimisation, which avoids the unnecessary
1328 // parameter conversions if there is no possibility of the virtual function
1329 // being overridden:
1330 if(obj && obj->is_derived_())
1332 try // Trap C++ exceptions which would normally be lost because this is a C callback.
1334 // Call the virtual member method, which derived classes might override.
1335 obj->draw_handle_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
1336 , ((Gtk::StateType)(state_type))
1337 , ((ShadowType)(shadow_type))
1339 , Glib::wrap(widget)
1340 , Glib::convert_const_gchar_ptr_to_ustring(detail)
1345 , ((Orientation)(orientation))
1350 Glib::exception_handlers_invoke();
1355 BaseClassType *const base = static_cast<BaseClassType*>(
1356 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
1359 // Call the original underlying C function:
1360 if(base && base->draw_handle)
1361 (*base->draw_handle)(self, window, state_type, shadow_type, area, widget, detail, x, y, width, height, orientation);
1365 void Style_Class::draw_expander_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, GtkExpanderStyle expander_style)
1367 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
1368 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
1370 // Non-gtkmmproc-generated custom classes implicitly call the default
1371 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
1372 // generated classes can use this optimisation, which avoids the unnecessary
1373 // parameter conversions if there is no possibility of the virtual function
1374 // being overridden:
1375 if(obj && obj->is_derived_())
1377 try // Trap C++ exceptions which would normally be lost because this is a C callback.
1379 // Call the virtual member method, which derived classes might override.
1380 obj->draw_expander_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
1381 , ((Gtk::StateType)(state_type))
1383 , Glib::wrap(widget)
1384 , Glib::convert_const_gchar_ptr_to_ustring(detail)
1387 , ((ExpanderStyle)(expander_style))
1392 Glib::exception_handlers_invoke();
1397 BaseClassType *const base = static_cast<BaseClassType*>(
1398 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
1401 // Call the original underlying C function:
1402 if(base && base->draw_expander)
1403 (*base->draw_expander)(self, window, state_type, area, widget, detail, x, y, expander_style);
1407 void Style_Class::draw_layout_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, gboolean use_text, GdkRectangle* area, GtkWidget* widget, const gchar* detail, gint x, gint y, PangoLayout* layout)
1409 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
1410 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
1412 // Non-gtkmmproc-generated custom classes implicitly call the default
1413 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
1414 // generated classes can use this optimisation, which avoids the unnecessary
1415 // parameter conversions if there is no possibility of the virtual function
1416 // being overridden:
1417 if(obj && obj->is_derived_())
1419 try // Trap C++ exceptions which would normally be lost because this is a C callback.
1421 // Call the virtual member method, which derived classes might override.
1422 obj->draw_layout_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
1423 , ((Gtk::StateType)(state_type))
1426 , Glib::wrap(widget)
1427 , Glib::convert_const_gchar_ptr_to_ustring(detail)
1430 , Glib::wrap(layout)
1435 Glib::exception_handlers_invoke();
1440 BaseClassType *const base = static_cast<BaseClassType*>(
1441 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
1444 // Call the original underlying C function:
1445 if(base && base->draw_layout)
1446 (*base->draw_layout)(self, window, state_type, use_text, area, widget, detail, x, y, layout);
1450 void Style_Class::draw_resize_grip_vfunc_callback(GtkStyle* self, GdkWindow* window, GtkStateType state_type, GdkRectangle* area, GtkWidget* widget, const gchar* detail, GdkWindowEdge edge, gint x, gint y, gint width, gint height)
1452 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
1453 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
1455 // Non-gtkmmproc-generated custom classes implicitly call the default
1456 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
1457 // generated classes can use this optimisation, which avoids the unnecessary
1458 // parameter conversions if there is no possibility of the virtual function
1459 // being overridden:
1460 if(obj && obj->is_derived_())
1462 try // Trap C++ exceptions which would normally be lost because this is a C callback.
1464 // Call the virtual member method, which derived classes might override.
1465 obj->draw_resize_grip_vfunc(Glib::wrap((GdkWindowObject*)(window), true)
1466 , ((Gtk::StateType)(state_type))
1468 , Glib::wrap(widget)
1469 , Glib::convert_const_gchar_ptr_to_ustring(detail)
1470 , ((Gdk::WindowEdge)(edge))
1479 Glib::exception_handlers_invoke();
1484 BaseClassType *const base = static_cast<BaseClassType*>(
1485 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
1488 // Call the original underlying C function:
1489 if(base && base->draw_resize_grip)
1490 (*base->draw_resize_grip)(self, window, state_type, area, widget, detail, edge, x, y, width, height);
1495 void Style_Class::realize_callback(GtkStyle* self)
1497 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
1498 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
1500 // Non-gtkmmproc-generated custom classes implicitly call the default
1501 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
1502 // generated classes can use this optimisation, which avoids the unnecessary
1503 // parameter conversions if there is no possibility of the virtual function
1504 // being overridden:
1505 if(obj && obj->is_derived_())
1507 try // Trap C++ exceptions which would normally be lost because this is a C callback.
1509 // Call the virtual member method, which derived classes might override.
1514 Glib::exception_handlers_invoke();
1519 BaseClassType *const base = static_cast<BaseClassType*>(
1520 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
1523 // Call the original underlying C function:
1524 if(base && base->realize)
1525 (*base->realize)(self);
1529 void Style_Class::unrealize_callback(GtkStyle* self)
1531 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
1532 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
1534 // Non-gtkmmproc-generated custom classes implicitly call the default
1535 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
1536 // generated classes can use this optimisation, which avoids the unnecessary
1537 // parameter conversions if there is no possibility of the virtual function
1538 // being overridden:
1539 if(obj && obj->is_derived_())
1541 try // Trap C++ exceptions which would normally be lost because this is a C callback.
1543 // Call the virtual member method, which derived classes might override.
1544 obj->on_unrealize();
1548 Glib::exception_handlers_invoke();
1553 BaseClassType *const base = static_cast<BaseClassType*>(
1554 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
1557 // Call the original underlying C function:
1558 if(base && base->unrealize)
1559 (*base->unrealize)(self);
1564 Glib::ObjectBase* Style_Class::wrap_new(GObject* object)
1566 return new Style((GtkStyle*)object);
1570 /* The implementation: */
1572 GtkStyle* Style::gobj_copy()
1578 Style::Style(const Glib::ConstructParams& construct_params)
1580 Glib::Object(construct_params)
1583 Style::Style(GtkStyle* castitem)
1585 Glib::Object((GObject*)(castitem))
1592 Style::CppClassType Style::style_class_; // initialize static member
1594 GType Style::get_type()
1596 return style_class_.init().get_type();
1599 GType Style::get_base_type()
1601 return gtk_style_get_type();
1607 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
1608 Glib::Object(Glib::ConstructParams(style_class_.init()))
1612 Glib::RefPtr<Style> Style::create()
1614 return Glib::RefPtr<Style>( new Style() );
1616 void Style::set_fg(StateType state, const Gdk::Color& color)
1618 gobj()->fg[state] = *color.gobj();
1621 Gdk::Color Style::get_fg(StateType state) const
1623 return Gdk::Color(const_cast<GdkColor*>(&gobj()->fg[state]), true);
1626 void Style::set_bg(StateType state, const Gdk::Color& color)
1628 gobj()->bg[state] = *color.gobj();
1631 Gdk::Color Style::get_bg(StateType state) const
1633 return Gdk::Color(const_cast<GdkColor*>(&gobj()->bg[state]), true);
1636 void Style::set_light(StateType state, const Gdk::Color& color)
1638 gobj()->light[state] = *color.gobj();
1641 Gdk::Color Style::get_light(StateType state) const
1643 return Gdk::Color(const_cast<GdkColor*>(&gobj()->light[state]), true);
1646 void Style::set_dark(StateType state, const Gdk::Color& color)
1648 gobj()->dark[state] = *color.gobj();
1651 Gdk::Color Style::get_dark(StateType state) const
1653 return Gdk::Color(const_cast<GdkColor*>(&gobj()->dark[state]), true);
1656 void Style::set_mid(StateType state, const Gdk::Color& color)
1658 gobj()->mid[state] = *color.gobj();
1661 Gdk::Color Style::get_mid(StateType state) const
1663 return Gdk::Color(const_cast<GdkColor*>(&gobj()->mid[state]), true);
1666 void Style::set_text(StateType state, const Gdk::Color& color)
1668 gobj()->text[state] = *color.gobj();
1671 Gdk::Color Style::get_text(StateType state) const
1673 return Gdk::Color(const_cast<GdkColor*>(&gobj()->text[state]), true);
1676 void Style::set_base(StateType state, const Gdk::Color& color)
1678 gobj()->base[state] = *color.gobj();
1681 Gdk::Color Style::get_base(StateType state) const
1683 return Gdk::Color(const_cast<GdkColor*>(&gobj()->base[state]), true);
1686 void Style::set_text_aa(StateType state, const Gdk::Color& color)
1688 gobj()->text_aa[state] = *color.gobj();
1691 Gdk::Color Style::get_text_aa(StateType state) const
1693 return Gdk::Color(const_cast<GdkColor*>(&gobj()->text_aa[state]), true);
1696 void Style::set_black(const Gdk::Color& value)
1698 gobj()->black = (*(value).gobj());
1701 Gdk::Color Style::get_black() const
1703 return Gdk::Color(const_cast<GdkColor*>(&(gobj()->black)), true);
1706 void Style::set_white(const Gdk::Color& value)
1708 gobj()->white = (*(value).gobj());
1711 Gdk::Color Style::get_white() const
1713 return Gdk::Color(const_cast<GdkColor*>(&(gobj()->white)), true);
1716 int Style::get_xthickness() const
1718 return gobj()->xthickness;
1721 int Style::get_ythickness() const
1723 return gobj()->ythickness;
1726 Glib::RefPtr<Gdk::GC> Style::get_black_gc()
1728 Glib::RefPtr<Gdk::GC> ref_ptr(Glib::wrap(gobj()->black_gc));
1731 ref_ptr->reference();
1736 Glib::RefPtr<const Gdk::GC> Style::get_black_gc() const
1738 Glib::RefPtr<const Gdk::GC> ref_ptr(Glib::wrap(gobj()->black_gc));
1741 ref_ptr->reference();
1746 Glib::RefPtr<Gdk::GC> Style::get_white_gc()
1748 Glib::RefPtr<Gdk::GC> ref_ptr(Glib::wrap(gobj()->white_gc));
1751 ref_ptr->reference();
1756 Glib::RefPtr<const Gdk::GC> Style::get_white_gc() const
1758 Glib::RefPtr<const Gdk::GC> ref_ptr(Glib::wrap(gobj()->white_gc));
1761 ref_ptr->reference();
1766 void Style::paint_arrow(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, ArrowType arrow_type, bool fill, int x, int y, int width, int height) const
1768 gtk_paint_arrow(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), ((GtkShadowType)(shadow_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), ((GtkArrowType)(arrow_type)), static_cast<int>(fill), x, y, width, height);
1771 void Style::paint_box(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const
1773 gtk_paint_box(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), ((GtkShadowType)(shadow_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), x, y, width, height);
1776 void Style::paint_box_gap(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height, PositionType gap_side, int gap_x, int gap_width) const
1778 gtk_paint_box_gap(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), ((GtkShadowType)(shadow_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), const_cast<gchar*>(detail.c_str()), x, y, width, height, ((GtkPositionType)(gap_side)), gap_x, gap_width);
1781 void Style::paint_check(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const
1783 gtk_paint_check(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), ((GtkShadowType)(shadow_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), x, y, width, height);
1786 void Style::paint_diamond(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const
1788 gtk_paint_diamond(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), ((GtkShadowType)(shadow_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), x, y, width, height);
1791 void Style::paint_extension(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height, PositionType gap_side) const
1793 gtk_paint_extension(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), ((GtkShadowType)(shadow_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), const_cast<gchar*>(detail.c_str()), x, y, width, height, ((GtkPositionType)(gap_side)));
1796 void Style::paint_flat_box(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const
1798 gtk_paint_flat_box(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), ((GtkShadowType)(shadow_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), x, y, width, height);
1801 void Style::paint_focus(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const
1803 gtk_paint_focus(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), x, y, width, height);
1806 void Style::paint_handle(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height, Orientation orientation) const
1808 gtk_paint_handle(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), ((GtkShadowType)(shadow_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), x, y, width, height, ((GtkOrientation)(orientation)));
1811 void Style::paint_hline(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x1, int x2, int y) const
1813 gtk_paint_hline(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), x1, x2, y);
1816 void Style::paint_option(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const
1818 gtk_paint_option(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), ((GtkShadowType)(shadow_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), x, y, width, height);
1821 void Style::paint_shadow(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const
1823 gtk_paint_shadow(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), ((GtkShadowType)(shadow_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), x, y, width, height);
1826 void Style::paint_shadow_gap(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height, PositionType gap_side, int gap_x, int gap_width) const
1828 gtk_paint_shadow_gap(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), ((GtkShadowType)(shadow_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), const_cast<gchar*>(detail.c_str()), x, y, width, height, ((GtkPositionType)(gap_side)), gap_x, gap_width);
1831 void Style::paint_slider(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height, Orientation orientation) const
1833 gtk_paint_slider(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), ((GtkShadowType)(shadow_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), x, y, width, height, ((GtkOrientation)(orientation)));
1836 void Style::paint_tab(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, int width, int height) const
1838 gtk_paint_tab(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), ((GtkShadowType)(shadow_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), x, y, width, height);
1841 void Style::paint_vline(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int y1, int y2, int x) const
1843 gtk_paint_vline(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), y1, y2, x);
1846 void Style::paint_expander(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, ExpanderStyle expander_style) const
1848 gtk_paint_expander(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), x, y, ((GtkExpanderStyle)(expander_style)));
1851 void Style::paint_layout(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, bool use_text, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, int x, int y, const Glib::RefPtr<Pango::Layout>& layout) const
1853 gtk_paint_layout(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), static_cast<int>(use_text), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), x, y, Glib::unwrap(layout));
1856 void Style::paint_resize_grip(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget& widget, const Glib::ustring& detail, Gdk::WindowEdge edge, int x, int y, int width, int height) const
1858 gtk_paint_resize_grip(const_cast<GtkStyle*>(gobj()), Glib::unwrap(window), ((GtkStateType)(state_type)), const_cast<GdkRectangle*>(area.gobj()), (widget).gobj(), detail.c_str(), ((GdkWindowEdge)(edge)), x, y, width, height);
1861 Glib::RefPtr<Style> Style::copy()
1863 return Glib::wrap(gtk_style_copy(gobj()));
1866 void Style::set_background(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type)
1868 gtk_style_set_background(gobj(), Glib::unwrap(window), ((GtkStateType)(state_type)));
1871 void Style::apply_default_background(const Glib::RefPtr<Gdk::Window>& window, bool set_bg, Gtk::StateType state_type, const Gdk::Rectangle& area, int x, int y, int width, int height)
1873 gtk_style_apply_default_background(gobj(), Glib::unwrap(window), static_cast<int>(set_bg), ((GtkStateType)(state_type)), const_cast<GdkRectangle*>(area.gobj()), x, y, width, height);
1876 IconSet Style::lookup_icon_set(const Gtk::StockID& stock_id)
1878 return Glib::wrap(gtk_style_lookup_icon_set(gobj(), (stock_id).get_c_str()));
1881 Glib::RefPtr<Gdk::Pixbuf> Style::render_icon(const IconSource& source, Gtk::TextDirection direction, Gtk::StateType state, Gtk::IconSize size, Gtk::Widget& widget, const Glib::ustring& detail)
1883 return Glib::wrap(gtk_style_render_icon(gobj(), (source).gobj(), ((GtkTextDirection)(direction)), ((GtkStateType)(state)), static_cast<GtkIconSize>(int(size)), (widget).gobj(), detail.c_str()));
1887 Glib::SignalProxy0< void > Style::signal_realize()
1889 return Glib::SignalProxy0< void >(this, &Style_signal_realize_info);
1892 Glib::SignalProxy0< void > Style::signal_unrealize()
1894 return Glib::SignalProxy0< void >(this, &Style_signal_unrealize_info);
1898 void Gtk::Style::on_realize()
1900 BaseClassType *const base = static_cast<BaseClassType*>(
1901 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
1904 if(base && base->realize)
1905 (*base->realize)(gobj());
1908 void Gtk::Style::on_unrealize()
1910 BaseClassType *const base = static_cast<BaseClassType*>(
1911 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
1914 if(base && base->unrealize)
1915 (*base->unrealize)(gobj());
1919 void Gtk::Style::realize_vfunc()
1921 BaseClassType *const base = static_cast<BaseClassType*>(
1922 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
1925 if(base && base->realize)
1926 (*base->realize)(gobj());
1929 void Gtk::Style::unrealize_vfunc()
1931 BaseClassType *const base = static_cast<BaseClassType*>(
1932 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
1935 if(base && base->unrealize)
1936 (*base->unrealize)(gobj());
1939 void Gtk::Style::copy_vfunc(const Glib::RefPtr<Style>& src)
1941 BaseClassType *const base = static_cast<BaseClassType*>(
1942 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
1945 if(base && base->copy)
1946 (*base->copy)(gobj(),Glib::unwrap(src));
1949 Glib::RefPtr<Style> Gtk::Style::clone_vfunc()
1951 BaseClassType *const base = static_cast<BaseClassType*>(
1952 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
1955 if(base && base->clone)
1956 return Glib::wrap((*base->clone)(gobj()));
1958 typedef Glib::RefPtr<Style> RType;
1962 void Gtk::Style::init_from_rc_vfunc(const Glib::RefPtr<RcStyle>& rc_style)
1964 BaseClassType *const base = static_cast<BaseClassType*>(
1965 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
1968 if(base && base->init_from_rc)
1969 (*base->init_from_rc)(gobj(),Glib::unwrap(rc_style));
1972 void Gtk::Style::set_background_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type)
1974 BaseClassType *const base = static_cast<BaseClassType*>(
1975 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
1978 if(base && base->set_background)
1979 (*base->set_background)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)));
1982 Glib::RefPtr<Gdk::Pixbuf> Gtk::Style::render_icon_vfunc(const IconSource& source, TextDirection direction, Gtk::StateType state, IconSize size, Widget* widget, const Glib::ustring& detail)
1984 BaseClassType *const base = static_cast<BaseClassType*>(
1985 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
1988 if(base && base->render_icon)
1989 return Glib::wrap((*base->render_icon)(gobj(),(source).gobj(),((GtkTextDirection)(direction)),((GtkStateType)(state)),static_cast<GtkIconSize>(int(size)),(GtkWidget*)Glib::unwrap(widget),detail.c_str()));
1991 typedef Glib::RefPtr<Gdk::Pixbuf> RType;
1995 void Gtk::Style::draw_hline_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x1, int x2, int y)
1997 BaseClassType *const base = static_cast<BaseClassType*>(
1998 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2001 if(base && base->draw_hline)
2002 (*base->draw_hline)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x1,x2,y);
2005 void Gtk::Style::draw_vline_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int y1, int y2, int x)
2007 BaseClassType *const base = static_cast<BaseClassType*>(
2008 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2011 if(base && base->draw_vline)
2012 (*base->draw_vline)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),y1,y2,x);
2015 void Gtk::Style::draw_shadow_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height)
2017 BaseClassType *const base = static_cast<BaseClassType*>(
2018 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2021 if(base && base->draw_shadow)
2022 (*base->draw_shadow)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,width,height);
2025 void Gtk::Style::draw_polygon_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, GdkPoint* point, int npoints, bool fill)
2027 BaseClassType *const base = static_cast<BaseClassType*>(
2028 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2031 if(base && base->draw_polygon)
2032 (*base->draw_polygon)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),point,npoints,static_cast<int>(fill));
2035 void Gtk::Style::draw_arrow_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, Gtk::ArrowType arrow_type, bool fill, int x, int y, int width, int height)
2037 BaseClassType *const base = static_cast<BaseClassType*>(
2038 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2041 if(base && base->draw_arrow)
2042 (*base->draw_arrow)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),((GtkArrowType)(arrow_type)),static_cast<int>(fill),x,y,width,height);
2045 void Gtk::Style::draw_diamond_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height)
2047 BaseClassType *const base = static_cast<BaseClassType*>(
2048 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2051 if(base && base->draw_diamond)
2052 (*base->draw_diamond)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,width,height);
2055 void Gtk::Style::draw_string_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, const Glib::ustring& string)
2057 BaseClassType *const base = static_cast<BaseClassType*>(
2058 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2061 if(base && base->draw_string)
2062 (*base->draw_string)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,string.c_str());
2065 void Gtk::Style::draw_box_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height)
2067 BaseClassType *const base = static_cast<BaseClassType*>(
2068 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2071 if(base && base->draw_box)
2072 (*base->draw_box)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,width,height);
2075 void Gtk::Style::draw_flat_box_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height)
2077 BaseClassType *const base = static_cast<BaseClassType*>(
2078 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2081 if(base && base->draw_flat_box)
2082 (*base->draw_flat_box)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,width,height);
2085 void Gtk::Style::draw_check_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height)
2087 BaseClassType *const base = static_cast<BaseClassType*>(
2088 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2091 if(base && base->draw_check)
2092 (*base->draw_check)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,width,height);
2095 void Gtk::Style::draw_option_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height)
2097 BaseClassType *const base = static_cast<BaseClassType*>(
2098 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2101 if(base && base->draw_option)
2102 (*base->draw_option)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,width,height);
2105 void Gtk::Style::draw_tab_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height)
2107 BaseClassType *const base = static_cast<BaseClassType*>(
2108 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2111 if(base && base->draw_tab)
2112 (*base->draw_tab)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,width,height);
2115 void Gtk::Style::draw_shadow_gap_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height, Gtk::PositionType gap_side, int gap_x, int gap_width)
2117 BaseClassType *const base = static_cast<BaseClassType*>(
2118 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2121 if(base && base->draw_shadow_gap)
2122 (*base->draw_shadow_gap)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,width,height,((GtkPositionType)(gap_side)),gap_x,gap_width);
2125 void Gtk::Style::draw_box_gap_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height, Gtk::PositionType gap_side, int gap_x, int gap_width)
2127 BaseClassType *const base = static_cast<BaseClassType*>(
2128 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2131 if(base && base->draw_box_gap)
2132 (*base->draw_box_gap)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,width,height,((GtkPositionType)(gap_side)),gap_x,gap_width);
2135 void Gtk::Style::draw_extension_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height, PositionType gap_side)
2137 BaseClassType *const base = static_cast<BaseClassType*>(
2138 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2141 if(base && base->draw_extension)
2142 (*base->draw_extension)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,width,height,((GtkPositionType)(gap_side)));
2145 void Gtk::Style::draw_focus_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height)
2147 BaseClassType *const base = static_cast<BaseClassType*>(
2148 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2151 if(base && base->draw_focus)
2152 (*base->draw_focus)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,width,height);
2155 void Gtk::Style::draw_slider_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height, Orientation orientation)
2157 BaseClassType *const base = static_cast<BaseClassType*>(
2158 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2161 if(base && base->draw_slider)
2162 (*base->draw_slider)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,width,height,((GtkOrientation)(orientation)));
2165 void Gtk::Style::draw_handle_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, ShadowType shadow_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, int width, int height, Orientation orientation)
2167 BaseClassType *const base = static_cast<BaseClassType*>(
2168 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2171 if(base && base->draw_handle)
2172 (*base->draw_handle)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),((GtkShadowType)(shadow_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,width,height,((GtkOrientation)(orientation)));
2175 void Gtk::Style::draw_expander_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, ExpanderStyle expander_style)
2177 BaseClassType *const base = static_cast<BaseClassType*>(
2178 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2181 if(base && base->draw_expander)
2182 (*base->draw_expander)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,((GtkExpanderStyle)(expander_style)));
2185 void Gtk::Style::draw_layout_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, bool use_text, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int x, int y, const Glib::RefPtr<Pango::Layout>& layout)
2187 BaseClassType *const base = static_cast<BaseClassType*>(
2188 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2191 if(base && base->draw_layout)
2192 (*base->draw_layout)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),static_cast<int>(use_text),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),x,y,Glib::unwrap(layout));
2195 void Gtk::Style::draw_resize_grip_vfunc(const Glib::RefPtr<Gdk::Window>& window, Gtk::StateType state_type, const Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, Gdk::WindowEdge edge, int x, int y, int width, int height)
2197 BaseClassType *const base = static_cast<BaseClassType*>(
2198 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
2201 if(base && base->draw_resize_grip)
2202 (*base->draw_resize_grip)(gobj(),Glib::unwrap(window),((GtkStateType)(state_type)),const_cast<GdkRectangle*>(area.gobj()),(GtkWidget*)Glib::unwrap(widget),detail.c_str(),((GdkWindowEdge)(edge)),x,y,width,height);