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

buttonbox.cc

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

void ButtonBox::set_layout_spacing(GtkButtonBoxStyle layout, gint spacing)
{
  GtkButtonBox *bbox = gtkobj();

  if(layout != GTK_BUTTONBOX_DEFAULT)
    gtk_button_box_set_layout(bbox, layout);

  if(spacing != GTK_BUTTONBOX_DEFAULT)
    gtk_button_box_set_spacing(bbox, spacing);
}

HButtonBox::HButtonBox(GtkButtonBoxStyle layout, gint spacing)
  :     ButtonBox((GtkButtonBox*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  set_layout_spacing(layout, spacing);
}

VButtonBox::VButtonBox(GtkButtonBoxStyle layout, gint spacing)
  :     ButtonBox((GtkButtonBox*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  set_layout_spacing(layout, spacing);
}

gint ButtonBox::get_child_size_default_width() const
{
  gint w,h;
  gtk_button_box_get_child_size_default(&w,&h);
  return w;
}

gint ButtonBox::get_child_size_default_height() const
{
  gint w,h;
  gtk_button_box_get_child_size_default(&w,&h);
  return h;
}

gint ButtonBox::get_child_ipadding_default_x() const
{
  gint x,y;
  gtk_button_box_get_child_ipadding_default(&x,&y);
  return x;
}

gint ButtonBox::get_child_ipadding_default_y() const
{
  gint x,y;
  gtk_button_box_get_child_ipadding_default(&x,&y);
  return y;
}


}

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

namespace Gtk {
ButtonBox_Class ButtonBox::button_box_class = {0};

Object* ButtonBox_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new ButtonBox((GtkButtonBox*)(o)));
    return cpp;
  }

bool ButtonBox::isA( Object *checkcast)
  {
    return GTK_IS_BUTTON_BOX(checkcast->gtkobj());
  }

GtkType ButtonBox::get_type()
  {
    return button_box_class.get_type();
  }

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

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

void ButtonBox::initialize_class()
  {

  }

void ButtonBox_Class::class_init_function(GtkButtonBoxClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void ButtonBox_Class::object_init_function(GtkButtonBox *)
  {}

}

Gtk::ButtonBox::ButtonBox(GtkButtonBox *castitem)
  :     Gtk::Box((GtkBox*)(castitem))
  {
    initialize_class();
  }

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

void Gtk::ButtonBox::set_layout(GtkButtonBoxStyle layout_style)
  {
    gtk_button_box_set_layout(gtkobj(),layout_style);
  }

void Gtk::ButtonBox::set_child_size(gint min_width,gint min_height)
  {
    gtk_button_box_set_child_size(gtkobj(),min_width,min_height);
  }

void Gtk::ButtonBox::set_child_ipadding(gint ipad_x,gint ipad_y)
  {
    gtk_button_box_set_child_ipadding(gtkobj(),ipad_x,ipad_y);
  }

void Gtk::ButtonBox::set_spacing(gint spacing)
  {
    gtk_button_box_set_spacing(gtkobj(),spacing);
  }

void Gtk::ButtonBox::set_child_size_default(gint min_width,gint min_height)
  {
    gtk_button_box_set_child_size_default(min_width,min_height);
  }

void Gtk::ButtonBox::set_child_ipadding_default(gint ipad_x,gint ipad_y)
  {
    gtk_button_box_set_child_ipadding_default(ipad_x,ipad_y);
  }

GtkButtonBoxStyle Gtk::ButtonBox::get_layout() const
  { return gtkobj()->layout_style; }

gint Gtk::ButtonBox::get_child_size_width() const
  { return gtkobj()->child_min_width; }

gint Gtk::ButtonBox::get_child_size_height() const
  { return gtkobj()->child_min_height; }

gint Gtk::ButtonBox::get_child_ipadding_x() const
  { return gtkobj()->child_ipad_x; }

gint Gtk::ButtonBox::get_child_ipadding_y() const
  { return gtkobj()->child_ipad_y; }

gint Gtk::ButtonBox::get_spacing() const
  { return gtkobj()->spacing; }


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

namespace Gtk {
VButtonBox_Class VButtonBox::vbutton_box_class = {0};

Object* VButtonBox_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new VButtonBox((GtkVButtonBox*)(o)));
    return cpp;
  }

bool VButtonBox::isA( Object *checkcast)
  {
    return GTK_IS_VBUTTON_BOX(checkcast->gtkobj());
  }

GtkType VButtonBox::get_type()
  {
    return vbutton_box_class.get_type();
  }

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

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

void VButtonBox::initialize_class()
  {

  }

void VButtonBox_Class::class_init_function(GtkVButtonBoxClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void VButtonBox_Class::object_init_function(GtkVButtonBox *)
  {}

}

Gtk::VButtonBox::VButtonBox(GtkVButtonBox *castitem)
  :     Gtk::ButtonBox((GtkButtonBox*)(castitem))
  {
    initialize_class();
  }

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

gint Gtk::VButtonBox::get_spacing_default()
  {
    return gtk_vbutton_box_get_spacing_default();
  }

GtkButtonBoxStyle Gtk::VButtonBox::get_layout_default()
  {
    return gtk_vbutton_box_get_layout_default();
  }

void Gtk::VButtonBox::set_spacing_default(gint spacing)
  {
    gtk_vbutton_box_set_spacing_default(spacing);
  }

void Gtk::VButtonBox::set_layout_default(GtkButtonBoxStyle layout)
  {
    gtk_vbutton_box_set_layout_default(layout);
  }


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

namespace Gtk {
HButtonBox_Class HButtonBox::hbutton_box_class = {0};

Object* HButtonBox_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new HButtonBox((GtkHButtonBox*)(o)));
    return cpp;
  }

bool HButtonBox::isA( Object *checkcast)
  {
    return GTK_IS_HBUTTON_BOX(checkcast->gtkobj());
  }

GtkType HButtonBox::get_type()
  {
    return hbutton_box_class.get_type();
  }

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

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

void HButtonBox::initialize_class()
  {

  }

void HButtonBox_Class::class_init_function(GtkHButtonBoxClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void HButtonBox_Class::object_init_function(GtkHButtonBox *)
  {}

}

Gtk::HButtonBox::HButtonBox(GtkHButtonBox *castitem)
  :     Gtk::ButtonBox((GtkButtonBox*)(castitem))
  {
    initialize_class();
  }

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

gint Gtk::HButtonBox::get_spacing_default()
  {
    return gtk_hbutton_box_get_spacing_default();
  }

GtkButtonBoxStyle Gtk::HButtonBox::get_layout_default()
  {
    return gtk_hbutton_box_get_layout_default();
  }

void Gtk::HButtonBox::set_spacing_default(gint spacing)
  {
    gtk_hbutton_box_set_spacing_default(spacing);
  }

void Gtk::HButtonBox::set_layout_default(GtkButtonBoxStyle layout)
  {
    gtk_hbutton_box_set_layout_default(layout);
  }

Generated by  Doxygen 1.6.0   Back to index