Skip to content
Snippets Groups Projects
Commit e12c2da8 authored by edgrif's avatar edgrif
Browse files

add code to fetch the mark.

parent 9b48e0ba
No related branches found
No related tags found
No related merge requests found
......@@ -26,9 +26,9 @@
* window displaying genome data.
*
* HISTORY:
* Last edited: Sep 9 10:19 2009 (edgrif)
* Last edited: Sep 9 15:11 2009 (edgrif)
* Created: Thu Jul 24 15:21:56 2003 (edgrif)
* CVS info: $Id: zmapWindow.h,v 1.104 2009-09-09 09:40:48 edgrif Exp $
* CVS info: $Id: zmapWindow.h,v 1.105 2009-09-09 16:40:08 edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_WINDOW_H
......@@ -259,6 +259,7 @@ void zMapWindowZoomToWorldPosition(ZMapWindow window, gboolean border,
double rootx1, double rooty1,
double rootx2, double rooty2);
gboolean zMapWindowGetMark(ZMapWindow window, int *start, int *end) ;
gboolean zMapWindowGetDNAStatus(ZMapWindow window);
void zMapWindowStats(ZMapWindow window) ;
......
......@@ -27,9 +27,9 @@
*
* Exported functions: See zmapWindow_P.h
* HISTORY:
* Last edited: Jun 12 09:31 2009 (rds)
* Last edited: Sep 9 15:19 2009 (edgrif)
* Created: Tue Jan 16 09:51:19 2007 (rds)
* CVS info: $Id: zmapWindowMark.c,v 1.17 2009-06-19 11:16:37 rds Exp $
* CVS info: $Id: zmapWindowMark.c,v 1.18 2009-09-09 16:40:08 edgrif Exp $
*-------------------------------------------------------------------
*/
......@@ -97,6 +97,32 @@ static void setBoundingBoxColour(ZMapWindowMark mark, FooCanvasItem *item, gbool
ZMAP_MAGIC_NEW(mark_magic_G, ZMapWindowMarkStruct) ;
/* The mark was internal to window but other code needs to know about it now.... */
gboolean zMapWindowGetMark(ZMapWindow window, int *start, int *end)
{
gboolean result = FALSE ;
if (window->mark && window->mark->mark_set)
{
double wx1, wx2, wy1, wy2 ;
zmapWindowMarkGetWorldRange(window->mark, &wx1, &wy1, &wx2, &wy2) ;
*start = (int)(wy1) ;
*end = (int)(wy2) ;
result = TRUE ;
}
return result ;
}
ZMapWindowMark zmapWindowMarkCreate(ZMapWindow window)
{
ZMapWindowMark mark ;
......
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