// -*- c++ -*-
//  Generated by gtkmmproc from ./../tooltips.gen_h -- DO NOT MODIFY!
#include <gtk--/tooltips.h>
#include <gtk--/private/tooltips_p.h>
namespace Gtk {
Gtk::Tooltips *wrap (GtkTooltips *o)
  {
    return static_cast<Gtk::Tooltips *> (Gtk::wrap_auto ((GtkObject *) (o)));
  }
}

namespace Gtk {
Tooltips_Class Tooltips::tooltips_class = {0};

Object* Tooltips_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new Tooltips((GtkTooltips*)(o)));
    return cpp;
  }

bool Tooltips::isA( Object *checkcast)
  {
    return GTK_IS_TOOLTIPS(checkcast->gtkobj());
  }

GtkType Tooltips::get_type()
  {
    return tooltips_class.get_type();
  }

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

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

void Tooltips::initialize_class()
  {

  }

void Tooltips_Class::class_init_function(GtkTooltipsClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void Tooltips_Class::object_init_function(GtkTooltips *)
  {}

}

Gtk::Tooltips::Tooltips()
  :     Gtk::Data((GtkData*)(gtk_object_new(get_type(),0)))
  {
    initialize_class();
  }

Gtk::Tooltips::Tooltips(GtkTooltips *castitem)
  :     Gtk::Data((GtkData*)(castitem))
  {
    initialize_class();
  }

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

void Gtk::Tooltips::enable()
  {
    gtk_tooltips_enable(gtkobj());
  }

void Gtk::Tooltips::disable()
  {
    gtk_tooltips_disable(gtkobj());
  }

void Gtk::Tooltips::set_delay(guint delay)
  {
    gtk_tooltips_set_delay(gtkobj(),delay);
  }

void Gtk::Tooltips::set_tip(const Gtk::Widget& widget,const nstring& tip_text,const nstring& tip_private)
  {
    gtk_tooltips_set_tip(gtkobj(),const_cast<GtkWidget*>(widget.gtkobj()),tip_text.gc_str(),tip_private.gc_str());
  }

void Gtk::Tooltips::set_colors(const Gdk_Color& background,const Gdk_Color& foreground)
  {
    gtk_tooltips_set_colors(gtkobj(),const_cast<GdkColor*>(background.gdkobj()),const_cast<GdkColor*>(foreground.gdkobj()));
  }

GtkTooltipsData* Gtk::Tooltips::data_get(Gtk::Widget& widget)
  {
    return gtk_tooltips_data_get(widget.gtkobj());
  }

void Gtk::Tooltips::force_window()
  {
    gtk_tooltips_force_window(gtkobj());
  }
