eded571df89e184c92e7269e92011dc646c812b7 tdreszer Wed Nov 16 10:25:46 2011 -0800 At Angie's request, adding ability to have map items with mouse-over title but no actual link diff --git src/hg/hgTracks/imageV2.h src/hg/hgTracks/imageV2.h index 362ba95..66ae117 100644 --- src/hg/hgTracks/imageV2.h +++ src/hg/hgTracks/imageV2.h @@ -116,30 +116,33 @@ int topLeftX; // in pixels relative to image int topLeftY; // in pixels relative to image int bottomRightX; // in pixels relative to image int bottomRightY; // in pixels relative to image char *id; // id; used by js right-click code to figure out what to do with a map item (usually mapName) }; struct mapSet // IMAGEv2: full map for image OR partial map for slice { char *name; // to point an image to a map in HTML struct image *parentImg; // points to the image this map belongs to char *linkRoot; // the common or static portion of the link for the entire image struct mapItem *items; // list of items }; +// To create map items which have mouse-over titles but no link, fill link with: +#define TITLE_BUT_NO_LINK "noLink" + struct mapSet *mapSetStart(char *name,struct image *img,char *linkRoot); /* Starts a map (aka mapSet) which is the seet of links and image locations used in HTML. Complete a map by adding items with mapItemAdd() */ struct mapSet *mapSetUpdate(struct mapSet *map,char *name,struct image *img,char *linkRoot); /* Updates an existing map (aka mapSet) */ struct mapItem *mapSetItemFind(struct mapSet *map,int topLeftX,int topLeftY,int bottomRightX,int bottomRightY); /* Find a single mapItem based upon coordinates (within a pixel) */ struct mapItem *mapSetItemUpdate(struct mapSet *map,struct mapItem *item,char *link,char *title,int topLeftX,int topLeftY,int bottomRightX,int bottomRightY, char *id); /* Update an already existing mapItem */ struct mapItem *mapSetItemAdd(struct mapSet *map,char *link,char *title,int topLeftX,int topLeftY,int bottomRightX,int bottomRightY, char *id); /* Add a single mapItem to a growing mapSet */