// Generated by gmmproc 2.54.0 -- DO NOT MODIFY! #undef GTK_DISABLE_DEPRECATED #define GDK_DISABLE_DEPRECATION_WARNINGS 1 #include #ifndef GTKMM_DISABLE_DEPRECATED #include #include #include /* Copyright (C) 2010 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include namespace { } // anonymous namespace namespace Glib { Glib::RefPtr wrap(GtkNumerableIcon* object, bool take_copy) { return Glib::RefPtr( dynamic_cast (Glib::wrap_auto ((GObject*)(object), take_copy)) ); //We use dynamic_cast<> in case of multiple inheritance. } } /* namespace Glib */ namespace Gtk { /* The *_Class implementation: */ const Glib::Class& NumerableIcon_Class::init() { if(!gtype_) // create the GType if necessary { // Glib::Class has to know the class init function to clone custom types. class_init_func_ = &NumerableIcon_Class::class_init_function; // This is actually just optimized away, apparently with no harm. // Make sure that the parent type has been created. //CppClassParent::CppObjectType::get_type(); // Create the wrapper type, with the same class/instance size as the base type. register_derived_type(gtk_numerable_icon_get_type()); // Add derived versions of interfaces, if the C type implements any interfaces: } return *this; } void NumerableIcon_Class::class_init_function(void* g_class, void* class_data) { const auto klass = static_cast(g_class); CppClassParent::class_init_function(klass, class_data); } Glib::ObjectBase* NumerableIcon_Class::wrap_new(GObject* object) { return new NumerableIcon((GtkNumerableIcon*)object); } /* The implementation: */ GtkNumerableIcon* NumerableIcon::gobj_copy() { reference(); return gobj(); } NumerableIcon::NumerableIcon(const Glib::ConstructParams& construct_params) : Gio::EmblemedIcon(construct_params) { } NumerableIcon::NumerableIcon(GtkNumerableIcon* castitem) : Gio::EmblemedIcon((GEmblemedIcon*)(castitem)) {} NumerableIcon::NumerableIcon(NumerableIcon&& src) noexcept : Gio::EmblemedIcon(std::move(src)) {} NumerableIcon& NumerableIcon::operator=(NumerableIcon&& src) noexcept { Gio::EmblemedIcon::operator=(std::move(src)); return *this; } NumerableIcon::~NumerableIcon() noexcept {} NumerableIcon::CppClassType NumerableIcon::numerableicon_class_; // initialize static member GType NumerableIcon::get_type() { return numerableicon_class_.init().get_type(); } GType NumerableIcon::get_base_type() { return gtk_numerable_icon_get_type(); } NumerableIcon::NumerableIcon(const Glib::RefPtr& icon) : // Mark this class as non-derived to allow C++ vfuncs to be skipped. Glib::ObjectBase(nullptr), Gio::EmblemedIcon(Glib::ConstructParams(numerableicon_class_.init(), "icon", const_cast(Glib::unwrap(icon)), nullptr)) { } NumerableIcon::NumerableIcon(const Glib::RefPtr& icon, const Glib::RefPtr& style_context) : // Mark this class as non-derived to allow C++ vfuncs to be skipped. Glib::ObjectBase(nullptr), Gio::EmblemedIcon(Glib::ConstructParams(numerableicon_class_.init(), "icon", const_cast(Glib::unwrap(icon)), "style_context", Glib::unwrap(style_context), nullptr)) { } Glib::RefPtr NumerableIcon::create(const Glib::RefPtr& icon) { return Glib::RefPtr( new NumerableIcon(icon) ); } Glib::RefPtr NumerableIcon::create(const Glib::RefPtr& icon, const Glib::RefPtr& context) { return Glib::RefPtr( new NumerableIcon(icon, context) ); } Glib::RefPtr NumerableIcon::get_style_context() { Glib::RefPtr retvalue = Glib::wrap(gtk_numerable_icon_get_style_context(gobj())); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr NumerableIcon::get_style_context() const { return const_cast(this)->get_style_context(); } void NumerableIcon::set_style_context(const Glib::RefPtr& style) { gtk_numerable_icon_set_style_context(gobj(), Glib::unwrap(style)); } int NumerableIcon::get_count() const { return gtk_numerable_icon_get_count(const_cast(gobj())); } void NumerableIcon::set_count(int count) { gtk_numerable_icon_set_count(gobj(), count); } Glib::ustring NumerableIcon::get_label() const { return Glib::convert_const_gchar_ptr_to_ustring(gtk_numerable_icon_get_label(const_cast(gobj()))); } void NumerableIcon::set_label(const Glib::ustring& label) { gtk_numerable_icon_set_label(gobj(), label.c_str()); } void NumerableIcon::set_background_gicon(const Glib::RefPtr& icon) { gtk_numerable_icon_set_background_gicon(gobj(), const_cast(Glib::unwrap(icon))); } Glib::RefPtr NumerableIcon::get_background_gicon() { Glib::RefPtr retvalue = Glib::wrap(gtk_numerable_icon_get_background_gicon(gobj())); if(retvalue) retvalue->reference(); //The function does not do a ref for us. return retvalue; } Glib::RefPtr NumerableIcon::get_background_gicon() const { return const_cast(this)->get_background_gicon(); } void NumerableIcon::set_background_icon_name(const Glib::ustring& icon_name) { gtk_numerable_icon_set_background_icon_name(gobj(), icon_name.c_str()); } Glib::ustring NumerableIcon::get_background_icon_name() const { return Glib::convert_const_gchar_ptr_to_ustring(gtk_numerable_icon_get_background_icon_name(const_cast(gobj()))); } Glib::PropertyProxy< int > NumerableIcon::property_count() { return Glib::PropertyProxy< int >(this, "count"); } Glib::PropertyProxy_ReadOnly< int > NumerableIcon::property_count() const { return Glib::PropertyProxy_ReadOnly< int >(this, "count"); } Glib::PropertyProxy< Glib::ustring > NumerableIcon::property_label() { return Glib::PropertyProxy< Glib::ustring >(this, "label"); } Glib::PropertyProxy_ReadOnly< Glib::ustring > NumerableIcon::property_label() const { return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "label"); } Glib::PropertyProxy< Glib::RefPtr > NumerableIcon::property_style_context() { return Glib::PropertyProxy< Glib::RefPtr >(this, "style-context"); } Glib::PropertyProxy_ReadOnly< Glib::RefPtr > NumerableIcon::property_style_context() const { return Glib::PropertyProxy_ReadOnly< Glib::RefPtr >(this, "style-context"); } Glib::PropertyProxy< Glib::RefPtr > NumerableIcon::property_background_icon() { return Glib::PropertyProxy< Glib::RefPtr >(this, "background-icon"); } Glib::PropertyProxy_ReadOnly< Glib::RefPtr > NumerableIcon::property_background_icon() const { return Glib::PropertyProxy_ReadOnly< Glib::RefPtr >(this, "background-icon"); } Glib::PropertyProxy< Glib::ustring > NumerableIcon::property_background_icon_name() { return Glib::PropertyProxy< Glib::ustring >(this, "background-icon-name"); } Glib::PropertyProxy_ReadOnly< Glib::ustring > NumerableIcon::property_background_icon_name() const { return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "background-icon-name"); } } // namespace Gtk #endif // GTKMM_DISABLE_DEPRECATED