Class: ATSPI::Accessible::Text::Caret
- Defined in:
- lib/atspi/accessible/text/caret.rb
Overview
Represents the caret in a ATSPI::Accessible::Text.
Actions collapse
-
#move_to(offset) ⇒ true, false
Indicating success.
Representations collapse
-
#to_i ⇒ Integer
Its integer representation.
Instance Method Details
#move_to(offset) ⇒ true, false
Returns indicating success.
16 17 18 |
# File 'lib/atspi/accessible/text/caret.rb', line 16 def move_to(offset) @text_native.set_caret_offset(offset.to_i) end |
#to_i ⇒ Integer
Returns its integer representation.
25 26 27 |
# File 'lib/atspi/accessible/text/caret.rb', line 25 def to_i @text_native.caret_offset end |