// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GTKMM_TEXTTAG_H
#define _GTKMM_TEXTTAG_H

#include <glibmm.h>

/* $Id: texttag.hg,v 1.25 2002/10/11 18:05:59 murrayc Exp $ */

/* texttag.h
 * 
 * Copyright (C) 1998-2002 The gtkmm Development Team
 *
 * 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 <gtkmm/object.h>
#include <gtkmm/enums.h>
#include <gdkmm/bitmap.h>
#include <gdkmm/color.h>
#include <pangomm/fontdescription.h>
#include <pangomm/tabarray.h>
#include <gtk/gtktexttag.h>


#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GtkTextTag GtkTextTag;
typedef struct _GtkTextTagClass GtkTextTagClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */


namespace Gtk
{ class TextTag_Class; } // namespace Gtk
namespace Gtk
{

class TextIter;

/**
 * @ingroup TextView
 */

class TextTag : public Glib::Object
{
   
#ifndef DOXYGEN_SHOULD_SKIP_THIS

public:
  typedef TextTag CppObjectType;
  typedef TextTag_Class CppClassType;
  typedef GtkTextTag BaseObjectType;
  typedef GtkTextTagClass BaseClassType;

private:
  friend class TextTag_Class;
  static CppClassType texttag_class_;

  // noncopyable
  TextTag(const TextTag&);
  TextTag& operator=(const TextTag&);

protected:
  explicit TextTag(const Glib::ConstructParams& construct_params);
  explicit TextTag(GtkTextTag* castitem);

#endif /* DOXYGEN_SHOULD_SKIP_THIS */

public:
  virtual ~TextTag();

#ifndef DOXYGEN_SHOULD_SKIP_THIS
  static GType get_type()      G_GNUC_CONST;
  static GType get_base_type() G_GNUC_CONST;
#endif

  ///Provides access to the underlying C GObject.
  GtkTextTag*       gobj()       { return reinterpret_cast<GtkTextTag*>(gobject_); }

  ///Provides access to the underlying C GObject.
  const GtkTextTag* gobj() const { return reinterpret_cast<GtkTextTag*>(gobject_); }

  GtkTextTag* gobj_copy();

private:

protected:
  TextTag();
  explicit TextTag(const Glib::ustring& name);

public:
  
  static Glib::RefPtr<TextTag> create();

  
  static Glib::RefPtr<TextTag> create(const Glib::ustring& name);


  /** Get the tag priority.
   * @return The tag's priority.
   */
  int get_priority() const;
  
  /** Sets the priority of a Gtk::TextTag. Valid priorities are
   * start at 0 and go to one less than Gtk::TextTagTable::get_size().
   * Each tag in a table has a unique priority; setting the priority
   * of one tag shifts the priorities of all the other tags in the
   * table to maintain a unique priority for each tag. Higher priority
   * tags "win" if two tags both set the same text attribute. When adding
   * a tag to a tag table, it will be assigned the highest priority in
   * the table by default; so normally the precedence of a set of tags
   * is the order in which they were added to the table, or created with
   * Gtk::TextBuffer::create_tag(), which adds the tag to the buffer's table
   * automatically.
   * @param priority The new priority.
   */
  void set_priority(int priority);
  
  /** Emits the "event" signal on the Gtk::TextTag.
   * @param event_object Object that received the event, such as a widget.
   * @param event The event.
   * @param iter Location where the event was received.
   * @return Result of signal emission (whether the event was handled).
   */
  bool event(const Glib::RefPtr<Glib::Object>& event_object, GdkEvent* event, const TextIter& iter);

  
  /**
   * @par Prototype:
   * <tt>bool %event(const Glib::RefPtr<Glib::Object>& event_object, GdkEvent* event, const TextIter& iter)</tt>
   */
  Glib::SignalProxy3<bool,const Glib::RefPtr<Glib::Object>&,GdkEvent*,const TextIter&> signal_event();


  //_WRAP_PROPERTY("name", Glib::ustring) //construct-only.
  Glib::PropertyProxy_WriteOnly<Glib::ustring> property_background();

  Glib::PropertyProxy_WriteOnly<Glib::ustring> property_foreground();

  Glib::PropertyProxy<Gdk::Color> property_background_gdk();

  Glib::PropertyProxy<Gdk::Color> property_foreground_gdk();

