diff options
author | lecoanet | 2004-04-30 12:08:17 +0000 |
---|---|---|
committer | lecoanet | 2004-04-30 12:08:17 +0000 |
commit | bccc75526f55d54758d252e0dbae7cab3e07bd8e (patch) | |
tree | 65b20821ffafc30c99bbba46f46a8c0644101c72 /generic/Rectangle.c | |
parent | 7735e1d377913991bf2d5e212f6ee20555f616dc (diff) | |
download | tkzinc-bccc75526f55d54758d252e0dbae7cab3e07bd8e.zip tkzinc-bccc75526f55d54758d252e0dbae7cab3e07bd8e.tar.gz tkzinc-bccc75526f55d54758d252e0dbae7cab3e07bd8e.tar.bz2 tkzinc-bccc75526f55d54758d252e0dbae7cab3e07bd8e.tar.xz |
Modification of ZnQueryAttribute signature
Adaptation for the new global variables
Reworking of the class structure
Diffstat (limited to 'generic/Rectangle.c')
-rw-r--r-- | generic/Rectangle.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/Rectangle.c b/generic/Rectangle.c index 500473c..a7ffb81 100644 --- a/generic/Rectangle.c +++ b/generic/Rectangle.c @@ -290,7 +290,7 @@ Query(ZnItem item, int argc __unused, Tcl_Obj *CONST argv[]) { - if (ZnQueryAttribute(item->wi, item, rect_attrs, argv[0]) == TCL_ERROR) { + if (ZnQueryAttribute(item->wi->interp, item, rect_attrs, argv[0]) == TCL_ERROR) { return TCL_ERROR; } @@ -788,8 +788,8 @@ GetClipVertices(ZnItem item, ZnPoint *points; if (ISSET(rect->flags, ALIGNED_BIT)) { - ZnListAssertSize(item->wi->work_pts, 2); - points = ZnListArray(item->wi->work_pts); + ZnListAssertSize(ZnWorkPoints, 2); + points = ZnListArray(ZnWorkPoints); ZnTriStrip1(tristrip, points, 2, False); tristrip->strips[0].fan = False; @@ -811,8 +811,8 @@ GetClipVertices(ZnItem item, } } else { - ZnListAssertSize(item->wi->work_pts, 4); - points = ZnListArray(item->wi->work_pts); + ZnListAssertSize(ZnWorkPoints, 4); + points = ZnListArray(ZnWorkPoints); points[0] = rect->dev[1]; points[1] = rect->dev[2]; points[2] = rect->dev[0]; @@ -924,11 +924,11 @@ GetAnchor(ZnItem item, ********************************************************************************** */ static ZnItemClassStruct RECTANGLE_ITEM_CLASS = { - sizeof(RectangleItemStruct), - 0, /* num_parts */ - False, /* has_anchors */ "rectangle", + sizeof(RectangleItemStruct), rect_attrs, + 0, /* num_parts */ + 0, /* flags */ -1, Init, Clone, |