Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /branches/ttcomtester/teraterm/teraterm/vtdisp.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9991 - (hide annotations) (download) (as text)
Fri Jun 10 15:19:33 2022 UTC (22 months ago) by zmatsuo
Original Path: trunk/teraterm/teraterm/vtdisp.h
File MIME type: text/x-chdr
File size: 5596 byte(s)
vtdisp.h,cのプロトタイプ宣言を厳密に行うようにした

- void DispCountScroll() -> void DispCountScroll(int n)
  - 引数を省略して宣言されていた
  - 呼び出し元と呼び出し先の引数の使い方が同じだったので問題なかった
1 doda 6806 /*
2     * Copyright (C) 1994-1998 T. Teranishi
3 nmaya 9048 * (C) 2008- TeraTerm Project
4 doda 6806 * All rights reserved.
5     *
6 doda 6841 * Redistribution and use in source and binary forms, with or without
7     * modification, are permitted provided that the following conditions
8     * are met:
9 doda 6806 *
10 doda 6841 * 1. Redistributions of source code must retain the above copyright
11     * notice, this list of conditions and the following disclaimer.
12     * 2. Redistributions in binary form must reproduce the above copyright
13     * notice, this list of conditions and the following disclaimer in the
14     * documentation and/or other materials provided with the distribution.
15     * 3. The name of the author may not be used to endorse or promote products
16     * derived from this software without specific prior written permission.
17 doda 6806 *
18 doda 6841 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
19     * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20     * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21     * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22     * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23     * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24     * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25     * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26     * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27     * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 doda 6806 */
29 maya 3227
30     /* TERATERM.EXE, VT terminal display routines */
31 zmatsuo 8675
32     #include "buffer.h" // for TCharAttr
33    
34 maya 3227 #ifdef __cplusplus
35     extern "C" {
36     #endif
37    
38     /* prototypes */
39     //<!--by AKASI
40 yutakapon 8106 void BGInitialize(BOOL initialize_once);
41 maya 3227 void BGSetupPrimary(BOOL);
42    
43 doda 3715 void BGExchangeColor(void);
44    
45 maya 3227 void BGOnSettingChange(void);
46     void BGOnEnterSizeMove(void);
47     void BGOnExitSizeMove(void);
48    
49     extern BOOL BGEnable;
50     //-->
51    
52 zmatsuo 9991 void InitDisp(void);
53     void EndDisp(void);
54     void DispReset(void);
55 maya 3227 void DispConvWinToScreen
56     (int Xw, int Yw, int *Xs, int *Ys, PBOOL Right);
57     void DispConvScreenToWin
58     (int Xs, int Ys, int *Xw, int *Yw);
59 zmatsuo 9991 //void SetLogFont(void);
60     void ChangeFont(void);
61     void ResetIME(void);
62     void ChangeCaret(void);
63 maya 3227 void CaretKillFocus(BOOL show);
64 doda 3322 void UpdateCaretPosition(BOOL enforce);
65 zmatsuo 9991 void CaretOn(void);
66     void CaretOff(void);
67     void DispDestroyCaret(void);
68     BOOL IsCaretOn(void);
69 maya 3227 void DispEnableCaret(BOOL On);
70 zmatsuo 9991 BOOL IsCaretEnabled(void);
71 maya 3227 void DispSetCaretWidth(BOOL DW);
72     void DispChangeWinSize(int Nx, int Ny);
73     void ResizeWindow(int x, int y, int w, int h, int cw, int ch);
74     void PaintWindow(HDC PaintDC, RECT PaintRect, BOOL fBkGnd,
75     int* Xs, int* Ys, int* Xe, int* Ye);
76 zmatsuo 9991 void DispEndPaint(void);
77     void DispClearWin(void);
78     void DispChangeBackground(void);
79     void DispChangeWin(void);
80     void DispInitDC(void);
81     void DispReleaseDC(void);
82 maya 3227 void DispSetupDC(TCharAttr Attr, BOOL Reverse);
83 zmatsuo 9040 void DispStr(const char *Buff, int Count, int Y, int* X);
84 doda 8445 void DispStrW(const wchar_t *StrW, const char *WidthInfo, int Count, int Y, int* X);
85 maya 3227 void DispEraseCurToEnd(int YEnd);
86     void DispEraseHomeToCur(int YHome);
87     void DispEraseCharsInLine(int XStart, int Count);
88     BOOL DispDeleteLines(int Count, int YEnd);
89     BOOL DispInsertLines(int Count, int YEnd);
90     BOOL IsLineVisible(int* X, int* Y);
91 zmatsuo 9991 void AdjustScrollBar(void);
92 maya 3227 void DispScrollToCursor(int CurX, int CurY);
93     void DispScrollNLines(int Top, int Bottom, int Direction);
94 zmatsuo 9991 void DispCountScroll(int n);
95     void DispUpdateScroll(void);
96     void DispScrollHomePos(void);
97 maya 3227 void DispAutoScroll(POINT p);
98     void DispHScroll(int Func, int Pos);
99     void DispVScroll(int Func, int Pos);
100 zmatsuo 9991 void DispSetupFontDlg(void);
101     void DispRestoreWinSize(void);
102     void DispSetWinPos(void);
103 maya 3227 void DispSetActive(BOOL ActiveFlag);
104 zmatsuo 9991 void InitColorTable(void);
105     void DispApplyANSIColor(void);
106 maya 3227 void DispSetNearestColors(int start, int end, HDC DispCtx);
107     int TCharAttrCmp(TCharAttr a, TCharAttr b);
108 doda 4770 void DispSetColor(unsigned int num, COLORREF color);
109     void DispResetColor(unsigned int num);
110     COLORREF DispGetColor(unsigned int num);
111 maya 3227 void DispSetCurCharAttr(TCharAttr Attr);
112 doda 3297 void DispMoveWindow(int x, int y);
113 doda 3302 void DispShowWindow(int mode);
114 doda 3464 void DispResizeWin(int w, int h);
115 zmatsuo 9991 BOOL DispWindowIconified(void);
116 doda 7271 void DispGetWindowPos(int *x, int *y, BOOL client);
117 doda 7270 void DispGetWindowSize(int *width, int *height, BOOL client);
118 doda 7272 void DispGetRootWinSize(int *x, int *y, BOOL inPixels);
119 doda 5073 int DispFindClosestColor(int red, int green, int blue);
120 doda 6306 void UpdateBGBrush(void);
121 zmatsuo 9040 void DrawStrW(HDC DC, HDC BGDC, const wchar_t *StrW, const char *WidthInfo, int Count,
122     int font_width, int font_height, int Y, int* X);
123     void DrawStrA(HDC DC, HDC BGDC, const char *StrA, int Count,
124     int font_width, int font_height, int Y, int* X);
125 maya 3227
126     extern int WinWidth, WinHeight;
127     extern HFONT VTFont[AttrFontMask+1];
128     extern int FontHeight, FontWidth, ScreenWidth, ScreenHeight;
129     extern BOOL AdjustSize, DontChangeSize;
130     extern int CursorX, CursorY;
131     extern int WinOrgX, WinOrgY, NewOrgX, NewOrgY;
132     extern int NumOfLines, NumOfColumns;
133     extern int PageStart, BuffEnd;
134     extern TCharAttr DefCharAttr;
135    
136 zmatsuo 7434 extern BOOL IMEstat;
137 zmatsuo 7534 extern BOOL IMECompositionState;
138 zmatsuo 7434
139 maya 3227 #define SCROLL_BOTTOM 1
140     #define SCROLL_LINEDOWN 2
141     #define SCROLL_LINEUP 3
142     #define SCROLL_PAGEDOWN 4
143     #define SCROLL_PAGEUP 5
144     #define SCROLL_POS 6
145     #define SCROLL_TOP 7
146    
147 doda 3309 #define WINDOW_MINIMIZE 1
148     #define WINDOW_MAXIMIZE 2
149     #define WINDOW_RESTORE 3
150     #define WINDOW_RAISE 4
151     #define WINDOW_LOWER 5
152 doda 3310 #define WINDOW_REFRESH 6
153 doda 7274 #define WINDOW_TOGGLE_MAXIMIZE 7
154 doda 3309
155 maya 3227 #ifdef __cplusplus
156     }
157     #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26