Show / Hide Table of Contents

Method wnd.ContainsWindowXY(+ 1 overload)


Overload

Returns true if this control (its rectangle) contains the specified point in parent window.

public bool ContainsWindowXY(wnd parent, Coord x, Coord y)
Parameters
parent  (wnd)

Direct or indirect parent window. The coordinates are relative to its client area. Actually this and parent can be any windows or controls, the function does not check whether this is a child of parent.

x  (Coord)

X coordinate. Not used if default. Examples: 10, ^10 (reverse), .5f (fraction).

y  (Coord)

Y coordinate. Not used if default.

Returns
bool

Overload(top)

This overload calls ContainsWindowXY(wnd, Coord, Coord) with wnd.Window, x and y.

public bool ContainsWindowXY(Coord x, Coord y)
Parameters
x  (Coord)

X coordinate. Not used if default. Examples: 10, ^10 (reverse), .5f (fraction).

y  (Coord)

Y coordinate. Not used if default.

Returns
bool