MGL_wmCoordLocalToGlobal

Converts between global and local coordinates.

Declaration

void MGLAPI MGL_wmCoordLocalToGlobal(
window_t *wnd,
int x,
int y,
int *xGlobal,
int *yGlobal)

Prototype In

mgraph.h

Parameters

wnd | the window
x | X coordinate in local space
y | Y coordinate in local space
xGlobal | variable to store X coordinate in global space
yGlobal | variable to store X coordinate in global space

Description

This function converts point expressed in coordinates relative to given window's upper left corner to global coordinates (i.e. relative to device context's upper left corner).

wnd may be a window arbitrary deep in windows hierarchy, MGL_wmCoordLocalToGlobal descends the hierarchy recursively.

See Also

MGL_wmCoordLocalToGlobal, MGL_wmSetWindowPosition

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com