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


#include <glibmm.h>

#include <gtkmm/revealer.h>
#include <gtkmm/private/revealer_p.h>


/*
 * Copyright 2013 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, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#include <gtk/gtk.h>


namespace Gtk
{
} // namespace Gtk


namespace
{
} // anonymous namespace


namespace Glib
{

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

} /* namespace Glib */

namespace Gtk
{


/* The *_Class implementation: */

const Glib::Class& Revealer_Class::init()
{
  if(!gtype_) // create the GType if necessary
  {
    // Glib::Class has to know the class init function to clone custom types.
    class_init_func_ = &Revealer_Class::class_init_function;

    // This is actually just optimized away, apparently with no harm.
    // Make sure that the parent type has been created.
    //CppClassParent::CppObjectType::get_type();

    // Create the wrapper type, with the same class/instance size as the base type.
    register_derived_type(gtk_revealer_get_type());

    // Add derived versions of interfaces, if the C type implements any interfaces:

  }

  return *this;
}


void Revealer_Class::class_init_function(void* g_class, void* class_data)
{
  const auto klass = static_cast<BaseClassType*>(g_class);
  CppClassParent::class_init_function(klass, class_data);


}


Glib::ObjectBase* Revealer_Class::wrap_new(GObject* o)
{
  return manage(new Revealer((GtkRevealer*)(o)));

}


/* The implementation: */

Revealer::Revealer(const Glib::ConstructParams& construct_params)
:
  Gtk::Bin(construct_params)
{
  }

Revealer::Revealer(GtkRevealer* castitem)
:
  Gtk::Bin((GtkBin*)(castitem))
{
  }


Revealer::Revealer(Revealer&& src) noexcept
: Gtk::Bin(std::move(src))
{}

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

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

Revealer::CppClassType Revealer::revealer_class_; // initialize static member

GType Revealer::get_type()
{
  return revealer_class_.init().get_type();
}


GType Revealer::get_base_type()
{
  return gtk_revealer_get_type();
}


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

}

bool Revealer::get_reveal_child() const
{
  return gtk_revealer_get_reveal_child(const_cast<GtkRevealer*>(gobj()));
}

void Revealer::set_reveal_child(bool reveal_child)
{
  gtk_revealer_set_reveal_child(gobj(), static_cast<int>(reveal_child));
}

bool Revealer::get_child_revealed() const
{
  return gtk_revealer_get_child_revealed(const_cast<GtkRevealer*>(gobj()));
}

guint Revealer::get_transition_duration() const
{
  return gtk_revealer_get_transition_duration(const_cast<GtkRevealer*>(gobj()));
}

void Revealer::set_transition_duration(guint duration)
{
  gtk_revealer_set_transition_duration(gobj(), duration);
}

RevealerTransitionType Revealer::get_transition_type() const
{
  return ((RevealerTransitionType)(gtk_revealer_get_transition_type(const_cast<GtkRevealer*>(gobj()))));
}

void Revealer::set_transition_type(RevealerTransitionType transition)
{
  gtk_revealer_set_transition_type(gobj(), ((GtkRevealerTransitionType)(transition)));
}


Glib::PropertyProxy< RevealerTransitionType > Revealer::property_transition_type() 
{
  return Glib::PropertyProxy< RevealerTransitionType >(this, "transition-type");
}

Glib::PropertyProxy_ReadOnly< RevealerTransitionType > Revealer::property_transition_type() const
{
  return Glib::PropertyProxy_ReadOnly< RevealerTransitionType >(this, "transition-type");
}

Glib::PropertyProxy< guint > Revealer::property_transition_duration() 
{
  return Glib::PropertyProxy< guint >(this, "transition-duration");
}

Glib::PropertyProxy_ReadOnly< guint > Revealer::property_transition_duration() const
{
  return Glib::PropertyProxy_ReadOnly< guint >(this, "transition-duration");
}

Glib::PropertyProxy< bool > Revealer::property_reveal_child() 
{
  return Glib::PropertyProxy< bool >(this, "reveal-child");
}

Glib::PropertyProxy_ReadOnly< bool > Revealer::property_reveal_child() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "reveal-child");
}

Glib::PropertyProxy_ReadOnly< bool > Revealer::property_child_revealed() const
{
  return Glib::PropertyProxy_ReadOnly< bool >(this, "child-revealed");
}


} // namespace Gtk


