Skip to content

API: LibQTip 2.0.CellProvider

James D. Callahan III edited this page May 3, 2023 · 1 revision

CellProvider

AcquireCell

(method) LibQTip-2.0.CellProvider:AcquireCell()
  -> cell: LibQTip-2.0.Cell

Acquire a new cell to be displayed in the tooltip. LibQTip manages parent, framelevel, anchors, visibility and size of the cell.

@return cell — The acquired cell.

GetCellPrototype

(method) LibQTip-2.0.CellProvider:GetCellPrototype()
  -> cellPrototype: LibQTip-2.0.Cell
  2. cellMetatable: LibQTip-2.0.Cell

Return the prototype and metatable used to create new cells.

@return cellPrototype — The prototype on which cells are based.

@return cellMetatable — The metatable used to create a new cell.

IterateCells

(method) LibQTip-2.0.CellProvider:IterateCells()
  -> fun(tooltip: table<LibQTip-2.0.Cell, true|nil>, index?: LibQTip-2.0.Cell):LibQTip-2.0.Cell, true|nil
  2. table<LibQTip-2.0.Cell, true|nil>

Return an iterator on currently acquired cells.

ReleaseCell

(method) LibQTip-2.0.CellProvider:ReleaseCell(cell: LibQTip-2.0.Cell)

Release a cell that LibQTip is no longer using. The cell has already been hidden, unanchored and orphaned by LibQTip.

@param cell — The cell to release.