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


#include <glibmm.h>

#include <gtkmm/columnviewcell.h>
#include <gtkmm/private/columnviewcell_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 ColumnViewCell::unset_child()
{
  gtk_column_view_cell_set_child(gobj(), nullptr);
}

} // namespace Gtk

namespace
{
} // anonymous namespace


namespace Glib
{

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

  }

  return *this;
}


Glib::ObjectBase* ColumnViewCell_Class::wrap_new(GObject* object)
{
  return new ColumnViewCell((GtkColumnViewCell*)object);
}


/* The implementation: */

GtkColumnViewCell* ColumnViewCell::gobj_copy()
{
  reference();
  return gobj();
}

ColumnViewCell::ColumnViewCell(const Glib::ConstructParams& construct_params)
:
  Gtk::ListItem(construct_params)
{

}

ColumnViewCell::ColumnViewCell(GtkColumnViewCell* castitem)
:
  Gtk::ListItem((GtkListItem*)(castitem))
{}


ColumnViewCell::ColumnViewCell(ColumnViewCell&& src) noexcept
: Gtk::ListItem(std::move(src))
{}

ColumnViewCell& ColumnViewCell::operator=(ColumnViewCell&& src) noexcept
{
  Gtk::ListItem::operator=(std::move(src));
  return *this;
}


ColumnViewCell::~ColumnViewCell() noexcept
{}


ColumnViewCell::CppClassType ColumnViewCell::columnviewcell_class_; // initialize static member

GType ColumnViewCell::get_type()
{
  return columnviewcell_class_.init().get_type();
}


GType ColumnViewCell::get_base_type()
{
  return gtk_column_view_cell_get_type();
}


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

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

guint ColumnViewCell::get_position() const
{
  return gtk_column_view_cell_get_position(const_cast<GtkColumnViewCell*>(gobj()));
}

bool ColumnViewCell::get_selected() const
{
  return gtk_column_view_cell_get_selected(const_cast<GtkColumnViewCell*>(gobj()));
}

bool ColumnViewCell::get_focusable() const
{
  return gtk_column_view_cell_get_focusable(const_cast<GtkColumnViewCell*>(gobj()));
}

void ColumnViewCell::set_focusable(bool focusable)
{
  gtk_column_view_cell_set_focusable(gobj(), static_cast<int>(focusable));
}

void ColumnViewCell::set_child(Widget& child)
{
  gtk_column_view_cell_set_child(gobj(), (child).gobj());
}

Widget* ColumnViewCell::get_child()
{
  return Glib::wrap(gtk_column_view_cell_get_child(gobj()));
}

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


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

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

Glib::PropertyProxy< bool > ColumnViewCell::property_focusable() 
{
  return Glib::PropertyProxy< bool >(this, "focusable");
}

Glib::PropertyProxy_ReadOnly< bool > ColumnViewCell::property_focusable() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "focusable");
}

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> > ColumnViewCell::property_item() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Glib::ObjectBase> >(this, "item");
}

Glib::PropertyProxy_ReadOnly< guint > ColumnViewCell::property_position() const
{
  return Glib::PropertyProxy_ReadOnly< guint >(this, "position");
}

Glib::PropertyProxy_ReadOnly< bool > ColumnViewCell::property_selected() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "selected");
}


} // namespace Gtk