  Glib::PropertyProxy< Glib::RefPtr<Gdk::Bitmap> > property_background_stipple();

  Glib::PropertyProxy< Glib::RefPtr<Gdk::Bitmap> > property_foreground_stipple();

  Glib::PropertyProxy<Glib::ustring> property_font();

  Glib::PropertyProxy<Pango::FontDescription> property_font_desc();

  Glib::PropertyProxy<Glib::ustring> property_family();

  Glib::PropertyProxy<Pango::Style> property_style();

  Glib::PropertyProxy<Pango::Variant> property_variant();

  Glib::PropertyProxy<int> property_weight();

  Glib::PropertyProxy<Pango::Stretch> property_stretch();

  Glib::PropertyProxy<int> property_size();

  Glib::PropertyProxy<double> property_size_points();

  Glib::PropertyProxy<double> property_scale();

  Glib::PropertyProxy<int> property_pixels_above_lines();

  Glib::PropertyProxy<int> property_pixels_below_lines();

  Glib::PropertyProxy<int> property_pixels_inside_wrap();

  Glib::PropertyProxy<bool> property_editable();

  Glib::PropertyProxy<WrapMode> property_wrap_mode();

  Glib::PropertyProxy<Justification> property_justification();

  Glib::PropertyProxy<TextDirection> property_direction();

  Glib::PropertyProxy<int> property_left_margin();

  Glib::PropertyProxy<int> property_indent();

  Glib::PropertyProxy<bool> property_strikethrough();

  Glib::PropertyProxy<int> property_right_margin();

  Glib::PropertyProxy<Pango::Underline> property_underline();

  Glib::PropertyProxy<int> property_rise();

  Glib::PropertyProxy<bool> property_background_full_height();

  Glib::PropertyProxy<Glib::ustring> property_language();

  Glib::PropertyProxy<Pango::TabArray> property_tabs();

  Glib::PropertyProxy<bool> property_invisible();

  Glib::PropertyProxy<bool> property_background_set();

  Glib::PropertyProxy<bool> property_foreground_set();

  Glib::PropertyProxy<bool> property_background_stipple_set();

  Glib::PropertyProxy<bool> property_foreground_stipple_set();

  Glib::PropertyProxy<bool> property_family_set();

  Glib::PropertyProxy<bool> property_style_set();

  Glib::PropertyProxy<bool> property_variant_set();

  Glib::PropertyProxy<bool> property_weight_set();

  Glib::PropertyProxy<bool> property_stretch_set();

  Glib::PropertyProxy<bool> property_size_set();

  Glib::PropertyProxy<bool> property_scale_set();

  Glib::PropertyProxy<bool> property_pixels_above_lines_set();

  Glib::PropertyProxy<bool> property_pixels_below_lines_set();

  Glib::PropertyProxy<bool> property_pixels_inside_wrap_set();

  Glib::PropertyProxy<bool> property_editable_set();

  Glib::PropertyProxy<bool> property_wrap_mode_set();

  Glib::PropertyProxy<bool> property_justification_set();

  Glib::PropertyProxy<bool> property_left_margin_set();

  Glib::PropertyProxy<bool> property_indent_set();

  Glib::PropertyProxy<bool> property_strikethrough_set();

  Glib::PropertyProxy<bool> property_right_margin_set();

  Glib::PropertyProxy<bool> property_underline_set();

  Glib::PropertyProxy<bool> property_rise_set();

  Glib::PropertyProxy<bool> property_background_full_height_set();

  Glib::PropertyProxy<bool> property_language_set();

  Glib::PropertyProxy<bool> property_tabs_set();

  Glib::PropertyProxy<bool> property_invisible_set();


public:

public:
  //C++ methods used to invoke GTK+ virtual functions:

protected:
  //GTK+ Virtual Functions (override these to change behaviour):

  //Default Signal Handlers::
  virtual bool on_event(const Glib::RefPtr<Glib::Object>& event_object, GdkEvent* event, const TextIter& iter);


};

} /* namespace Gtk */


namespace Glib
{
  /** @relates Gtk::TextTag */
  Glib::RefPtr<Gtk::TextTag> wrap(GtkTextTag* object, bool take_copy = false);
}


#endif /* _GTKMM_TEXTTAG_H */

