Gtk::TextTagTable Class Reference
[TextView Classes]
Typedefed as Gtk::TextBuffer::TagTable. More...
Inherits Glib::Object.
List of all members.
Detailed Description
Typedefed as Gtk::TextBuffer::TagTable. 
A Collection of Gtk::TextBuffer::Tags that can be used together.
A tag table defines a set of Gtk::TextBuffer::Tags that can be used together. Each buffer has one tag table associated with it; only tags from that tag table can be used with the buffer. A single tag table can be shared between multiple buffers, however. 
Member Typedef Documentation
Constructor & Destructor Documentation
      
        
          | virtual Gtk::TextTagTable::~TextTagTable | ( |  | ) |  [virtual] | 
      
 
 
      
        
          | Gtk::TextTagTable::TextTagTable | ( |  | ) |  [protected] | 
      
 
 
Member Function Documentation
Add a tag to the table. 
The tag is assigned the highest priority in the table.
tag must not be in a tag table already, and may not have the same name as an already-added tag. 
- Parameters:
- 
  
  
 
 
      
        
          | void Gtk::TextTagTable::foreach | ( | const SlotForEach & | slot | ) |  | 
      
 
 
      
        
          | int Gtk::TextTagTable::get_size | ( |  | ) | const | 
      
 
Returns the size of the table (number of tags). 
- Returns:
- Number of tags in table. 
 
 
      
        
          | const GtkTextTagTable* Gtk::TextTagTable::gobj | ( |  | ) | const  [inline] | 
      
 
Provides access to the underlying C GObject. 
Reimplemented from Glib::ObjectBase.
 
 
      
        
          | GtkTextTagTable* Gtk::TextTagTable::gobj | ( |  | ) |  [inline] | 
      
 
Provides access to the underlying C GObject. 
Reimplemented from Glib::ObjectBase.
 
 
      
        
          | GtkTextTagTable* Gtk::TextTagTable::gobj_copy | ( |  | ) |  | 
      
 
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. 
 
 
Look up a named tag. 
- Parameters:
- 
  
  
- Returns:
- The tag, or 0if none by that name is in the table.
 
 
Look up a named tag. 
- Parameters:
- 
  
  
- Returns:
- The tag, or 0if none by that name is in the table.
 
 
      
        
          | virtual void Gtk::TextTagTable::on_tag_added | ( | const Glib::RefPtr< TextTag >& | tag | ) |  [protected, virtual] | 
      
 
 
      
        
          | virtual void Gtk::TextTagTable::on_tag_changed | ( | const Glib::RefPtr< TextTag >& | tag, | 
        
          |  |  | bool | size_changed |  | 
        
          |  | ) |  |  |  [protected, virtual] | 
      
 
 
      
        
          | virtual void Gtk::TextTagTable::on_tag_removed | ( | const Glib::RefPtr< TextTag >& | tag | ) |  [protected, virtual] | 
      
 
 
Remove a tag from the table. 
This will remove the table's reference to the tag, so be careful - the tag will end up destroyed if you don't have a reference to it. 
- Parameters:
- 
  
  
 
 
- Prototype:
- void on_my_tag_added(const Glib::RefPtr<TextTag>& tag)
 
 
- Prototype:
- void on_my_tag_changed(const Glib::RefPtr<TextTag>& tag, bool size_changed)
 
 
- Prototype:
- void on_my_tag_removed(const Glib::RefPtr<TextTag>& tag)
 
 
Friends And Related Function Documentation
A Glib::wrap() method for this object. 
- Parameters:
- 
  
    |  | object | The C instance. |  |  | take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |  
 
- Returns:
- A C++ instance that wraps this C instance. 
 
 
The documentation for this class was generated from the following file: