aboutsummaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorlecoanet2003-10-02 11:24:41 +0000
committerlecoanet2003-10-02 11:24:41 +0000
commit403cb9c8ccbd08c4e5b0ffa24aa5849b02404c82 (patch)
tree264d1eb289484b37996defcbf7b4831b7665f0c0 /win
parent8b6252353d5cea13f28da5ffd99958d5852899e4 (diff)
downloadtkzinc-403cb9c8ccbd08c4e5b0ffa24aa5849b02404c82.zip
tkzinc-403cb9c8ccbd08c4e5b0ffa24aa5849b02404c82.tar.gz
tkzinc-403cb9c8ccbd08c4e5b0ffa24aa5849b02404c82.tar.bz2
tkzinc-403cb9c8ccbd08c4e5b0ffa24aa5849b02404c82.tar.xz
Added ZnPointInRegion to support de new image picking under Win.
Diffstat (limited to 'win')
-rw-r--r--win/WinPort.c23
1 files changed, 23 insertions, 0 deletions
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.