diff options
author | lecoanet | 2003-01-22 14:50:39 +0000 |
---|---|---|
committer | lecoanet | 2003-01-22 14:50:39 +0000 |
commit | 78740373985ac1d9ebbad3807a9ccc7b4db13def (patch) | |
tree | bcbd99cbe9e60b84d44fecd04ccc9beefbe182b0 /generic/Rectangle.c | |
parent | 53a7881c352125f7b66c81dbd6c5c2bb663c06e6 (diff) | |
download | tkzinc-78740373985ac1d9ebbad3807a9ccc7b4db13def.zip tkzinc-78740373985ac1d9ebbad3807a9ccc7b4db13def.tar.gz tkzinc-78740373985ac1d9ebbad3807a9ccc7b4db13def.tar.bz2 tkzinc-78740373985ac1d9ebbad3807a9ccc7b4db13def.tar.xz |
*** empty log message ***
Diffstat (limited to 'generic/Rectangle.c')
-rw-r--r-- | generic/Rectangle.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/generic/Rectangle.c b/generic/Rectangle.c index 7e18dbe..2552884 100644 --- a/generic/Rectangle.c +++ b/generic/Rectangle.c @@ -900,6 +900,27 @@ Coords(Item item, /* ********************************************************************************** * + * GetAnchor -- + * + ********************************************************************************** + */ +static void +GetAnchor(Item item, + ZnAnchor anchor, + ZnPoint *p) +{ + ZnBBox *bbox = &item->item_bounding_box; + + Origin2Anchor(&bbox->orig, + bbox->corner.x - bbox->orig.x, + bbox->corner.y - bbox->orig.y, + anchor, p); +} + + +/* + ********************************************************************************** + * * Exported functions struct -- * ********************************************************************************** @@ -916,7 +937,7 @@ static ItemClassStruct RECTANGLE_ITEM_CLASS = { Configure, Query, NULL, /* GetFieldSet */ - NULL, /* GetAnchor */ + GetAnchor, GetClipVertices, NULL, /* GetContours */ Coords, |