From db23d996a7c6b481435f56c679c255a9b48b455a Mon Sep 17 00:00:00 2001 From: lecoanet Date: Wed, 16 Aug 2006 14:43:48 +0000 Subject: * Added a compilation selectable attribute -omtechstuff to ease debugging anti-overlapping algorithms. It is intended to report decision making data from the algorithm. It can be compiled by defining OM_TECH. * Fixed a bad reported position in return from ZnQueryLabelPosition. Now the same algorithm is used by the widget for its internal use and for reporting purposes. --- generic/Track.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'generic/Track.h') diff --git a/generic/Track.h b/generic/Track.h index d96a7a6..98bc4c5 100644 --- a/generic/Track.h +++ b/generic/Track.h @@ -38,7 +38,11 @@ void *ZnSendTrackToOm(void *ptr, void *item, int *x, int *y, int *label_width, int *label_height,*/ int *rho, int *theta, int *visibility, int *locked, int *preferred_angle, int *convergence_style); -void ZnSetLabelAngleFromOm(void *ptr, void *item, int rho, int theta); +void ZnSetLabelAngleFromOm(void *ptr, void *item, int rho, int theta +#ifdef OM_TECH + , char *reason /* Technical data explaining algorithm processing */ +#endif + ); void ZnQueryLabelPosition(void *ptr, void *item, int theta, int *x, int *y, int *w, int *h); void ZnSetHistoryVisibility(ZnItem item, int index, ZnBool visibility); -- cgit v1.1