From 4487a2708cab565ff90038f7039f2931384fb1ac Mon Sep 17 00:00:00 2001 From: rnc <rnc> Date: Fri, 2 Jul 2004 13:49:19 +0000 Subject: [PATCH] Added public functions for accessing private ZMapView members --- src/zmapView/zmapView.c | 45 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/src/zmapView/zmapView.c b/src/zmapView/zmapView.c index 56beee342..8e654a7e3 100755 --- a/src/zmapView/zmapView.c +++ b/src/zmapView/zmapView.c @@ -25,9 +25,9 @@ * Description: * Exported functions: See ZMap/zmapView.h * HISTORY: - * Last edited: May 20 15:24 2004 (edgrif) + * Last edited: Jul 1 15:19 2004 (rnc) * Created: Thu May 13 15:28:26 2004 (edgrif) - * CVS info: $Id: zmapView.c,v 1.3 2004-05-20 14:29:31 edgrif Exp $ + * CVS info: $Id: zmapView.c,v 1.4 2004-07-02 13:49:19 rnc Exp $ *------------------------------------------------------------------- */ @@ -395,6 +395,47 @@ static void zmapWindowCB(void *cb_data, int reason) +int zMapViewGetRegionLength(ZMapView view) +{ + return view->zMapRegion->length; +} + +Coord zMapViewGetRegionArea(ZMapView view, int num) +{ + if (num == 1) + return view->zMapRegion->area1; + else + return view->zMapRegion->area2; +} + +void zMapViewSetRegionArea(ZMapView view, Coord area, int num) +{ + if (num == 1) + view->zMapRegion->area1 = area; + else + view->zMapRegion->area2 = area; + +return; +} + +gboolean zMapViewGetRegionReverse(ZMapView view) +{ + return view->zMapRegion->rootIsReverse; +} + + +int zMapViewGetRegionSize (ZMapView view) +{ + return view->zMapRegion->area2 - view->zMapRegion->area1; +} + + +ZMapRegion *zMapViewGetZMapRegion(ZMapView view) +{ + return view->zMapRegion; +} + + /* * ------------------- Internal functions ------------------- */ -- GitLab