# cp.ui.OldRow

Represents an AXRow axuielement.


# API Overview

Constructors - API calls which return an object, typically one that offers API methods

  • OldRow

Fields - Variables which can only be accessed from an object returned by a constructor

  • disclosing
  • disclosureLevel
  • index
  • selected

Methods - API calls which can only be made on an object returned by a constructor

  • disclosedByRow
  • disclosedRows
  • matches

# API Documentation

# Constructors

# OldRow

Signature cp.ui.OldRow(parent, uiFinder) -> cp.ui.OldRow
Type Constructor
Description Creates a new Row instance with the specified parent and uiFinder.
Parameters
  • parent - the parent Element.
  • uiFinder - a function or cp.prop containing the axuielement
Returns
  • The new Row.
Notes None
Examples None
Source src/extensions/cp/ui/OldRow.lua line 21

# Fields

# disclosing

Signature cp.ui.OldRow.disclosing <cp.prop: boolean>
Type Field
Description Indicates if the Row is disclosing other Rows.
Notes None
Source src/extensions/cp/ui/OldRow.lua line 32

# disclosureLevel

Signature cp.ui.OldRow.disclosureLevel <cp.prop: number; read-only>
Type Field
Description The depth of disclosure. 0 is the top level.
Notes None
Source src/extensions/cp/ui/OldRow.lua line 39

# index

Signature cp.ui.OldRow.index <cp.prop: number; read-only>
Type Field
Description The numeric index of this row in the overall container, with 0 being the first item.
Notes None
Source src/extensions/cp/ui/OldRow.lua line 87

# selected

Signature cp.ui.OldRow.selected <cp.prop: boolean>
Type Field
Description Indicates if the row is currently selected. May be set.
Notes None
Source src/extensions/cp/ui/OldRow.lua line 80

# Methods

# disclosedByRow

Signature cp.ui.OldRow:disclosedByRow() -> cp.ui.OldRow
Type Method
Description The Row which is disclosing this Row.
Parameters
  • None
Returns
  • A cp.ui.OldRow object
Notes None
Examples None
Source src/extensions/cp/ui/OldRow.lua line 46

# disclosedRows

Signature cp.ui.OldRow:disclosedRows() -> table of cp.ui.OldRow or nil
Type Method
Description If available, returns a table of Rows that are disclosed by this Row. If this row is currently unavailable, nil is returned.
Parameters
  • None
Returns
  • The table of Rows, or nil.
Notes None
Examples None
Source src/extensions/cp/ui/OldRow.lua line 61

# matches

Signature cp.ui.OldRow.matches(element) -> boolean
Type Method
Description Checks if the element is a Row.
Parameters
  • element - the axuielement to check.
Returns
  • true if it matches, otherwise false.
Notes None
Examples None
Source src/extensions/cp/ui/OldRow.lua line 10