⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readshg.h

📁 wxGTK 是 wxWidgets 的 linux GTK+ (>2.2.3)版本。wxWidgets 是一个跨平台的 GUI 框架
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////// Name:        readshg.h// Purpose:     Petr Smilauer's .SHG (Segmented Hypergraphics file) reading//              code.//              Note: .SHG is undocumented (anywhere!) so this is//              reverse-engineering//              and guesswork at its best.// Author:      Petr Smilauer// Modified by:// Created:     01/01/99// RCS-ID:      $Id: readshg.h,v 1.2 2004/01/08 11:54:29 JS Exp $// Copyright:   (c) Petr Smilauer// Licence:     wxWindows licence/////////////////////////////////////////////////////////////////////////////#ifndef readshgh#define readshgh#include  <stdio.h>#include <stdlib.h>typedef enum { TypePopup = 0xE2, TypeJump = 0xE3, TypeMacro = 0xC8} HotspotType;#define NOT_VISIBLE  0x04typedef struct{  unsigned char   hotspotType;// combines HotspotType /w NOT_VISIBLE if appropriate  unsigned char   flag;       // NOT_VISIBLE or 0 ??  unsigned char   skip;       // 0, always??  unsigned short  left,                  top,                  width,      // left+width/top+height give right/bottom,                  height;     // =>right and bottom edge are not 'included'  unsigned char   magic[4];   // wonderful numbers: for macros, this seems    // (at least first 2 bytes) to represent offset into macro-strings block.} ShgInfoBlock;   // whole block is just 15 bytes long. How weird!#define OFF_OFFSET    0x20    // this is offset, where WORD (?) lies#define OFFSET_DELTA  9       // we must add this to get real offset from file beginningstruct HotSpot{          HotspotType type;          unsigned int left,                      top,                      right,                      bottom;          wxChar      szHlpTopic_Macro[65];          bool        IsVisible;};// Returns the number of hotspots, and the array of hotspots.// E.g.// HotSpots *array;// int n = ParseSHG("thing.shg", &array);extern int ParseSHG( const wxChar* fileName, HotSpot **hotspots);// Converts Windows .SHG file to HTML map fileextern bool SHGToMap(wxChar *filename, wxChar *defaultFile);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -