4c18b3b304307799d2875220deff659b2ee0f292 jcasper Sun Oct 1 21:36:37 2023 -0700 Missed a few pathways for creating tracks; the generic label and map functions need to be available for all the tracks they were already a part of. refs #32303, #30237 diff --git src/hg/hgTracks/hgTracks.h src/hg/hgTracks/hgTracks.h index 17581af..d139199 100644 --- src/hg/hgTracks/hgTracks.h +++ src/hg/hgTracks/hgTracks.h @@ -690,30 +690,44 @@ struct track *curGroup); /* Print out image map rectangle that would invoke this program again. * program with the current track expanded. */ void mapBoxJumpTo(struct hvGfx *hvg, int x, int y, int width, int height, struct track *toggleGroup, char *newChrom, long newStart, long newEnd, char *message); /* Print out image map rectangle that would invoke this program again * at a different window. */ void mapBoxHgcOrHgGene(struct hvGfx *hvg, int start, int end, int x, int y, int width, int height, char *track, char *item, char *statusLine, char *directUrl, boolean withHguid, char *extra); /* Print out image map rectangle that would invoke the hgc (human genome click) * program. */ +void genericDrawItemLabel(struct track *tg, struct spaceNode *sn, + struct hvGfx *hvg, int xOff, int y, int width, + MgFont *font, Color color, Color labelColor, enum trackVisibility vis, + double scale, boolean withLeftLabels); +/* Generic function for writing out an item label */ + + +void genericItemMapAndArrows(struct track *tg, struct spaceNode *sn, + struct hvGfx *hvg, int xOff, int y, int width, + MgFont *font, Color color, Color labelColor, enum trackVisibility vis, + double scale, boolean withLeftLabels); +/* Generic function for putting down a mapbox with a label and drawing exon arrows */ + + void genericMapItem(struct track *tg, struct hvGfx *hvg, void *item, char *itemName, char *mapItemName, int start, int end, int x, int y, int width, int height); /* This is meant to be used by genericDrawItems to set to tg->mapItem in */ /* case tg->mapItem isn't set to anything already. */ void mapStatusMessage(char *format, ...) /* Write out stuff that will cause a status message to * appear when the mouse is over this box. */ #if defined(__GNUC__) __attribute__((format(printf, 1, 2))) #endif ; double scaleForWindow(double width, int seqStart, int seqEnd);