KWIN_CONVERT_FROM_CANVAS_COORD(3)

FUNCTION
kwin_convert_from_canvas_coord - Convert pixel co-ordinates to low-level co-ordinates.

SYNOPSIS
#include <karma_kwin.h>

flag kwin_convert_from_canvas_coord

(KPixCanvas canvas, int xin, int yin, int *xout, int *yout)

DESCRIPTION
This routine will convert co-ordinates in a pixel canvas to co-ordinates in a lower level object (parent, ie. X window).

canvas
    The canvas.

xin The horizontal canvas co-ordinate.

yin The vertical canvas co-ordinate.

xout
    The lower level horizontal co-ordinate will be written here.

yout
    The lower level vertical co-ordinate will be written here.

RETURN VALUE
TRUE if the co-ordinate lies within the canvas boundaries, else FALSE (although a conversion is still performed).

Multi-threading Level
Unsafe.

AUTHOR
Richard Gooch (rgooch@atnf.csiro.au)

AVAILABLITY
The Karma Distribution is available for anonymous ftp from: ftp://ftp.atnf.csiro.au/pub/software/karma/ ftp://wuarchive.wustl.edu/graphics/graphics/packages/karma/ ftp://ftp.pwr.wroc.pl/pub/karma/ The Karma Home Page is: http://www.atnf.csiro.au/karma/