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

frame.cc

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

  // nothing to do; no label to set.

Frame::Frame(const nstring &label)
  :     Bin((GtkBin*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  set_label(label);
}

string
Frame::get_label() const {
  string str;
  if (gtkobj()->label==0)
    str=string();
  else
    str=string(gtkobj()->label);
  return str;
}

}

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

namespace Gtk {
Frame_Class Frame::frame_class = {0};

Object* Frame_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new Frame((GtkFrame*)(o)));
    return cpp;
  }

bool Frame::isA( Object *checkcast)
  {
    return GTK_IS_FRAME(checkcast->gtkobj());
  }

GtkType Frame::get_type()
  {
    return frame_class.get_type();
  }

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

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

void Frame::initialize_class()
  {

  }

void Frame_Class::class_init_function(GtkFrameClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void Frame_Class::object_init_function(GtkFrame *)
  {}

}

Gtk::Frame::Frame(GtkFrame *castitem)
  :     Gtk::Bin((GtkBin*)(castitem))
  {
    initialize_class();
  }

Gtk::Frame::Frame()
  :     Gtk::Bin((GtkBin*)(gtk_object_new(get_type(),0)))
  {
    initialize_class();
  }

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

void Gtk::Frame::set_label(const nstring& str)
  {
    gtk_frame_set_label(gtkobj(),str.gc_str());
  }

void Gtk::Frame::set_label_align(gfloat xalign,gfloat yalign)
  {
    gtk_frame_set_label_align(gtkobj(),xalign,yalign);
  }

void Gtk::Frame::set_shadow_type(GtkShadowType type)
  {
    gtk_frame_set_shadow_type(gtkobj(),type);
  }

float Gtk::Frame::get_xalign() const
  { return gtkobj()->label_xalign; }

float Gtk::Frame::get_yalign() const
  { return gtkobj()->label_yalign; }

GtkShadowType Gtk::Frame::get_shadow_type() const
  { return (GtkShadowType)gtkobj()->shadow_type; }

Generated by  Doxygen 1.6.0   Back to index