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/Curve.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/Curve.c')
-rw-r--r-- | generic/Curve.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/generic/Curve.c b/generic/Curve.c index bad3de5..37567ac 100644 --- a/generic/Curve.c +++ b/generic/Curve.c @@ -2249,6 +2249,26 @@ PickVertex(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); +} + /* ********************************************************************************** @@ -2269,7 +2289,7 @@ static ItemClassStruct CURVE_ITEM_CLASS = { Configure, Query, NULL, /* GetFieldSet */ - NULL, /* GetAnchor */ + GetAnchor, GetClipVertices, GetContours, Coords, |