1 // Generated by gtkmmproc -- DO NOT MODIFY!
4 #include <giomm/themedicon.h>
5 #include <giomm/private/themedicon_p.h>
7 // -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
9 /* Copyright (C) 2007 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.
31 ThemedIcon::ThemedIcon(const std::string& iconname, bool use_default_callbacks)
33 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
35 Glib::Object(Glib::ConstructParams(themedicon_class_.init(), "name",iconname.c_str(),"use-default-fallbacks",gboolean(use_default_callbacks), static_cast<char*>(0)))
43 } // anonymous namespace
49 Glib::RefPtr<Gio::ThemedIcon> wrap(GThemedIcon* object, bool take_copy)
51 return Glib::RefPtr<Gio::ThemedIcon>( dynamic_cast<Gio::ThemedIcon*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
52 //We use dynamic_cast<> in case of multiple inheritance.
55 } /* namespace Glib */
62 /* The *_Class implementation: */
64 const Glib::Class& ThemedIcon_Class::init()
66 if(!gtype_) // create the GType if necessary
68 // Glib::Class has to know the class init function to clone custom types.
69 class_init_func_ = &ThemedIcon_Class::class_init_function;
71 // This is actually just optimized away, apparently with no harm.
72 // Make sure that the parent type has been created.
73 //CppClassParent::CppObjectType::get_type();
75 // Create the wrapper type, with the same class/instance size as the base type.
76 register_derived_type(g_themed_icon_get_type());
78 // Add derived versions of interfaces, if the C type implements any interfaces:
79 Icon::add_interface(get_type());
86 void ThemedIcon_Class::class_init_function(void* g_class, void* class_data)
88 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
89 CppClassParent::class_init_function(klass, class_data);
91 #ifdef GLIBMM_VFUNCS_ENABLED
92 #endif //GLIBMM_VFUNCS_ENABLED
94 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
95 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
98 #ifdef GLIBMM_VFUNCS_ENABLED
99 #endif //GLIBMM_VFUNCS_ENABLED
101 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
102 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
105 Glib::ObjectBase* ThemedIcon_Class::wrap_new(GObject* object)
107 return new ThemedIcon((GThemedIcon*)object);
111 /* The implementation: */
113 GThemedIcon* ThemedIcon::gobj_copy()
119 ThemedIcon::ThemedIcon(const Glib::ConstructParams& construct_params)
121 Glib::Object(construct_params)
126 ThemedIcon::ThemedIcon(GThemedIcon* castitem)
128 Glib::Object((GObject*)(castitem))
132 ThemedIcon::~ThemedIcon()
136 ThemedIcon::CppClassType ThemedIcon::themedicon_class_; // initialize static member
138 GType ThemedIcon::get_type()
140 return themedicon_class_.init().get_type();
143 GType ThemedIcon::get_base_type()
145 return g_themed_icon_get_type();
149 Glib::RefPtr<ThemedIcon> ThemedIcon::create(const std::string& iconname, bool use_default_callbacks)
151 return Glib::RefPtr<ThemedIcon>( new ThemedIcon(iconname, use_default_callbacks) );
153 void ThemedIcon::prepend_name(const std::string& iconname)
155 g_themed_icon_prepend_name(gobj(), iconname.c_str());
158 void ThemedIcon::append_name(const std::string& iconname)
160 g_themed_icon_append_name(gobj(), iconname.c_str());
164 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
165 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
167 #ifdef GLIBMM_VFUNCS_ENABLED
168 #endif //GLIBMM_VFUNCS_ENABLED