Class: ATSPI::Accessible::Table::Cells

Inherits:
Children
  • Object
show all
Defined in:
lib/atspi/accessible/table/cells.rb

Overview

Represents all cells in a ATSPI::Accessible::Table. Cells are also the children of their ATSPI::Accessible::Table.

Enumerable interface collapse

Instance Method Details

#at(idx) ⇒ Cell #at(row: , column: ) ⇒ Cell

Returns the cell at idx or at (row,column).

Returns:

  • (Cell)

    the cell at idx or at (row,column)

See Also:



17
18
19
20
21
22
23
# File 'lib/atspi/accessible/table/cells.rb', line 17

def at(idx = nil)
  if idx.is_a? Numeric
    Cell.new(@native.child_at_index(idx))
  else
    at_coords(idx)
  end
end

#at_coords(row:, column:) ⇒ Cell

Returns the cell at (row,column).

Parameters:

  • row (Integer)
  • column (Integer)

Returns:

  • (Cell)

    the cell at (row,column)

See Also:



31
32
33
# File 'lib/atspi/accessible/table/cells.rb', line 31

def at_coords(row:, column:)
  Cell.new(@native.accessible_at(row, column))
end