Lines Matching refs:hotspots
33 // Returns the number of hotspots, and the array of hotspots.
38 int ParseSHG( const wxChar* fileName, HotSpot **hotspots)
60 *hotspots = new HotSpot[nHotspots];
77 (*hotspots)[i].type = (HotspotType)(sib.hotspotType & 0xFB);
78 (*hotspots)[i].left = sib.left;
79 (*hotspots)[i].top = sib.top;
80 (*hotspots)[i].right = sib.left + sib.width;
81 (*hotspots)[i].bottom = sib.top + sib.height;
82 (*hotspots)[i].IsVisible = ((sib.hotspotType & 4) == 0);
83 (*hotspots)[i].szHlpTopic_Macro[0] = '\0';
98 (*hotspots)[i].szHlpTopic_Macro[j] = (wxChar)c;
101 (*hotspots)[i].szHlpTopic_Macro[j] = 0;
113 HotSpot *hotspots = NULL;
114 int n = ParseSHG(filename, &hotspots);
119 wxSnprintf(buf, sizeof(buf), _T("Converting .SHG file to HTML map file: there are %d hotspots in %s."), n, filename);
131 delete[] hotspots;
140 TexRef *texRef = FindReference(hotspots[i].szHlpTopic_Macro);
146 wxSnprintf(buf, sizeof(buf), _T("Warning: could not find hotspot reference %s"), hotspots[i].szHlpTopic_Macro);
149 wxFprintf(fd, _T("rect %s %d %d %d %d\n"), refFilename, (int)hotspots[i].left, (int)hotspots[i].top,
150 (int)hotspots[i].right, (int)hotspots[i].bottom);
156 delete[] hotspots;