Garry's Mod Wiki

Panel:GetBounds

Description

Returns the position and size of the panel.

This is equivalent to calling Panel:GetPos and Panel:GetSize together.

Returns

1 number
The x coordinate of the panel, relative to its parent's top left.
2 number
The y coordinate of the panel, relative to its parent's top left.
3 number
The width of the panel.
4 number
The height of the panel.