Show / Hide Table of Contents

Method Coord.NormalizeInWindow


Overload

Returns normal coordinates relative to the client area of a window. Converts fractional/reverse coordinates etc.

public static POINT NormalizeInWindow(Coord x, Coord y, wnd w, bool nonClient = false, bool centerIfEmpty = false)
Parameters
x  (Coord)

X coordinate relative to the client area of w.

y  (Coord)

Y coordinate relative to the client area of w.

w  (wnd)

The window.

nonClient  (bool)

x y are relative to the entire w rectangle, not to its client area.

centerIfEmpty  (bool)

If x or y is default, use Coord.Center.

Returns
POINT