Panel/GetChildrenInRect

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

Contents

Description

Returns a table of all visible, selectable children of the panel object that lie at least partially within the specified rectangle.

Arguments

number x

The horizontal (x) position of the top-left corner of the rectangle, relative to the panel object.

Arguments

number y

The vertical (y) position of the top-left corner of the rectangle, relative to the panel object.

Arguments

number w

The width of the rectangle.

Arguments

number h

The height of the rectangle.

Returns

table

A table of panel objects that lie at least partially within the specified rectangle.
Personal tools
Navigation