Skip to content

API: LibQTip 2.0.Column

James D. Callahan III edited this page May 8, 2023 · 3 revisions

Column

GetCell

(method) LibQTip-2.0.Column:GetCell(rowIndex: integer, cellProvider?: LibQTip-2.0.CellProvider)
  -> LibQTip-2.0.Cell

@param rowIndex — Row index of the Cell.

@param cellProvider — CellProvider to use instead of the default one. Defaults to LibQTip.DefaultCellProvider.

SetColor

(method) LibQTip-2.0.Column:SetColor(r?: number, g?: number, b?: number, a?: number)
  -> column: LibQTip-2.0.Column

Sets the background color for the Column.

@param r — Red color value of the Column. Defaults to the Tooltip's current red value.

@param g — Green color value of the Column. Defaults to the Tooltip's current green value.

@param b — Blue color value of the Column. Defaults to the Tooltip's current blue value.

@param a — Alpha level of the Column. Defaults to 1.

SetScript

(method) LibQTip-2.0.Column:SetScript(scriptType: LibQTip-2.0.ScriptType, handler: fun(frame: Frame, ...any), arg?: unknown)
  -> column: LibQTip-2.0.Column

@param scriptType — The ScriptType to assign to the Column.

@param handler — The function called when the script is run. Parameters conform to the given ScriptType.

@param arg — Data to be passed to the script function.

scriptType:
    | "OnEnter"
    | "OnLeave"
    | "OnMouseDown"
    | "OnMouseUp"
    | "OnReceiveDrag"

SetTextColor

(method) LibQTip-2.0.Column:SetTextColor(r?: number, g?: number, b?: number, a?: number)
  -> column: LibQTip-2.0.Column

Sets the text color for every Cell in the Column.

@param r — Red color value of the Cell's text. Defaults to the red value of the Cell's FontString.

@param g — Green color value of the Cell's text. Defaults to the green value of the Cell's FontString.

@param b — Blue color value of the Cell's text. Defaults to the blue value of the Cell's FontString.

@param a — Alpha level of the Cell's text. Defaults to 1.

Clone this wiki locally