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

misc.cc

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

}

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

namespace Gtk {
Misc_Class Misc::misc_class = {0};

Object* Misc_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new Misc((GtkMisc*)(o)));
    return cpp;
  }

bool Misc::isA( Object *checkcast)
  {
    return GTK_IS_MISC(checkcast->gtkobj());
  }

GtkType Misc::get_type()
  {
    return misc_class.get_type();
  }

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

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

void Misc::initialize_class()
  {

  }

void Misc_Class::class_init_function(GtkMiscClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void Misc_Class::object_init_function(GtkMisc *)
  {}

}

Gtk::Misc::Misc(GtkMisc *castitem)
  :     Gtk::Widget((GtkWidget*)(castitem))
  {
    initialize_class();
  }

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

void Gtk::Misc::set_alignment(gfloat xalign,gfloat yalign)
  {
    gtk_misc_set_alignment(gtkobj(),xalign,yalign);
  }

void Gtk::Misc::set_padding(gint xpad,gint ypad)
  {
    gtk_misc_set_padding(gtkobj(),xpad,ypad);
  }

Gtk::Misc::Misc()
  :     Gtk::Widget((GtkWidget*)(gtk_object_new(get_type(),0)))
  {
    initialize_class();
  }

gint Gtk::Misc::get_xpad() const
  { return gtkobj()->xpad; }

gint Gtk::Misc::get_ypad() const
  { return gtkobj()->ypad; }

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

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

Generated by  Doxygen 1.6.0   Back to index