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

label.cc

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


Label::Label(const nstring &label,gfloat x,gfloat y)
  :     Misc((GtkMisc*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  set_text(label);
  set_alignment(x,y);
}

string
Label::get() const
{
  gchar *str;
  gtk_label_get(const_cast<GtkLabel*>(gtkobj()), &str);
  return str;
}

string Label::get_text       () const {return get();}

}

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

namespace Gtk {
Label_Class Label::label_class = {0};

Object* Label_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new Label((GtkLabel*)(o)));
    return cpp;
  }

bool Label::isA( Object *checkcast)
  {
    return GTK_IS_LABEL(checkcast->gtkobj());
  }

GtkType Label::get_type()
  {
    return label_class.get_type();
  }

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

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

void Label::initialize_class()
  {

  }

void Label_Class::class_init_function(GtkLabelClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void Label_Class::object_init_function(GtkLabel *)
  {}

}

Gtk::Label::Label(GtkLabel *castitem)
  :     Gtk::Misc((GtkMisc*)(castitem))
  {
    initialize_class();
  }

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

void Gtk::Label::set(const string& str)
  {
    gtk_label_set_text(gtkobj(),str.c_str());
  }

void Gtk::Label::set_text(const string& str)
  {
    gtk_label_set_text(gtkobj(),str.c_str());
  }

void Gtk::Label::set_justify(GtkJustification jtype)
  {
    gtk_label_set_justify(gtkobj(),jtype);
  }

void Gtk::Label::set_pattern(const nstring& pattern)
  {
    gtk_label_set_pattern(gtkobj(),pattern.gc_str());
  }

guint Gtk::Label::parse_uline(const string& str)
  {
    return gtk_label_parse_uline(gtkobj(),str.c_str());
  }

void Gtk::Label::set_line_wrap(bool wrap)
  {
    gtk_label_set_line_wrap(gtkobj(),(gboolean)wrap);
  }

Generated by  Doxygen 1.6.0   Back to index