diff options
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, |