[ruby-gnome2-doc-cvs] [Hiki] update - Gtk::TextTagTable

Back to archive index

ruby-****@lists***** ruby-****@lists*****
2003年 4月 7日 (月) 17:51:42 JST


-------------------------
REMOTE_ADDR = 61.204.181.66
REMOTE_HOST = 
-------------------------

-------------------------
= class Gtk::TextTagTable
A Gtk::TextTagTable defines a set of tags that can be used together. Each Gtk::TextBuffer 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.

== super class
* GLib::Object

== class methods
--- Gtk::TextTagTable.new
    Creates a new Gtk::TextTagTable. The table contains no tags by default.
    * Returns : a new Gtk::TextTagTable

== public instance methods
--- add(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.
    * tag: a Gtk::TextTag
    * Returns: self

--- each {|tag| ... }
    Calls block on each tag in table.
    * tag: a Gtk::TextTag
    * Returns: self

--- lookup(name)
    Look up a named tag.
    * name:  name of a tag 
    * Returns: Gtk::TextTag, or nil if none by that name is in the table.

--- remove(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.
    * tag: a Gtk::TextTag
    * Returns: self

--- size
    Returns the size of the table (number of tags)
    * Returns: the size of the table

== signals

--- tag-added: self, tag
     * self: Gtk::TextTagTable
     * tag: Gtk::TextTag

--- tag-changed: self, tag, size_changed
     * self: Gtk::TextTagTable
     * tag: Gtk::TextTag
     * size_changed: true or false

--- tag-removed: self, tag
     * self: Gtk::TextTagTable
     * tag: Gtk::TextTag

* 2003-04-07 ((<Masao>)): Move from The RWiki.
* 2002-01-03 ((<OGASAWARA>))




ruby-gnome2-cvs メーリングリストの案内
Back to archive index