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


#include <glibmm.h>

#include <gtkmm/atcontext.h>
#include <gtkmm/private/atcontext_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
{


static const Glib::SignalProxyInfo ATContext_signal_state_change_info =
{
  "state-change",
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
  (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
};


} // anonymous namespace


namespace Glib
{

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

  }

  return *this;
}


Glib::ObjectBase* ATContext_Class::wrap_new(GObject* object)
{
  return new ATContext((GtkATContext*)object);
}


/* The implementation: */

GtkATContext* ATContext::gobj_copy()
{
  reference();
  return gobj();
}

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

}

ATContext::ATContext(GtkATContext* castitem)
:
  Glib::Object((GObject*)(castitem))
{}


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

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


ATContext::~ATContext() noexcept
{}


ATContext::CppClassType ATContext::atcontext_class_; // initialize static member

GType ATContext::get_type()
{
  return atcontext_class_.init().get_type();
}


GType ATContext::get_base_type()
{
  return gtk_at_context_get_type();
}


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

}

Glib::RefPtr<ATContext> ATContext::create(Accessible::Role accessible_role, const Glib::RefPtr<Accessible>& accessible, const Glib::RefPtr<Gdk::Display>& display)
{
  return Glib::wrap(gtk_at_context_create(static_cast<GtkAccessibleRole>(accessible_role), Glib::unwrap(accessible), Glib::unwrap(display)));
}

Glib::RefPtr<Accessible> ATContext::get_accessible()
{
  auto retvalue = Glib::wrap(gtk_at_context_get_accessible(gobj()));
  if(retvalue)
    retvalue->reference(); //The function does not do a ref for us.
  return retvalue;
}

Glib::RefPtr<const Accessible> ATContext::get_accessible() const
{
  return const_cast<ATContext*>(this)->get_accessible();
}

Accessible::Role ATContext::get_accessible_role() const
{
  return static_cast<Accessible::Role>(gtk_at_context_get_accessible_role(const_cast<GtkATContext*>(gobj())));
}


Glib::SignalProxy<void()> ATContext::signal_state_change()
{
  return Glib::SignalProxy<void() >(this, &ATContext_signal_state_change_info);
}


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

Glib::PropertyProxy< Accessible::Role > ATContext::property_accessible_role() 
{
  return Glib::PropertyProxy< Accessible::Role >(this, "accessible-role");
}

Glib::PropertyProxy_ReadOnly< Accessible::Role > ATContext::property_accessible_role() const
{
  return Glib::PropertyProxy_ReadOnly< Accessible::Role >(this, "accessible-role");
}

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

Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Accessible> > ATContext::property_accessible() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Accessible> >(this, "accessible");
}

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

Glib::PropertyProxy< Glib::RefPtr<Gdk::Display> > ATContext::property_display() 
{
  return Glib::PropertyProxy< Glib::RefPtr<Gdk::Display> >(this, "display");
}

Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Display> > ATContext::property_display() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Display> >(this, "display");
}


} // namespace Gtk


