ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 7日 (金) 01:27:09 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-itrsmrks ------------------------- @@ -42,7 +42,8 @@ :Text Mark Visibility: By default, text marks are invisible within the text, however, you can make them visible by setting Gtk::TextMark#visible=(boolean) to true. -Text marks can be accessed in two ways. You can retrieve a text mark at a specific Gtk::TextIter location. It is also possible to set up text mark with a string as its name, which makes it easy to keep track of. Here the word "retrieve" is not very exact, since there really is no way to "retrieve a mark at an iter location". Instead you can give a mark a name when you create a new mark for an iter, and only then later you can truly retrieve it if you wish by its name. But this detail is rally not that important, I just want to be accurate. In fact there are two default marks always provided by GTK+. They are((*selection_bound*))and((*insert.*))You can always retrieve these two marks, and of course any marks you yourself created with names, via Gtk::TextBuffer#get_mark(name). +Text marks can be accessed in two ways. You can retrieve a text mark at a specific Gtk::TextIter location. It is also possible to set up text mark with a string as its name, which makes it easy to keep track of. Here the word "retrieve" is not very exact, since there really is no way to "retrieve a mark at an iter location". Instead you can give a mark a name when you create a new mark for an iter, and, only then later, you can truly retrieve it if you wish by its name. But this detail is rally not that important, I just want to be accurate. In fact there are two default marks always provided by GTK+. They are((*selection_bound*))and((*insert.*))You can always retrieve these two marks, and of course any marks you yourself created with names, via Gtk::TextBuffer#get_mark(name). + === Creating a Text Mark: