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

scrollbar.cc

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

VScrollbar::VScrollbar( Adjustment &adjustment)
  :     Scrollbar((GtkScrollbar*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  set_adjustment(adjustment);
}

VScrollbar::VScrollbar()
  :     Scrollbar((GtkScrollbar*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  Adjustment *adjustment = manage(new Adjustment(0.0, 0.0, 0.0,
                                      0.0, 0.0, 0.0));
  // The adjustment will be destroyed along with the object
  set_adjustment(*adjustment);
}


HScrollbar::HScrollbar()
  :     Scrollbar((GtkScrollbar*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  Adjustment *adjustment = manage(new Adjustment(0.0, 0.0, 0.0,
                                      0.0, 0.0, 0.0));

  // The adjustment will be destroyed along with the object
  set_adjustment(*adjustment);
}

HScrollbar::HScrollbar( Adjustment &adjustment)
  :     Scrollbar((GtkScrollbar*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  set_adjustment(adjustment);
}



}

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

namespace Gtk {
Scrollbar_Class Scrollbar::scrollbar_class = {0};

Object* Scrollbar_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new Scrollbar((GtkScrollbar*)(o)));
    return cpp;
  }

bool Scrollbar::isA( Object *checkcast)
  {
    return GTK_IS_SCROLLBAR(checkcast->gtkobj());
  }

GtkType Scrollbar::get_type()
  {
    return scrollbar_class.get_type();
  }

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

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

void Scrollbar::initialize_class()
  {

  }

void Scrollbar_Class::class_init_function(GtkScrollbarClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void Scrollbar_Class::object_init_function(GtkScrollbar *)
  {}

}

Gtk::Scrollbar::Scrollbar(GtkScrollbar *castitem)
  :     Gtk::Range((GtkRange*)(castitem))
  {
    initialize_class();
  }

Gtk::Scrollbar::Scrollbar()
  :     Gtk::Range((GtkRange*)(gtk_object_new(get_type(),0)))
  {
    initialize_class();
  }

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


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

namespace Gtk {
VScrollbar_Class VScrollbar::vscrollbar_class = {0};

Object* VScrollbar_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new VScrollbar((GtkVScrollbar*)(o)));
    return cpp;
  }

bool VScrollbar::isA( Object *checkcast)
  {
    return GTK_IS_VSCROLLBAR(checkcast->gtkobj());
  }

GtkType VScrollbar::get_type()
  {
    return vscrollbar_class.get_type();
  }

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

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

void VScrollbar::initialize_class()
  {

  }

void VScrollbar_Class::class_init_function(GtkVScrollbarClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void VScrollbar_Class::object_init_function(GtkVScrollbar *)
  {}

}

Gtk::VScrollbar::VScrollbar(GtkVScrollbar *castitem)
  :     Gtk::Scrollbar((GtkScrollbar*)(castitem))
  {
    initialize_class();
  }

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


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

namespace Gtk {
HScrollbar_Class HScrollbar::hscrollbar_class = {0};

Object* HScrollbar_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new HScrollbar((GtkHScrollbar*)(o)));
    return cpp;
  }

bool HScrollbar::isA( Object *checkcast)
  {
    return GTK_IS_HSCROLLBAR(checkcast->gtkobj());
  }

GtkType HScrollbar::get_type()
  {
    return hscrollbar_class.get_type();
  }

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

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

void HScrollbar::initialize_class()
  {

  }

void HScrollbar_Class::class_init_function(GtkHScrollbarClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void HScrollbar_Class::object_init_function(GtkHScrollbar *)
  {}

}

Gtk::HScrollbar::HScrollbar(GtkHScrollbar *castitem)
  :     Gtk::Scrollbar((GtkScrollbar*)(castitem))
  {
    initialize_class();
  }

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

Generated by  Doxygen 1.6.0   Back to index