|
|
| (3 intermediate revisions by 3 users not shown) |
| Line 1: |
Line 1: |
| <center>'''GetWidth''' ''-Documentation by [[AeroBrain]]-''</center>
| | #REDIRECT [[API Region GetHeight]] {{widgetmethod}} |
| | |
| Gets the width of a frame-based object.
| |
| | |
| obj:GetWidth();
| |
| | |
| ----
| |
| ;''Arguments''
| |
| | |
| :;nil
| |
| | |
| ----
| |
| ;''Returns''
| |
| | |
| : Width of the frame-based object.
| |
| | |
| ----
| |
| ;''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.
| |
| | |
| ----
| |
| {{Template:WoW API}} | |