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


#include <glibmm.h>

#include <gdkmm/cicpparams.h>
#include <gdkmm/private/cicpparams_p.h>


/* Copyright (C) 2024 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 <gdkmm/colorstate.h>
#include <gdk/gdk.h>

using Range = Gdk::CicpParams::Range;

namespace
{
} // anonymous namespace

// static
GType Glib::Value<Gdk::CicpParams::Range>::value_type()
{
  return gdk_cicp_range_get_type();
}


namespace Glib
{

Glib::RefPtr<Gdk::CicpParams> wrap(GdkCicpParams* object, bool take_copy)
{
  return Glib::make_refptr_for_instance<Gdk::CicpParams>( dynamic_cast<Gdk::CicpParams*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
  //We use dynamic_cast<> in case of multiple inheritance.
}

} /* namespace Glib */


namespace Gdk
{


/* The *_Class implementation: */

const Glib::Class& CicpParams_Class::init()
{
  if(!gtype_) // create the GType if necessary
  {
    // Do not derive a GType, or use a derived class:
    gtype_ = gdk_cicp_params_get_type();

  }

  return *this;
}


Glib::ObjectBase* CicpParams_Class::wrap_new(GObject* object)
{
  return new CicpParams((GdkCicpParams*)object);
}


/* The implementation: */

GdkCicpParams* CicpParams::gobj_copy()
{
  reference();
  return gobj();
}

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

}

CicpParams::CicpParams(GdkCicpParams* castitem)
:
  Glib::Object((GObject*)(castitem))
{}


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

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


CicpParams::~CicpParams() noexcept
{}


CicpParams::CppClassType CicpParams::cicpparams_class_; // initialize static member

GType CicpParams::get_type()
{
  return cicpparams_class_.init().get_type();
}


GType CicpParams::get_base_type()
{
  return gdk_cicp_params_get_type();
}


CicpParams::CicpParams()
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(nullptr),
  Glib::Object(Glib::ConstructParams(cicpparams_class_.init()))
{
  

}

Glib::RefPtr<CicpParams> CicpParams::create()
{
  return Glib::make_refptr_for_instance<CicpParams>( new CicpParams() );
}

guint CicpParams::get_color_primaries() const
{
  return gdk_cicp_params_get_color_primaries(const_cast<GdkCicpParams*>(gobj()));
}

void CicpParams::set_color_primaries(guint color_primaries)
{
  gdk_cicp_params_set_color_primaries(gobj(), color_primaries);
}

guint CicpParams::get_transfer_function() const
{
  return gdk_cicp_params_get_transfer_function(const_cast<GdkCicpParams*>(gobj()));
}

void CicpParams::set_transfer_function(guint transfer_function)
{
  gdk_cicp_params_set_transfer_function(gobj(), transfer_function);
}

guint CicpParams::get_matrix_coefficients() const
{
  return gdk_cicp_params_get_matrix_coefficients(const_cast<GdkCicpParams*>(gobj()));
}

void CicpParams::set_matrix_coefficients(guint matrix_coefficients)
{
  gdk_cicp_params_set_matrix_coefficients(gobj(), matrix_coefficients);
}

Range CicpParams::get_range() const
{
  return static_cast<Range>(gdk_cicp_params_get_range(const_cast<GdkCicpParams*>(gobj())));
}

void CicpParams::set_range(Range range)
{
  gdk_cicp_params_set_range(gobj(), static_cast<GdkCicpRange>(range));
}

Glib::RefPtr<ColorState> CicpParams::build_color_state() const
{
  GError* gerror = nullptr;
  auto retvalue = Glib::wrap(gdk_cicp_params_build_color_state(const_cast<GdkCicpParams*>(gobj()), &(gerror)));
  if(gerror)
    ::Glib::Error::throw_exception(gerror);
  return retvalue;
}


Glib::PropertyProxy< guint > CicpParams::property_color_primaries() 
{
  return Glib::PropertyProxy< guint >(this, "color-primaries");
}

Glib::PropertyProxy_ReadOnly< guint > CicpParams::property_color_primaries() const
{
  return Glib::PropertyProxy_ReadOnly< guint >(this, "color-primaries");
}

Glib::PropertyProxy< guint > CicpParams::property_transfer_function() 
{
  return Glib::PropertyProxy< guint >(this, "transfer-function");
}

Glib::PropertyProxy_ReadOnly< guint > CicpParams::property_transfer_function() const
{
  return Glib::PropertyProxy_ReadOnly< guint >(this, "transfer-function");
}

Glib::PropertyProxy< guint > CicpParams::property_matrix_coefficients() 
{
  return Glib::PropertyProxy< guint >(this, "matrix-coefficients");
}

Glib::PropertyProxy_ReadOnly< guint > CicpParams::property_matrix_coefficients() const
{
  return Glib::PropertyProxy_ReadOnly< guint >(this, "matrix-coefficients");
}

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

Glib::PropertyProxy< Range > CicpParams::property_range() 
{
  return Glib::PropertyProxy< Range >(this, "range");
}

Glib::PropertyProxy_ReadOnly< Range > CicpParams::property_range() const
{
  return Glib::PropertyProxy_ReadOnly< Range >(this, "range");
}


} // namespace Gdk


