#cp.ui.axutils.compare

Contains functions for comparing axuielements.


#API Overview

Functions - API calls offered directly by the extension


#API Documentation

#Functions

Signaturecp.ui.axutils.compare.bottomToTop(a, b) -> boolean
TypeFunction
DescriptionReturns true if element a is below element b. May be used with table.sort.
Parameters
  • a - The first element
  • b - The second element
Returns
  • true if a is below b.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/axutils.lua line 467

Signaturecp.ui.axutils.compare.leftToRight(a, b) -> boolean
TypeFunction
DescriptionReturns true if element a is left of element b. May be used with table.sort.
Parameters
  • a - The first element
  • b - The second element
Returns
  • true if a is left of b.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/axutils.lua line 419

Signaturecp.ui.axutils.compare.rightToLeft(a, b) -> boolean
TypeFunction
DescriptionReturns true if element a is right of element b. May be used with table.sort.
Parameters
  • a - The first element
  • b - The second element
Returns
  • true if a is right of b.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/axutils.lua line 435

Signaturecp.ui.axutils.compare.topToBottom(a, b) -> boolean
TypeFunction
DescriptionReturns true if element a is above element b. May be used with table.sort.
Parameters
  • a - The first element
  • b - The second element
Returns
  • true if a is above b.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/axutils.lua line 451