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


#include <glibmm.h>

#include <gtkmm/listheader.h>
#include <gtkmm/private/listheader_p.h>


/* Copyright (C) 2023 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/>.
 */

#include <gtk/gtk.h>

namespace Gtk
{

void ListHeader::unset_child()
{
  gtk_list_header_set_child(gobj(), nullptr);
}

} // namespace Gtk

namespace
{
} // anonymous namespace


namespace Glib
{

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

  }

  return *this;
}


Glib::ObjectBase* ListHeader_Class::wrap_new(GObject* object)
{
  return new ListHeader((GtkListHeader*)object);
}


/* The implementation: */

GtkListHeader* ListHeader::gobj_copy()
{
  reference();
  return gobj();
}

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

}

ListHeader::ListHeader(GtkListHeader* castitem)
:
  Glib::Object((GObject*)(castitem))
{}


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

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


ListHeader::~ListHeader() noexcept
{}


ListHeader::CppClassType ListHeader::listheader_class_; // initialize static member

GType ListHeader::get_type()
{
  return listheader_class_.init().get_type();
}


GType ListHeader::get_base_type()
{
  return gtk_list_header_get_type();
}


Glib::RefPtr<Glib::ObjectBase> ListHeader::get_item()
{
  auto retvalue = Glib::make_refptr_for_instance<Glib::ObjectBase>(Glib::wrap_auto(G_OBJECT(gtk_list_header_get_item(gobj()))));
  if(retvalue)
    retvalue->reference(); //The function does not do a ref for us.
  return retvalue;
}

Glib::RefPtr<const Glib::ObjectBase> ListHeader::get_item() const
{
  return const_cast<ListHeader*>(this)->get_item();
}

guint ListHeader::get_start() const
{
  return gtk_list_header_get_start(const_cast<GtkListHeader*>(gobj()));
}

guint ListHeader::get_end() const
{
  return gtk_list_header_get_end(const_cast<GtkListHeader*>(gobj()));
}

guint ListHeader::get_n_items() const
{
  return gtk_list_header_get_n_items(const_cast<GtkListHeader*>(gobj()));
}

void ListHeader::set_child(Widget& child)
{
  gtk_list_header_set_child(gobj(), (child).gobj());
}

Widget* ListHeader::get_child()
{
  return Glib::wrap(gtk_list_header_get_child(gobj()));
}

const Widget* ListHeader::get_child() const
{
  return const_cast<ListHeader*>(this)->get_child();
}


Glib::PropertyProxy< Widget* > ListHeader::property_child() 
{
  return Glib::PropertyProxy< Widget* >(this, "child");
}

Glib::PropertyProxy_ReadOnly< Widget* > ListHeader::property_child() const
{
  return Glib::PropertyProxy_ReadOnly< Widget* >(this, "child");
}

Glib::PropertyProxy_ReadOnly< guint > ListHeader::property_end() const
{
  return Glib::PropertyProxy_ReadOnly< guint >(this, "end");
}

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

Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Glib::ObjectBase> > ListHeader::property_item() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Glib::ObjectBase> >(this, "item");
}

Glib::PropertyProxy_ReadOnly< guint > ListHeader::property_n_items() const
{
  return Glib::PropertyProxy_ReadOnly< guint >(this, "n-items");
}

Glib::PropertyProxy_ReadOnly< guint > ListHeader::property_start() const
{
  return Glib::PropertyProxy_ReadOnly< guint >(this, "start");
}


} // namespace Gtk


