aboutsummaryrefslogtreecommitdiff
path: root/generic/Group.c
diff options
context:
space:
mode:
authorlecoanet2003-01-22 14:50:39 +0000
committerlecoanet2003-01-22 14:50:39 +0000
commit78740373985ac1d9ebbad3807a9ccc7b4db13def (patch)
treebcbd99cbe9e60b84d44fecd04ccc9beefbe182b0 /generic/Group.c
parent53a7881c352125f7b66c81dbd6c5c2bb663c06e6 (diff)
downloadtkzinc-78740373985ac1d9ebbad3807a9ccc7b4db13def.zip
tkzinc-78740373985ac1d9ebbad3807a9ccc7b4db13def.tar.gz
tkzinc-78740373985ac1d9ebbad3807a9ccc7b4db13def.tar.bz2
tkzinc-78740373985ac1d9ebbad3807a9ccc7b4db13def.tar.xz
*** empty log message ***
Diffstat (limited to 'generic/Group.c')
-rw-r--r--generic/Group.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/generic/Group.c b/generic/Group.c
index 4305353..d020186 100644
--- a/generic/Group.c
+++ b/generic/Group.c
@@ -1590,6 +1590,26 @@ ZnGroupInsertItem(Item group,
ITEM.Invalidate(group, ZN_COORDS_FLAG);
}
+/*
+ **********************************************************************************
+ *
+ * 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);
+}
+
/*
**********************************************************************************
@@ -1610,7 +1630,7 @@ static ItemClassStruct GROUP_ITEM_CLASS = {
Configure,
Query,
NULL, /* GetFieldSet */
- NULL, /* GetAnchor */
+ GetAnchor,
NULL, /* GetClipVertices */
NULL, /* GetContours */
Coords,