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


#include <glibmm.h>

#include <gtkmm/graphicsoffload.h>
#include <gtkmm/private/graphicsoffload_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 GraphicsOffload::unset_child()
{
  gtk_graphics_offload_set_child(gobj(), nullptr);
}
} // namespace Gtk

namespace
{
} // anonymous namespace


namespace Glib
{

Gtk::GraphicsOffload* wrap(GtkGraphicsOffload* object, bool take_copy)
{
  return dynamic_cast<Gtk::GraphicsOffload *> (Glib::wrap_auto ((GObject*)(object), take_copy));
}

} /* namespace Glib */

namespace Gtk
{


/* The *_Class implementation: */

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

  }

  return *this;
}


Glib::ObjectBase* GraphicsOffload_Class::wrap_new(GObject* o)
{
  return manage(new GraphicsOffload((GtkGraphicsOffload*)(o)));

}


/* The implementation: */

GraphicsOffload::GraphicsOffload(const Glib::ConstructParams& construct_params)
:
  Gtk::Widget(construct_params)
{
  }

GraphicsOffload::GraphicsOffload(GtkGraphicsOffload* castitem)
:
  Gtk::Widget((GtkWidget*)(castitem))
{
  }


GraphicsOffload::GraphicsOffload(GraphicsOffload&& src) noexcept
: Gtk::Widget(std::move(src))
{}

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

GraphicsOffload::~GraphicsOffload() noexcept
{
  destroy_();
}

GraphicsOffload::CppClassType GraphicsOffload::graphicsoffload_class_; // initialize static member

GType GraphicsOffload::get_type()
{
  return graphicsoffload_class_.init().get_type();
}


GType GraphicsOffload::get_base_type()
{
  return gtk_graphics_offload_get_type();
}


GraphicsOffload::GraphicsOffload()
:
  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
  Glib::ObjectBase(nullptr),
  Gtk::Widget(Glib::ConstructParams(graphicsoffload_class_.init()))
{
  

}

void GraphicsOffload::set_child(Widget& child)
{
  gtk_graphics_offload_set_child(gobj(), (child).gobj());
}

Widget* GraphicsOffload::get_child()
{
  return Glib::wrap(gtk_graphics_offload_get_child(gobj()));
}

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

void GraphicsOffload::set_enabled(GraphicsOffloadEnabled enabled)
{
  gtk_graphics_offload_set_enabled(gobj(), static_cast<GtkGraphicsOffloadEnabled>(enabled));
}

GraphicsOffloadEnabled GraphicsOffload::get_enabled() const
{
  return static_cast<GraphicsOffloadEnabled>(gtk_graphics_offload_get_enabled(const_cast<GtkGraphicsOffload*>(gobj())));
}

void GraphicsOffload::set_black_background(bool value)
{
  gtk_graphics_offload_set_black_background(gobj(), static_cast<int>(value));
}

bool GraphicsOffload::get_black_background() const
{
  return gtk_graphics_offload_get_black_background(const_cast<GtkGraphicsOffload*>(gobj()));
}


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

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

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

Glib::PropertyProxy< GraphicsOffloadEnabled > GraphicsOffload::property_enabled() 
{
  return Glib::PropertyProxy< GraphicsOffloadEnabled >(this, "enabled");
}

Glib::PropertyProxy_ReadOnly< GraphicsOffloadEnabled > GraphicsOffload::property_enabled() const
{
  return Glib::PropertyProxy_ReadOnly< GraphicsOffloadEnabled >(this, "enabled");
}

Glib::PropertyProxy< bool > GraphicsOffload::property_black_background() 
{
  return Glib::PropertyProxy< bool >(this, "black-background");
}

Glib::PropertyProxy_ReadOnly< bool > GraphicsOffload::property_black_background() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "black-background");
}


} // namespace Gtk


