Skip to content
Snippets Groups Projects
Commit 4487a270 authored by rnc's avatar rnc
Browse files

Added public functions for accessing private ZMapView members

parent 536ddc7b
No related branches found
No related tags found
No related merge requests found
......@@ -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 -------------------
*/
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment