WoW:Widget API/Region: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page Widget API/Region to Widget API/Region without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 16: Line 16:
: [[API Region SetAllPoints|Region:SetAllPoints]](frame or "frameName") - Set all anchors to match edges of specified frame - Moved in 1.10.
: [[API Region SetAllPoints|Region:SetAllPoints]](frame or "frameName") - Set all anchors to match edges of specified frame - Moved in 1.10.
: [[API Region SetHeight|Region:SetHeight]](height) - Set the height of the object.
: [[API Region SetHeight|Region:SetHeight]](height) - Set the height of the object.
: [[API Region SetParent|Region:SetParent]](parent or "parentName") - Set the parent for this frame - Moevd in 1.10.
: [[API Region SetParent|Region:SetParent]](parent or "parentName") - Set the parent for this frame - Moved in 1.10.
: [[API Region SetPoint|Region:SetPoint]]("point","relativeFrame" or relativeObject,"relativePoint"[,xOfs,yOfs]) - Set an attachment point of this object - Updated in 1.10.
: [[API Region SetPoint|Region:SetPoint]]("point","relativeFrame" or relativeObject,"relativePoint"[,xOfs,yOfs]) - Set an attachment point of this object - Updated in 1.10.
: [[API Region SetWidth|Region:SetWidth]](width) - Set the width of the object.
: [[API Region SetWidth|Region:SetWidth]](width) - Set the width of the object.
: [[API Region Show|Region:Show]]() - Set this object to shown (it will appear if its parent is visible).
: [[API Region Show|Region:Show]]() - Set this object to shown (it will appear if its parent is visible).<noinclude>
 
[[Category:Widget methods| ]]</noinclude>
<noinclude>[[Category:Widget Methods| ]]</noinclude>

Latest revision as of 04:49, 15 August 2023

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).