// -*- c++ -*-
/*  Generated by gensig from text.gen_h. DO NOT MODIFY!!! */
#ifndef GTKMM_TEXT_HEADER
#define GTKMM_TEXT_HEADER
/* $Id: text.gen_h,v 1.28.2.2 1999/03/20 05:00:10 terop Exp $ */

/* text.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--/editable.h>
#include <gtk--/adjustment.h>
#include <gtk/gtktext.h>
class Gtk_Text_Class;
#line 25 "text.gen_h"

class Gtk_Text : public Gtk_Editable {
public:
protected:
  typedef Gtk_Text_Class    CppClassType;
  typedef GtkText           BaseObjectType;
  typedef GtkTextClass      BaseClassType;

  virtual void *get_parent_class();

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

public:


  Gtk_Text( Gtk_Adjustment &hadj, Gtk_Adjustment &vadj);
  Gtk_Text(GtkText *castitem);
  Gtk_Text();
  ~Gtk_Text() {}

#line 36 "text.gen_h"
#line 41 "text.gen_h"
  void set_word_wrap  (bool word_wrap);
  void set_line_wrap  (bool line_wrap);

  void set_adjustments( Gtk_Adjustment &hadj,
		        Gtk_Adjustment &vadj);

  const Gtk_Adjustment* get_hadjustment();
  const Gtk_Adjustment* get_vadjustment();
  
  void set_point      (guint index);
  guint get_point     () const;
  guint get_length    () const;
  void freeze         ();
  void thaw           ();
  void insert         (const Gdk_Font &font,
		       const Gdk_Color &fore,
		       const Gdk_Color &back,
		       const _gtk_string &chars,
		       gint length);
  gint backward_delete(guint nchars);
  gint forward_delete(guint nchars);

protected:
  /* impl functions */
public:
  GtkText* gtkobj() { return GTK_TEXT(gtkobject); }
  const GtkText* gtkobj() const { return GTK_TEXT(gtkobject); }
  static bool isGtkText(Gtk_Object *checkcast);
#line 63 "text.gen_h"


protected:
  Gtk_ObjectHandle<Gtk_Adjustment> hadjustment_, vadjustment_;
  
};

#endif
