Region is the basic type for anything that can occupy an area of the screen. As such, Frames, Textures and FontStrings are all various kinds of Region. Region provides most of the functions that support size, position and anchoring, including animation. It is a "real virtual" type; it cannot be instantiated, but objects can return true when asked if they are Regions.
Defined Methods
- Region:IsForbidden() - This function is not yet documented
- isOver = Region:IsMouseOver([topOffset [, leftOffset [, bottomOffset [, rightOffset]]]]) - Returns whether the mouse cursor is over the given region
- isProtected, explicit = Region:IsProtected() - Returns whether the region is protected
- Region:SetAllPoints([region]) or Region:SetAllPoints(["name"]) - Sets all anchor points of the region to match those of another region
- Region:SetHeight(height) - Sets the region's height
- Region:SetParent(frame) or Region:SetParent("name") - Makes another frame the parent of this region
- Region:SetPoint("point" [, relativeTo [, "relativePoint" [, xOffset [, yOffset]]]]) - Sets an anchor point for the region
- Region:SetSize(width, height) - Sets the size of the region to the specified values
- Region:SetWidth(width) - Sets the region's width
- Region:StopAnimating() - Stops any active animations involving the region or its children
Inherited Methods
- name = Region:GetName() - Returns the widget object's name
- type = Region:GetObjectType() - Returns the object's widget type
- parent = Region:GetParent() - Returns the object's parent object
- isType = Region:IsObjectType("type") - Returns whether the object belongs to a given widget type