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

CheckButton::CheckButton(const string &label,gfloat x,gfloat y)
  :     ToggleButton((GtkToggleButton*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  add_label(label,x,y);
}

}

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

namespace Gtk {
CheckButton_Class CheckButton::check_button_class = {0};

Object* CheckButton_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new CheckButton((GtkCheckButton*)(o)));
    return cpp;
  }

bool CheckButton::isA( Object *checkcast)
  {
    return GTK_IS_CHECK_BUTTON(checkcast->gtkobj());
  }

GtkType CheckButton::get_type()
  {
    return check_button_class.get_type();
  }

GtkType CheckButton_Class::get_type()
  {
    if (!type)
      {
        CppClassParent::CppObjectType::get_type();
        GtkTypeInfo info =
          {
            "Gtk__CheckButton",
            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_check_button_get_type(), &info);
      }
    return type;
  }

const char* const CheckButton::signal_names[]={
   "draw_indicator",
   0};

void CheckButton::initialize_class()
  {

     check_button_self=this;

  }

void CheckButton_Class::class_init_function(GtkCheckButtonClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
    klass->draw_indicator=draw_indicator_callback;
  }

void CheckButton_Class::object_init_function(GtkCheckButton *)
  {}

}

Gtk::CheckButton::CheckButton()
  :     Gtk::ToggleButton((GtkToggleButton*)(gtk_object_new(get_type(),0)))
  {
    initialize_class();
  }

Gtk::CheckButton::CheckButton(GtkCheckButton *castitem)
  :     Gtk::ToggleButton((GtkToggleButton*)(castitem))
  {
    initialize_class();
  }

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

void Gtk::CheckButton_Class::draw_indicator_callback(GtkCheckButton* o_,GdkRectangle* p0)
  {
    CppObjectType *obj=
      static_cast<CppObjectType *>(static_cast<Gtk::Object *>(
        gtk_object_get_data_by_id((GtkObject*)o_,Gtk::quark_)));

    if (obj)
      obj->draw_indicator_impl(p0);
    else
      {
        BaseClassType* base=
          static_cast<BaseClassType*>(
            gtk_type_parent_class(((GtkObject*)o_)->klass->type));
        if (base->draw_indicator)
          (base->draw_indicator)(o_,p0);
      }

  }

void Gtk::CheckButton::draw_indicator_impl(GdkRectangle* p0)
  {
    BaseClassType* base=
      static_cast<BaseClassType*>(
        gtk_type_parent_class(gtkobject->klass->type));
    if (base->draw_indicator)
      (base->draw_indicator)(gtkobj(),p0);

  }
