Panel.GetBounds
From GMod Wiki
| Function | |
| Syntax | Panel:GetBounds( ) |
| Description: | |
| Returns the position and size of a panel. | |
| Returns: | Number x, Number y, Number width, Number height |
| In Object: | Panel |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.GetBounds]Panel.GetBounds [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | gets myPanels position(x,y) and size(w,h) |
|---|---|
| Used on | |
| Code | local x, y, w, h = myPanel:GetBounds() |
| Output | x is panels position, y is panels position, w is panels width, h is panels height |