Files
wow_Meta/ui/Line.lua
2025-05-04 22:07:23 +02:00

58 lines
2.2 KiB
Lua

---@meta
---@class Line : TextureBase
Line = {
--- Clears all anchor points from the line.
--- @example
--- myLine:ClearAllPoints()
ClearAllPoints = function(self) end,
--- Returns the end point of the line.
--- @return string relativePoint The relative point.
--- @return Frame relativeTo The frame to which the end point is relative.
--- @return number offsetX The x offset of the end point.
--- @return number offsetY The y offset of the end point.
--- @example
--- local relativePoint, relativeTo, offsetX, offsetY = myLine:GetEndPoint()
GetEndPoint = function(self) end,
--- Returns the start point of the line.
--- @return string relativePoint The relative point.
--- @return Frame relativeTo The frame to which the start point is relative.
--- @return number offsetX The x offset of the start point.
--- @return number offsetY The y offset of the start point.
--- @example
--- local relativePoint, relativeTo, offsetX, offsetY = myLine:GetStartPoint()
GetStartPoint = function(self) end,
--- Returns the thickness of the line.
--- @return number thickness The thickness of the line.
--- @example
--- local thickness = myLine:GetThickness()
GetThickness = function(self) end,
--- Sets the end point of the line.
--- @param relativePoint string The relative point.
--- @param relativeTo Frame The frame to which the end point is relative.
--- @param offsetX number? Optional. The x offset of the end point.
--- @param offsetY number? Optional. The y offset of the end point.
--- @example
--- myLine:SetEndPoint("TOP", otherFrame, 0, 0)
SetEndPoint = function(self, relativePoint, relativeTo, offsetX, offsetY) end,
--- Sets the start point of the line.
--- @param relativePoint string The relative point.
--- @param relativeTo Frame The frame to which the start point is relative.
--- @param offsetX number? Optional. The x offset of the start point.
--- @param offsetY number? Optional. The y offset of the start point.
--- @example
--- myLine:SetStartPoint("BOTTOM", otherFrame, 0, 0)
SetStartPoint = function(self, relativePoint, relativeTo, offsetX, offsetY) end,
--- Sets the thickness of the line.
--- @param thickness number The thickness to set.
--- @example
--- myLine:SetThickness(2)
SetThickness = function(self, thickness) end,
}