Class: Gtk::TextIter
- Inherits:
-
Object
- Object
- Gtk::TextIter
- Extended by:
- GLib::Deprecatable
- Defined in:
- lib/gtk3/text-iter.rb,
lib/gtk3/deprecated.rb
Instance Method Summary collapse
- #backward_search(text, flags, limit = nil) ⇒ Object
- #backward_search_raw ⇒ Object
- #forward_search(text, flags, limit = nil) ⇒ Object
- #forward_search_raw ⇒ Object
Instance Method Details
#backward_search(text, flags, limit = nil) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/gtk3/text-iter.rb', line 30 def backward_search(text, flags, limit=nil) found, start_iter, end_iter = backward_search_raw(text, flags, limit) if found [start_iter, end_iter] else nil end end |
#backward_search_raw ⇒ Object
29 |
# File 'lib/gtk3/text-iter.rb', line 29 alias_method :backward_search_raw, :backward_search |
#forward_search(text, flags, limit = nil) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/gtk3/text-iter.rb', line 20 def forward_search(text, flags, limit=nil) found, start_iter, end_iter = forward_search_raw(text, flags, limit) if found [start_iter, end_iter] else nil end end |
#forward_search_raw ⇒ Object
19 |
# File 'lib/gtk3/text-iter.rb', line 19 alias_method :forward_search_raw, :forward_search |