Garry's Mod Wiki

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

1 number
X coordinate, relative to this panels parents top left corner.
2 number
Y coordinate, relative to this panels parents top left corner.

Page Links


Special Pages


Wikis

?

Render Time: 30ms

Session 0
DB GetPage 4
Generate Html 3
SaveChanges 14
Render Body 0
Render Sidebar 6