// -*- c++ -*-
//  Generated by gtkmmproc from ./../alignment.gen_h -- DO NOT MODIFY!
#include <gtk--/alignment.h>
#include <gtk--/private/alignment_p.h>
namespace Gtk
{

Alignment::Alignment(gfloat xalign, gfloat yalign, gfloat xscale,
			     gfloat yscale)
  : Bin((GtkBin*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  GtkAlignment *alignment=(GtkAlignment*)gtkobject;
  alignment->xalign = CLAMP (xalign, 0.0, 1.0);
  alignment->yalign = CLAMP (yalign, 0.0, 1.0);
  alignment->xscale = CLAMP (xscale, 0.0, 1.0);
  alignment->yscale = CLAMP (yscale, 0.0, 1.0);
}

}

namespace Gtk {
Gtk::Alignment *wrap (GtkAlignment *o)
  {
    return static_cast<Gtk::Alignment *> (Gtk::wrap_auto ((GtkObject *) (o)));
  }
}

namespace Gtk {
Alignment_Class Alignment::alignment_class = {0};

Object* Alignment_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new Alignment((GtkAlignment*)(o)));
    return cpp;
  }

bool Alignment::isA( Object *checkcast)
  {
    return GTK_IS_ALIGNMENT(checkcast->gtkobj());
  }

GtkType Alignment::get_type()
  {
    return alignment_class.get_type();
  }

GtkType Alignment_Class::get_type()
  {
    if (!type)
      {
        CppClassParent::CppObjectType::get_type();
        GtkTypeInfo info =
          {
            "Gtk__Alignment",
            sizeof(BaseObjectType),
            sizeof(BaseClassType),
            (GtkClassInitFunc) class_init_function,
            (GtkObjectInitFunc) object_init_function,
            /* reserved_1 */ NULL,
            /* reserved_2 */ NULL,
            /*base_class_init_func */ (GtkClassInitFunc) NULL
          };
        type=gtk_type_unique(gtk_alignment_get_type(), &info);
      }
    return type;
  }

const char* const Alignment::signal_names[]={
   0};

void Alignment::initialize_class()
  {

  }

void Alignment_Class::class_init_function(GtkAlignmentClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void Alignment_Class::object_init_function(GtkAlignment *)
  {}

}

Gtk::Alignment::Alignment(GtkAlignment *castitem)
  :     Gtk::Bin((GtkBin*)(castitem))
  {
    initialize_class();
  }

Gtk::Alignment::~Alignment() { destroy_(); }

void Gtk::Alignment::set(gfloat xalign,gfloat yalign,gfloat xscale,gfloat yscale)
  {
    gtk_alignment_set(gtkobj(),xalign,yalign,xscale,yscale);
  }

gfloat Gtk::Alignment::get_xalign() const
  { return gtkobj()->xalign; }

gfloat Gtk::Alignment::get_yalign() const
  { return gtkobj()->yalign; }

gfloat Gtk::Alignment::get_xscale() const
  { return gtkobj()->xscale; }

gfloat Gtk::Alignment::get_yscale() const
  { return gtkobj()->yscale; }
