_getwindowcoord

Description

Translates view coordinates to window coordinates.

#include <graph.h>

struct _wxycoord __far _getwindowcoord( short x, short y );

x, y Viewport coordinate to translate  

Remarks

The _getwindowcoord function translates the view coordinates (x, y) to window coordinates and returns them in the _wxycoord structure, defined in GRAPH.H.

The _wxycoord structure contains the following elements:

Element Description

double wx x coordinate
double wy y coordinate

Return Value

The function returns the coordinates in the _wxycoord structure. There is no error return.

Compatibility

Standards:None

16-Bit:DOS

32-Bit:None

See Also

_getphyscoord, _getviewcoord functions, _moveto functions, _setwindow

Example

See the example for _setwindow.