// -*- c++ -*-
/*  Generated by gensig from range.gen_h. DO NOT MODIFY!!! */
#ifndef GTKMM_RANGE_HEADER
#define GTKMM_RANGE_HEADER
/* $Id: range.gen_h,v 1.31.2.3 1999/03/20 17:28:09 glaurent Exp $ */

/* range.h
 * 
 * Copyright (C) 1998-1999 
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <gtk--/widget.h>
#include <gtk--/adjustment.h>
#include <gtk/gtkrange.h>

class Gtk_Range_Class;
#line 26 "range.gen_h"

class Gtk_Range : public Gtk_Widget {
  
public:
protected:
  typedef Gtk_Range_Class    CppClassType;
  typedef GtkRange           BaseObjectType;
  typedef GtkRangeClass      BaseClassType;

  virtual void *get_parent_class();

private:
  friend CppClassType;
  static CppClassType range_class; 
  GtkType get_type(); 

public:


  Gtk_Range(GtkRange *castitem);
  
  const Gtk_Adjustment *get_adjustment() const;

  //: if owned=true, the adjustment will be destroyed along with this object
  //  Use with care.
  void                  set_adjustment( Gtk_Adjustment &adjustment,
				        bool owned = false);

  void                  set_update_policy(GtkUpdateType policy);

  Signal_proxy0<BaseObjectType> draw_background;
#line 45 "range.gen_h"
  Signal_proxy0<BaseObjectType> clear_background;
#line 47 "range.gen_h"
  Signal_proxy0<BaseObjectType> draw_trough;
  Signal_proxy0<BaseObjectType> draw_slider;
  Signal_proxy0<BaseObjectType> draw_step_forw;
  Signal_proxy0<BaseObjectType> draw_step_back;

  Signal_proxy0<GtkRange> slider_update;
  Signal_proxy3_r<gint,BaseObjectType,gint, gint, gfloat*> trough_click;
  Signal_proxy2<BaseObjectType,gint, gint> motion;
  Signal_proxy3_r<gint,BaseObjectType,GdkEventKey*, GtkScrollType*, GtkTroughType*> trough_keys;
  Signal_proxy0_r<gint,BaseObjectType> timer;
  
  void default_hslider_update();
  void default_vslider_update();
  void default_htrough_click(gint x, gint y, gfloat *jump_perc);
  void default_vtrough_click(gint x, gint y, gfloat *jump_perc);
  void default_hmotion(gint xdelta, gint ydelta);
  void default_vmotion(gint xdelta, gint ydelta);

protected:
  /* impl functions */
  virtual void draw_background_impl();
  virtual void clear_background_impl();
  virtual void draw_trough_impl();
  virtual void draw_slider_impl();
  virtual void draw_step_forw_impl();
  virtual void draw_step_back_impl();
  virtual void slider_update_impl();
  virtual gint trough_click_impl(gint p1, gint p2, gfloat* p3);
  virtual void motion_impl(gint p1, gint p2);
  virtual gint trough_keys_impl(GdkEventKey* p1, GtkScrollType* p2, GtkTroughType* p3);
  virtual gint timer_impl();
public:
  GtkRange* gtkobj() { return GTK_RANGE(gtkobject); }
  const GtkRange* gtkobj() const { return GTK_RANGE(gtkobject); }
  static bool isGtkRange(Gtk_Object *checkcast);
#line 65 "range.gen_h"

  ~Gtk_Range() {}

protected:
  Gtk_Range();
  mutable Gtk_ObjectHandle<Gtk_Adjustment> adjustment_;
};

#endif
