diff options
Diffstat (limited to 'generic/Arc.c')
-rw-r--r-- | generic/Arc.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/generic/Arc.c b/generic/Arc.c index d64bb11..e50cd22 100644 --- a/generic/Arc.c +++ b/generic/Arc.c @@ -1726,6 +1726,25 @@ Coords(Item item, return ZN_OK; } +/* + ********************************************************************************** + * + * 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); +} /* ********************************************************************************** @@ -1760,7 +1779,7 @@ static ItemClassStruct ARC_ITEM_CLASS = { Configure, Query, NULL, /* GetFieldSet */ - NULL, /* GetAnchor */ + GetAnchor, GetClipVertices, GetContours, Coords, |