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


#include <glibmm.h>

#include <gtkmm/columnviewrow.h>
#include <gtkmm/private/columnviewrow_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
{
} // anonymous namespace


namespace Glib
{

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

  }

  return *this;
}


Glib::ObjectBase* ColumnViewRow_Class::wrap_new(GObject* object)
{
  return new ColumnViewRow((GtkColumnViewRow*)object);
}


/* The implementation: */

GtkColumnViewRow* ColumnViewRow::gobj_copy()
{
  reference();
  return gobj();
}

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

}

ColumnViewRow::ColumnViewRow(GtkColumnViewRow* castitem)
:
  Glib::Object((GObject*)(castitem))
{}


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

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


ColumnViewRow::~ColumnViewRow() noexcept
{}


ColumnViewRow::CppClassType ColumnViewRow::columnviewrow_class_; // initialize static member

GType ColumnViewRow::get_type()
{
  return columnviewrow_class_.init().get_type();
}


GType ColumnViewRow::get_base_type()
{
  return gtk_column_view_row_get_type();
}


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

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

guint ColumnViewRow::get_position() const
{
  return gtk_column_view_row_get_position(const_cast<GtkColumnViewRow*>(gobj()));
}

bool ColumnViewRow::get_selected() const
{
  return gtk_column_view_row_get_selected(const_cast<GtkColumnViewRow*>(gobj()));
}

bool ColumnViewRow::get_selectable() const
{
  return gtk_column_view_row_get_selectable(const_cast<GtkColumnViewRow*>(gobj()));
}

void ColumnViewRow::set_selectable(bool selectable)
{
  gtk_column_view_row_set_selectable(gobj(), static_cast<int>(selectable));
}

bool ColumnViewRow::get_activatable() const
{
  return gtk_column_view_row_get_activatable(const_cast<GtkColumnViewRow*>(gobj()));
}

void ColumnViewRow::set_activatable(bool activatable)
{
  gtk_column_view_row_set_activatable(gobj(), static_cast<int>(activatable));
}

bool ColumnViewRow::get_focusable() const
{
  return gtk_column_view_row_get_focusable(const_cast<GtkColumnViewRow*>(gobj()));
}

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

Glib::ustring ColumnViewRow::get_accessible_description() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_column_view_row_get_accessible_description(const_cast<GtkColumnViewRow*>(gobj())));
}

void ColumnViewRow::gtk_set_accessible_description(const Glib::ustring& description)
{
  gtk_column_view_row_set_accessible_description(gobj(), description.c_str());
}

Glib::ustring ColumnViewRow::get_accessible_label() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_column_view_row_get_accessible_label(const_cast<GtkColumnViewRow*>(gobj())));
}

void ColumnViewRow::gtk_set_accessible_label(const Glib::ustring& label)
{
  gtk_column_view_row_set_accessible_label(gobj(), label.c_str());
}


Glib::PropertyProxy< Glib::ustring > ColumnViewRow::property_accessible_description() 
{
  return Glib::PropertyProxy< Glib::ustring >(this, "accessible-description");
}

Glib::PropertyProxy_ReadOnly< Glib::ustring > ColumnViewRow::property_accessible_description() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "accessible-description");
}

Glib::PropertyProxy< Glib::ustring > ColumnViewRow::property_accessible_label() 
{
  return Glib::PropertyProxy< Glib::ustring >(this, "accessible-label");
}

Glib::PropertyProxy_ReadOnly< Glib::ustring > ColumnViewRow::property_accessible_label() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::ustring >(this, "accessible-label");
}

Glib::PropertyProxy< bool > ColumnViewRow::property_activatable() 
{
  return Glib::PropertyProxy< bool >(this, "activatable");
}

Glib::PropertyProxy_ReadOnly< bool > ColumnViewRow::property_activatable() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "activatable");
}

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

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

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

Glib::PropertyProxy< bool > ColumnViewRow::property_selectable() 
{
  return Glib::PropertyProxy< bool >(this, "selectable");
}

Glib::PropertyProxy_ReadOnly< bool > ColumnViewRow::property_selectable() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "selectable");
}

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


} // namespace Gtk


