新規作成  編集  Ruby-GNOME2 Project Website  ページ一覧  検索  更新履歴  編集履歴  RSS  ログイン

Gtk::TextTagTable

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.

クラスメソッド

Gtk::TextTagTable.new
Creates a new Gtk::TextTagTable. The table contains no tags by default.

インスタンスメソッド

[]
要編集
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.
each {|tag| ... }
Calls block on each tag in table.
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.
size
Returns the size of the table (number of tags)
  • Returns: the size of the table

更新履歴

  • 2014-06-14 クラスのメンバ項目で漏れているものを追加。 - きたがわ
  • 2003-04-07 Masao?: Move from The RWiki.
  • 2002-01-03 OGASAWARA?
更新日時:2014/06/14 21:32:03
キーワード:
参照:[Gtk::TextBuffer] [Gtk::SourceBuffer] [Ruby/GTK] [Gtk::TextTagTable] [Ruby/GTK Object Hierarchy] [Gtk::SourceTagTable] [Gtk::TextTag]