WoW:API Region GetWidth: Difference between revisions
Jump to navigation
Jump to search
GetWidth -Documentation by Omnigrok-
mNo edit summary |
(Changing Aerobrain to Omnigrok (user switched handles)) |
||
| Line 1: | Line 1: | ||
<center>'''GetWidth''' ''-Documentation by [[ | <center>'''GetWidth''' ''-Documentation by [[User:Omnigrok|Omnigrok]]-''</center> | ||
Gets the width of a frame-based object. | Gets the width of a frame-based object. | ||
Revision as of 18:00, 15 May 2006
Gets the width of a frame-based object.
obj:GetWidth();
- Arguments
- nil
- Returns
- Width of the frame-based object. (This is the desired width, if set with SetWidth, or the actual width if no desired width has been provided)
- Example
myAddonOptionsParent = myAddonOptions:GetParent(); myAddonOptions:SetWidth(myAddonOptionsParent:GetWidth() / 2);
- Result
- The frame named 'myAddonOptions' would be set to half the width of its parent frame.
- Description
- Returns the width of a frame-based object.