api/widgets/Region

Region is an abstract object type which cannot actually be created.
It gathers together a number of common methods which have identical behaviours across all widget types. This object contains a collection of methods that are related to the size, location and visibility of a widget.


Region:GetHeight()

Returns the height of the region.

Return value

the height of the region.


Region:GetWidth()

Returns the width of the region.

Return value

the width of the region.


Region:SetHeight(height)

Sets the height of the region.
Setting the height to 0 will cause it to be determined by the region's anchors instead. Note: This function can not be called during combat lockdown.

Parameters

height
the new height of the region.


Region:SetWidth(width, height)

Sets the width of the region.
Setting the width to 0 will cause it to be determined by the region's anchors instead. Note: This function can not be called during combat lockdown.

Parameters

width
height
the new width of the region.



Comments

Posts Quoted:
Reply
Clear All Quotes