User:Dafrito

Regions are abstract UIObjects that manage the dimensions and position of a visible area. They can be animated through animation groups. Frames and textures are the commonly used implementations of this type.

Positioning
Regions are arranged through anchors.

Region has all of the methods from UIObject, plus the following:

Region:ClearAllPoints - Clear all attachment points for this object. Region:GetBottom - Get the y location of the bottom edge of this frame Region:GetCenter - Get the coordinates of the center of this frame Region:GetLeft - Get the x location of the left edge of this frame Region:GetRect - Get frame's left, bottom, width, height. Region:GetRight - Get the x location of the right edge of this frame Region:GetTop - Get the y location of the top edge of this frame Region:GetWidth - Get the width of this object.

Region:GetHeight - Get the height of this object. Region:SetHeight(height) - Set the height of the object. Region:GetNumPoints - Get the number of anchor points for this frame Region:GetPoint(pointNum) - Get details for an anchor point for this frame (point, relativeTo, relativePoint, xofs, yofs) - New in 1.10. Region:IsDragging - True if this Region or its Parent is being dragged. - New in 3.1.0 Region:IsProtected - Determine if this object can be manipulated in certain ways by tainted code in combat or not Region:Hide - Set this object to hidden (it and all of its children will disappear). Region:Show - Set this object to shown (it will appear if its parent is visible). Region:IsShown - Determine if this object is shown (would be visible if its parent was visible). Region:IsVisible - Get whether the object is visible on screen (logically (IsShown and GetParent:IsVisible));

Region:SetAllPoints(frame or "frameName") - Set all anchors to match edges of specified frame - Moved in 1.10. Region:SetParent(parent or "parentName") - Set the parent for this frame - Moved in 1.10. Region:SetPoint("point","relativeFrame" or relativeObject,"relativePoint"[, xOfs, yOfs]) - Set an attachment point of this object - Updated in 1.10. Since 2.2 cooordinates are now relative to the closest anchor point Region:SetWidth(width) - Set the width of the object.

Region:StopAnimating - Stops any active animations on the Region and its children. - New in 3.1.0 Region:CreateAnimationGroup(["name"[,"inheritsFrom"]]) - Create and return a new AnimationGroup as a child of this Region. - New in 3.1.0 Region:GetAnimationGroups - Returns all AnimationGroups that are children of this Region. - New in 3.1.0