Logo Search packages:      
Sourcecode: ardour version File versions  Download package

accellabel.cc

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


AccelLabel::AccelLabel(const string &label)
  : Label((GtkLabel*)(gtk_object_new(get_type(),0)))
  {
    initialize_class();
    set_text(label);
  }

}

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

namespace Gtk {
AccelLabel_Class AccelLabel::accel_label_class = {0};

Object* AccelLabel_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new AccelLabel((GtkAccelLabel*)(o)));
    return cpp;
  }

bool AccelLabel::isA( Object *checkcast)
  {
    return GTK_IS_ACCEL_LABEL(checkcast->gtkobj());
  }

GtkType AccelLabel::get_type()
  {
    return accel_label_class.get_type();
  }

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

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

void AccelLabel::initialize_class()
  {

  }

void AccelLabel_Class::class_init_function(GtkAccelLabelClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void AccelLabel_Class::object_init_function(GtkAccelLabel *)
  {}

}

Gtk::AccelLabel::AccelLabel(GtkAccelLabel *castitem)
  :     Gtk::Label((GtkLabel*)(castitem))
  {
    initialize_class();
  }

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

guint Gtk::AccelLabel::get_accel_width() const
  {
    return gtk_accel_label_get_accel_width(const_cast<GtkAccelLabel*>(gtkobj()));
  }

void Gtk::AccelLabel::set_accel_widget(Gtk::Widget& accel_widget)
  {
    gtk_accel_label_set_accel_widget(gtkobj(),accel_widget.gtkobj());
  }

bool Gtk::AccelLabel::refetch()
  {
    return ((gtk_accel_label_refetch(gtkobj()))?true:false);
  }

Generated by  Doxygen 1.6.0   Back to index