Files
wow_Meta/ui/UIObject.lua
2025-05-04 14:35:26 +02:00

22 lines
905 B
Lua

---@meta
---UIObject is an abstract UI object type that is used to group together methods that are common to all user interface types. All of the various user interface elements in World of Warcraft are derived from UIObject.
---@class UIObject
UIObject = {
---Returns the widget object's name
---@param self UIObject
---@return string Name of the object
GetName = function(self) end,
---Returns the widget object's widget type
---@param self UIObject
---@return string Name of the object's type (e.g. Frame, Button, FontString, etc.)
GetObjectType = function(self) end,
--- Returns whether the object belongs to a given widget type
---@param self UIObject
---@param type string Name of the object's type (e.g. Frame, Button, FontString, etc.)
---@return number|nil 1 if the object belongs to the given type (or a subtype thereof); otherwise nil
IsObjectType = function(self, type) end,
}