Panel/GetPos

From Garry's Mod
Jump to: navigation, search
 Panel:GetPos( )

Description

Returns the position of the panel relative to its Panel:GetParent.

If you require the panel's position and size, consider using Panel:GetBounds instead.
If you need the position in screen space, see Panel:LocalToScreen.

Returns

number

X coordinate, relative to this panels parents top left corner.

Returns

number

Y coordinate, relative to this panels parents top left corner.
Personal tools
Navigation