Import Tk 8.6.10
This commit is contained in:
@@ -59,11 +59,12 @@ TkCreateRegion(void)
|
||||
*----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
void
|
||||
int
|
||||
TkDestroyRegion(
|
||||
TkRegion r)
|
||||
{
|
||||
DeleteObject((HRGN) r);
|
||||
return Success;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -82,7 +83,7 @@ TkDestroyRegion(
|
||||
*----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
void
|
||||
int
|
||||
TkClipBox(
|
||||
TkRegion r,
|
||||
XRectangle* rect_return)
|
||||
@@ -94,6 +95,7 @@ TkClipBox(
|
||||
rect_return->y = (short) rect.top;
|
||||
rect_return->width = (short) (rect.right - rect.left);
|
||||
rect_return->height = (short) (rect.bottom - rect.top);
|
||||
return Success;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -112,13 +114,14 @@ TkClipBox(
|
||||
*----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
void
|
||||
int
|
||||
TkIntersectRegion(
|
||||
TkRegion sra,
|
||||
TkRegion srb,
|
||||
TkRegion dr_return)
|
||||
{
|
||||
CombineRgn((HRGN) dr_return, (HRGN) sra, (HRGN) srb, RGN_AND);
|
||||
return Success;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -137,7 +140,7 @@ TkIntersectRegion(
|
||||
*----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
void
|
||||
int
|
||||
TkUnionRectWithRegion(
|
||||
XRectangle *rectangle,
|
||||
TkRegion src_region,
|
||||
@@ -149,6 +152,7 @@ TkUnionRectWithRegion(
|
||||
CombineRgn((HRGN) dest_region_return, (HRGN) src_region,
|
||||
(HRGN) rectRgn, RGN_OR);
|
||||
DeleteObject(rectRgn);
|
||||
return Success;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -270,13 +274,14 @@ TkRectInRegion(
|
||||
*----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
void
|
||||
int
|
||||
TkSubtractRegion(
|
||||
TkRegion sra,
|
||||
TkRegion srb,
|
||||
TkRegion dr_return)
|
||||
{
|
||||
CombineRgn((HRGN) dr_return, (HRGN) sra, (HRGN) srb, RGN_DIFF);
|
||||
return Success;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user