// Generated by gmmproc 2.88.0 -- DO NOT MODIFY!


#include <glibmm.h>

#include <gtkmm/enumlistitem.h>
#include <gtkmm/private/enumlistitem_p.h>


/* Copyright (C) 2026 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, see <http://www.gnu.org/licenses/>.
 */

namespace
{
} // anonymous namespace


namespace Glib
{

Glib::RefPtr<Gtk::EnumListItem> wrap(GtkEnumListItem* object, bool take_copy)
{
  return Glib::make_refptr_for_instance<Gtk::EnumListItem>( dynamic_cast<Gtk::EnumListItem*> (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& EnumListItem_Class::init()
{
  if(!gtype_) // create the GType if necessary
  {
    // Do not derive a GType, or use a derived class:
    gtype_ = gtk_enum_list_item_get_type();

  }

  return *this;
}


Glib::ObjectBase* EnumListItem_Class::wrap_new(GObject* object)
{
  return new EnumListItem((GtkEnumListItem*)object);
}


/* The implementation: */

GtkEnumListItem* EnumListItem::gobj_copy()
{
  reference();
  return gobj();
}

EnumListItem::EnumListItem(const Glib::ConstructParams& construct_params)
:
  Glib::Object(construct_params)
{

}

EnumListItem::EnumListItem(GtkEnumListItem* castitem)
:
  Glib::Object((GObject*)(castitem))
{}


EnumListItem::EnumListItem(EnumListItem&& src) noexcept
: Glib::Object(std::move(src))
{}

EnumListItem& EnumListItem::operator=(EnumListItem&& src) noexcept
{
  Glib::Object::operator=(std::move(src));
  return *this;
}


EnumListItem::~EnumListItem() noexcept
{}


EnumListItem::CppClassType EnumListItem::enumlistitem_class_; // initialize static member

GType EnumListItem::get_type()
{
  return enumlistitem_class_.init().get_type();
}


GType EnumListItem::get_base_type()
{
  return gtk_enum_list_item_get_type();
}


int EnumListItem::get_value() const
{
  return gtk_enum_list_item_get_value(const_cast<GtkEnumListItem*>(gobj()));
}

Glib::ustring EnumListItem::get_name() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_enum_list_item_get_name(const_cast<GtkEnumListItem*>(gobj())));
}

Glib::ustring EnumListItem::get_nick() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_enum_list_item_get_nick(const_cast<GtkEnumListItem*>(gobj())));
}


Glib::PropertyProxy_ReadOnly< int > EnumListItem::property_value() const
{
  return Glib::PropertyProxy_ReadOnly< int >(this, "value");
}

Glib::PropertyProxy_ReadOnly< Glib::ustring > EnumListItem::property_name() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "name");
}

Glib::PropertyProxy_ReadOnly< Glib::ustring > EnumListItem::property_nick() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "nick");
}


} // namespace Gtk


