Panel.GetBounds

From GMod Wiki

Jump to: navigation, search
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: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.GetBounds]Panel.GetBounds [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

Descriptiongets myPanels position(x,y) and size(w,h)
Used onNewerClient.png
Code
local x, y, w, h = myPanel:GetBounds()
Outputx is panels position, y is panels position, w is panels width, h is panels height
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox