WoW:Widget API/Region

From AddOn Studio
Jump to navigation Jump to search

Region Methods[edit]

Region:ClearAllPoints() - Clear all attachment points for this object.
Region:GetBottom() - Get the y location of the bottom edge of this frame - Moved in 1.10.
Region:GetCenter() - Get the coordinates of the center of this frame - Moved in 1.10.
Region:GetHeight() - Get the height of this object.
Region:GetLeft() - Get the x location of the left edge of this frame - Moved in 1.10.
Region:GetNumPoints() - Get the number of anchor points for this frame - New in 1.10.
Region:GetParent() - Get the parent of this frame (The object, not just the name) - Moved in 1.10.
Region:GetPoint(point) - Get details for an anchor points for this frame (point,relativeTo,relativePoint,xofs,yofs) - New in 1.10.
Region:GetRight() - Get the x location of the right edge of this frame - Moved in 1.10.
Region:GetTop() - Get the y location of the top edge of this frame - Moved in 1.10.
Region:GetWidth() - Get the width of this object.
Region:Hide() - Set this object to hidden (it and all of its children will disappear).
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:SetHeight(height) - Set the height of the object.
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.
Region:SetWidth(width) - Set the width of the object.
Region:Show() - Set this object to shown (it will appear if its parent is visible).