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


#include <glibmm.h>

#include <gtkmm/enumlist.h>
#include <gtkmm/private/enumlist_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::EnumList> wrap(GtkEnumList* object, bool take_copy)
{
  return Glib::make_refptr_for_instance<Gtk::EnumList>( dynamic_cast<Gtk::EnumList*> (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& EnumList_Class::init()
{
  if(!gtype_) // create the GType if necessary
  {
    // Do not derive a GType, or use a derived class:
    gtype_ = gtk_enum_list_get_type();

  }

  return *this;
}


Glib::ObjectBase* EnumList_Class::wrap_new(GObject* object)
{
  return new EnumList((GtkEnumList*)object);
}


/* The implementation: */

GtkEnumList* EnumList::gobj_copy()
{
  reference();
  return gobj();
}

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

}

EnumList::EnumList(GtkEnumList* castitem)
:
  Glib::Object((GObject*)(castitem))
{}


EnumList::EnumList(EnumList&& src) noexcept
: Glib::Object(std::move(src))
  , Gio::ListModel(std::move(src))
{}

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


EnumList::~EnumList() noexcept
{}


EnumList::CppClassType EnumList::enumlist_class_; // initialize static member

GType EnumList::get_type()
{
  return enumlist_class_.init().get_type();
}


GType EnumList::get_base_type()
{
  return gtk_enum_list_get_type();
}


EnumList::EnumList(GType enum_type)
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(nullptr),
  Glib::Object(Glib::ConstructParams(enumlist_class_.init(), "enum_type", enum_type, nullptr))
{
  

}

Glib::RefPtr<EnumList> EnumList::create(GType enum_type)
{
  return Glib::make_refptr_for_instance<EnumList>( new EnumList(enum_type) );
}

GType EnumList::get_enum_type() const
{
  return gtk_enum_list_get_enum_type(const_cast<GtkEnumList*>(gobj()));
}

unsigned int EnumList::find(int value) const
{
  return gtk_enum_list_find(const_cast<GtkEnumList*>(gobj()), value);
}


static_assert(Glib::Traits::ValueCompatibleWithWrapProperty<GType>::value,
  "Type GType cannot be used in _WRAP_PROPERTY. "
  "There is no suitable template specialization of Glib::Value<>.");

Glib::PropertyProxy_ReadOnly< GType > EnumList::property_enum_type() const
{
  return Glib::PropertyProxy_ReadOnly< GType >(this, "enum-type");
}

static_assert(Glib::Traits::ValueCompatibleWithWrapProperty<GType>::value,
  "Type GType cannot be used in _WRAP_PROPERTY. "
  "There is no suitable template specialization of Glib::Value<>.");

Glib::PropertyProxy_ReadOnly< GType > EnumList::property_item_type() const
{
  return Glib::PropertyProxy_ReadOnly< GType >(this, "item-type");
}

Glib::PropertyProxy_ReadOnly< unsigned int > EnumList::property_n_items() const
{
  return Glib::PropertyProxy_ReadOnly< unsigned int >(this, "n-items");
}


} // namespace Gtk


