Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/teraterm/common/tektypes.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3227 - (show annotations) (download) (as text)
Tue Mar 24 15:10:33 2009 UTC (4 years, 1 month ago) by maya
File MIME type: text/x-chdr
File size: 2542 byte(s)
CVS から SVN へ移行: 改行コードを LF から CR+LF へ変換
1 /* Tera Term
2 Copyright(C) 1994-1998 T. Teranishi
3 All rights reserved. */
4
5 /* Constants and types for TEK window */
6
7 #define ViewSizeX 4096
8 #define ViewSizeY 3120
9
10 #define CurWidth 2
11
12 #define IdAlphaMode 0
13 #define IdVectorMode 1
14 #define IdMarkerMode 2
15 #define IdPlotMode 3
16 #define IdUnknownMode 4
17
18 #define ModeFirst 0
19 #define ModeEscape 1
20 #define ModeCS 2
21 #define ModeSelectCode 3
22 #define Mode2OC 4
23 #define ModeGT 5
24
25 //"LF"
26 #define IdMove 0x4C46
27 // "LG"
28 #define IdDraw 0x4C47
29 // "LH"
30 #define IdDrawMarker 0x4C48
31 // "LT"
32 #define IdGraphText 0x4C54
33 // "LV"
34 #define IdSetDialogVisibility 0x4C56
35 // "MC"
36 #define IdSetGraphTextSize 0x4D43
37 // "MG"
38 #define IdSetWriteMode 0x4D47
39 // "ML"
40 #define IdSetLineIndex 0x4D4C
41 // "MM"
42 #define IdSetMarkerType 0x4D4D
43 // "MN"
44 #define IdSetCharPath 0x4D4E
45 // "MQ"
46 #define IdSetPrecision 0x4D51
47 // "MR"
48 #define IdSetRotation 0x4D52
49 // "MT"
50 #define IdSetTextIndex 0x4D54
51 // "MV"
52 #define IdSetLineStyle 0x4D56
53
54 #define NParamMax 16
55 #define NParam2OCMax 16
56
57 typedef struct {
58 HWND HWin;
59
60 BOOL Drawing;
61 int ParseMode;
62 int SelectCodeFlag;
63
64 LOGFONT TEKlf;
65 HFONT TEKFont[4];
66 HFONT OldMemFont;
67 BOOL AdjustSize, ScaleFont;
68 int ScreenWidth, ScreenHeight;
69 int FontWidth, FontHeight;
70 int FW[4], FH[4];
71 int CaretX, CaretY;
72 int CaretOffset;
73 int TextSize;
74 int DispMode;
75 HDC MemDC;
76 HBITMAP HBits, OldMemBmp;
77 BOOL Active, Minimized, MoveFlag;
78 COLORREF TextColor, PenColor;
79 COLORREF MemForeColor, MemBackColor, MemTextColor, MemPenColor;
80 HBRUSH BackGround, MemBackGround;
81 HPEN Pen, MemPen, OldMemPen;
82 int ps;
83 int ChangeEmu;
84 int CaretStatus;
85
86 BOOL ButtonDown, Select, RubberBand;
87 POINT SelectStart, SelectEnd;
88
89 BOOL GIN, CrossHair;
90 int IgnoreCount;
91 int GINX, GINY;
92
93 /* flags for Drawing */
94 BOOL LoXReceive;
95 int LoCount;
96 BYTE LoA, LoB;
97
98 /* variables for 2OC mode */
99 int OpCount, PrmCount, PrmCountMax;
100 WORD Op2OC;
101 WORD Prm2OC[NParam2OCMax+1];
102
103 /* plot mode */
104 BOOL JustAfterRS, PenDown;
105 int PlotX, PlotY;
106
107 // variables for control sequences
108 int CSCount;
109 BYTE CSBuff[256];
110 int NParam;
111 int Param[NParamMax+1];
112
113 // variables for graphtext
114 int GTWidth, GTHeight, GTSpacing;
115 int GTCount, GTLen, GTAngle;
116 char GTBuff[80];
117
118 // variables for marker
119 int MarkerType, MarkerW, MarkerH;
120 HFONT MarkerFont;
121 BOOL MarkerFlag;
122
123 BYTE HiY, Extra, LoY, HiX, LoX;
124 } TTEKVar;
125 typedef TTEKVar far *PTEKVar;

SourceForge.JP is a Japanese version of SourceForge.net. For developments that are not related to Japan, we recommend you to use SourceForge.net.