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

progressbar.cc

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

ProgressBar::ProgressBar(Adjustment &adjustment)
  :     Progress((GtkProgress*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  set_adjustment(adjustment);
}

ProgressBar::ProgressBar()
  :     Progress((GtkProgress*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  set_adjustment();
}

} /* namespace Gtk */

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

namespace Gtk {
ProgressBar_Class ProgressBar::progress_bar_class = {0};

Object* ProgressBar_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new ProgressBar((GtkProgressBar*)(o)));
    return cpp;
  }

bool ProgressBar::isA( Object *checkcast)
  {
    return GTK_IS_PROGRESS_BAR(checkcast->gtkobj());
  }

GtkType ProgressBar::get_type()
  {
    return progress_bar_class.get_type();
  }

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

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

void ProgressBar::initialize_class()
  {

  }

void ProgressBar_Class::class_init_function(GtkProgressBarClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void ProgressBar_Class::object_init_function(GtkProgressBar *)
  {}

}

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

void Gtk::ProgressBar::set_bar_style(GtkProgressBarStyle style)
  {
    gtk_progress_bar_set_bar_style(gtkobj(),style);
  }

void Gtk::ProgressBar::set_discrete_blocks(guint blocks)
  {
    gtk_progress_bar_set_discrete_blocks(gtkobj(),blocks);
  }

void Gtk::ProgressBar::set_activity_step(guint step)
  {
    gtk_progress_bar_set_activity_step(gtkobj(),step);
  }

void Gtk::ProgressBar::set_activity_blocks(guint blocks)
  {
    gtk_progress_bar_set_activity_blocks(gtkobj(),blocks);
  }

void Gtk::ProgressBar::set_orientation(GtkProgressBarOrientation orientation)
  {
    gtk_progress_bar_set_orientation(gtkobj(),orientation);
  }

Gtk::ProgressBar::ProgressBar(GtkProgressBar *castitem)
  :     Gtk::Progress((GtkProgress*)(castitem))
  {
    initialize_class();
  }

GtkProgressBarStyle Gtk::ProgressBar::get_bar_style() const
  { return gtkobj()->bar_style; }

GtkProgressBarOrientation Gtk::ProgressBar::get_orientation() const
  { return gtkobj()->orientation; }

guint Gtk::ProgressBar::get_discrete_blocks() const
  { return gtkobj()->blocks; }

guint Gtk::ProgressBar::get_activity_step() const
  { return gtkobj()->activity_step; }

guint Gtk::ProgressBar::get_activity_blocks() const
  { return gtkobj()->activity_blocks; }

Generated by  Doxygen 1.6.0   Back to index