Wikia

WoWWiki

Changes: Widget API/Region

Edit

Back to page

m
m (catfix)
 
Line 21: Line 21:
 
: [[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 23:30, July 14, 2008

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

Around Wikia's network

Random Wiki