Method: Gtk::TextView#get_iter_at_location
- Defined in:
- lib/gtk4/text-view.rb
#get_iter_at_location(x, y) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/gtk4/text-view.rb', line 34 def get_iter_at_location(x, y) result = get_iter_at_location_raw(x, y) if result.is_a?(Gtk::TextIter) # For GTK+ < 3.20 iter = result iter else found, iter = result if found iter else nil end end end |