From 403cb9c8ccbd08c4e5b0ffa24aa5849b02404c82 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Thu, 2 Oct 2003 11:24:41 +0000 Subject: Added ZnPointInRegion to support de new image picking under Win. --- win/WinPort.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'win') diff --git a/win/WinPort.c b/win/WinPort.c index 9187c57..569b0ad 100644 --- a/win/WinPort.c +++ b/win/WinPort.c @@ -39,6 +39,29 @@ static const char compile_id[]="$Compile$"; /* *---------------------------------------------------------------------- * + * ZnPointInRegion -- + * + * Test whether the specified point is inside a region. + * + * Results: + * Returns the boolean result of the test. + * + * Side effects: + * None. + * + *---------------------------------------------------------------------- + */ +int +ZnPointInRegion(TkRegion reg, + int x, + int y) +{ + return PtInRegion((HRGN) reg, x, y); +} + +/* + *---------------------------------------------------------------------- + * * ZnUnionRegion -- * * Compute the union of two regions. -- cgit v1.1