Class: Gtk::TextIter

Inherits:
Object
  • Object
show all
Extended by:
GLib::Deprecatable
Defined in:
lib/gtk4/text-iter.rb,
lib/gtk4/deprecated.rb

Instance Method Summary collapse

Instance Method Details

#backward_search(text, flags, limit = nil) ⇒ Object



30
31
32
33
34
35
36
37
# File 'lib/gtk4/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_rawObject



29
# File 'lib/gtk4/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/gtk4/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_rawObject



19
# File 'lib/gtk4/text-iter.rb', line 19

alias_method :forward_search_raw, :forward_search