Google

logo top
Main Page   Widgets   Namespaces   Book  

Gtk::TextTagTable Class Reference
[TextView Classes]

Inheritance diagram for Gtk::TextTagTable:

Inheritance graph
[legend]
List of all members.

Public Types

typedef SigC::Slot1< void,
const Glib::RefPtr<TextTag >&> 
SlotForEach

Public Methods

virtual ~TextTagTable ()
GtkTextTagTable* gobj ()
const GtkTextTagTable* gobj () const
GtkTextTagTable* gobj_copy ()
void add (const Glib::RefPtr<TextTag>& tag)
 Add a tag to the table.

void remove (const Glib::RefPtr<TextTag>& tag)
 Remove a tag from the table.

Glib::RefPtr<TextTaglookup (const Glib::ustring& name)
 Look up a named tag.

Glib::RefPtr<const TextTaglookup (const Glib::ustring& name) const
 Look up a named tag.

void foreach (const SlotForEach& slot)
int get_size () const
 Returns the size of the table (number of tags).

Glib::SignalProxy2< void,
const Glib::RefPtr<TextTag>&,
bool > 
signal_tag_changed ()
Glib::SignalProxy1< void,
const Glib::RefPtr<TextTag >&> 
signal_tag_added ()
Glib::SignalProxy1< void,
const Glib::RefPtr<TextTag >&> 
signal_tag_removed ()

Static Public Methods

Glib::RefPtr<TextTagTable> create ()

Protected Methods

 TextTagTable ()
virtual void on_tag_changed (const Glib::RefPtr<TextTag>& tag, bool size_changed)
virtual void on_tag_added (const Glib::RefPtr<TextTag>& tag)
virtual void on_tag_removed (const Glib::RefPtr<TextTag>& tag)

Related Functions

(Note that these are not member functions.)

Glib::RefPtr<Gtk::TextTagTable> wrap (GtkTextTagTable* object, bool take_copy=false)

Member Typedef Documentation

typedef SigC::Slot1<void, const Glib::RefPtr<TextTag>&> Gtk::TextTagTable::SlotForEach
 


Constructor & Destructor Documentation

virtual Gtk::TextTagTable::~TextTagTable (   [virtual]
 

Gtk::TextTagTable::TextTagTable (   [protected]
 


Member Function Documentation

void Gtk::TextTagTable::add ( const Glib::RefPtr<TextTag>&    tag
 

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:
tag A Gtk::TextTag.

Glib::RefPtr<TextTagTable> Gtk::TextTagTable::create (   [static]
 

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]
 

Reimplemented from Glib::ObjectBase.

GtkTextTagTable* Gtk::TextTagTable::gobj (   [inline]
 

Reimplemented from Glib::ObjectBase.

GtkTextTagTable* Gtk::TextTagTable::gobj_copy (  
 

Glib::RefPtr<const TextTag> Gtk::TextTagTable::lookup ( const Glib::ustring   name const
 

Look up a named tag.

Parameters:
name Name of a tag.
Returns:
The tag, or 0 if none by that name is in the table.

Glib::RefPtr<TextTag> Gtk::TextTagTable::lookup ( const Glib::ustring   name
 

Look up a named tag.

Parameters:
name Name of a tag.
Returns:
The tag, or 0 if 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]
 

void Gtk::TextTagTable::remove ( const Glib::RefPtr<TextTag>&    tag
 

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:
tag A Gtk::TextTag.

Glib::SignalProxy1<void,const Glib::RefPtr<TextTag>&> Gtk::TextTagTable::signal_tag_added (  
 

Prototype:
void tag_added(const Glib::RefPtr<TextTag>& tag)

Glib::SignalProxy2<void,const Glib::RefPtr<TextTag>&,bool> Gtk::TextTagTable::signal_tag_changed (  
 

Prototype:
void tag_changed(const Glib::RefPtr<TextTag>& tag, bool size_changed)

Glib::SignalProxy1<void,const Glib::RefPtr<TextTag>&> Gtk::TextTagTable::signal_tag_removed (  
 

Prototype:
void tag_removed(const Glib::RefPtr<TextTag>& tag)


Friends And Related Function Documentation

Glib::RefPtr<Gtk::TextTagTable> wrap ( GtkTextTagTable*    object,
bool    take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated for gtkmm by Doxygen 1.3-rc1 © 1997-2001