Class: ATSPI::Accessible::Text::Caret

Inherits:
Offset
  • Object
show all
Defined in:
lib/atspi/accessible/text/caret.rb

Overview

Represents the caret in a ATSPI::Accessible::Text.

Actions collapse

Representations collapse

Instance Method Details

#move_to(offset) ⇒ true, false

Returns indicating success.

Parameters:

  • offset (responds to #to_i)

Returns:

  • (true, false)

    indicating success

See Also:



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_iInteger

Returns its integer representation.

Returns:

  • (Integer)

    its integer representation

See Also:



25
26
27
# File 'lib/atspi/accessible/text/caret.rb', line 25

def to_i
  @text_native.caret_offset
end