Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/teraterm/teraterm/vtdisp.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10190 - (show annotations) (download) (as text)
Fri Aug 26 14:28:55 2022 UTC (19 months, 2 weeks ago) by zmatsuo
File MIME type: text/x-chdr
File size: 5766 byte(s)
ifdef ALPHABLEND_TYPE2 を削除

- AKASI氏によるEterm風透過ウィンドウパッチ
- マージされてから十分動作実績がある
  - r1405, r1406 (2005/02/03) にマージ
- undef することなく使用していた
- ifdef を削除してマージされた状態となった
1 /*
2 * Copyright (C) 1994-1998 T. Teranishi
3 * (C) 2008- TeraTerm Project
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 *
10 * 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 *
18 * 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 */
29
30 /* TERATERM.EXE, VT terminal display routines */
31
32 #include "buffer.h" // for TCharAttr
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 /* prototypes */
39 void BGInitialize(BOOL initialize_once);
40 void BGLoadThemeFile(TTTSet *pts);
41 void BGSetupPrimary(BOOL forceSetup);
42 void BGWriteThemeFile(const wchar_t *theme_file);
43
44 void BGExchangeColor(void);
45
46 void BGOnSettingChange(void);
47 void BGOnEnterSizeMove(void);
48 void BGOnExitSizeMove(void);
49
50 void InitDisp(void);
51 void EndDisp(void);
52 void DispReset(void);
53 void DispConvWinToScreen
54 (int Xw, int Yw, int *Xs, int *Ys, PBOOL Right);
55 void DispConvScreenToWin
56 (int Xs, int Ys, int *Xw, int *Yw);
57 //void SetLogFont(void);
58 void ChangeFont(void);
59 void ResetIME(void);
60 void ChangeCaret(void);
61 void CaretKillFocus(BOOL show);
62 void UpdateCaretPosition(BOOL enforce);
63 void CaretOn(void);
64 void CaretOff(void);
65 void DispDestroyCaret(void);
66 BOOL IsCaretOn(void);
67 void DispEnableCaret(BOOL On);
68 BOOL IsCaretEnabled(void);
69 void DispSetCaretWidth(BOOL DW);
70 void DispChangeWinSize(int Nx, int Ny);
71 void ResizeWindow(int x, int y, int w, int h, int cw, int ch);
72 void PaintWindow(HDC PaintDC, RECT PaintRect, BOOL fBkGnd,
73 int* Xs, int* Ys, int* Xe, int* Ye);
74 void DispEndPaint(void);
75 void DispClearWin(void);
76 void DispChangeBackground(void);
77 void DispChangeWin(void);
78 void DispInitDC(void);
79 void DispReleaseDC(void);
80 void DispSetupDC(TCharAttr Attr, BOOL Reverse);
81 void DispStr(const char *Buff, int Count, int Y, int* X);
82 void DispStrW(const wchar_t *StrW, const char *WidthInfo, int Count, int Y, int* X);
83 void DispEraseCurToEnd(int YEnd);
84 void DispEraseHomeToCur(int YHome);
85 void DispEraseCharsInLine(int XStart, int Count);
86 BOOL DispDeleteLines(int Count, int YEnd);
87 BOOL DispInsertLines(int Count, int YEnd);
88 BOOL IsLineVisible(int* X, int* Y);
89 void AdjustScrollBar(void);
90 void DispScrollToCursor(int CurX, int CurY);
91 void DispScrollNLines(int Top, int Bottom, int Direction);
92 void DispCountScroll(int n);
93 void DispUpdateScroll(void);
94 void DispScrollHomePos(void);
95 void DispAutoScroll(POINT p);
96 void DispHScroll(int Func, int Pos);
97 void DispVScroll(int Func, int Pos);
98 void DispSetupFontDlg(void);
99 void DispRestoreWinSize(void);
100 void DispSetWinPos(void);
101 void DispSetActive(BOOL ActiveFlag);
102 void InitColorTable(void);
103 void DispSetNearestColors(int start, int end, HDC DispCtx);
104 int TCharAttrCmp(TCharAttr a, TCharAttr b);
105 void DispSetColor(unsigned int num, COLORREF color);
106 void DispResetColor(unsigned int num);
107 COLORREF DispGetColor(unsigned int num);
108 void DispSetCurCharAttr(TCharAttr Attr);
109 void DispMoveWindow(int x, int y);
110 void DispShowWindow(int mode);
111 void DispResizeWin(int w, int h);
112 BOOL DispWindowIconified(void);
113 void DispGetWindowPos(int *x, int *y, BOOL client);
114 void DispGetWindowSize(int *width, int *height, BOOL client);
115 void DispGetRootWinSize(int *x, int *y, BOOL inPixels);
116 int DispFindClosestColor(int red, int green, int blue);
117 void UpdateBGBrush(void);
118 void DrawStrW(HDC DC, HDC BGDC, const wchar_t *StrW, const char *WidthInfo, int Count,
119 int font_width, int font_height, int Y, int* X);
120 void DrawStrA(HDC DC, HDC BGDC, const char *StrA, int Count,
121 int font_width, int font_height, int Y, int* X);
122
123 extern int WinWidth, WinHeight;
124 extern HFONT VTFont[AttrFontMask+1];
125 extern int FontHeight, FontWidth, ScreenWidth, ScreenHeight;
126 extern BOOL AdjustSize, DontChangeSize;
127 extern int CursorX, CursorY;
128 extern int WinOrgX, WinOrgY, NewOrgX, NewOrgY;
129 extern int NumOfLines, NumOfColumns;
130 extern int PageStart, BuffEnd;
131 extern TCharAttr DefCharAttr;
132
133 extern BOOL IMEstat;
134 extern BOOL IMECompositionState;
135
136 #define SCROLL_BOTTOM 1
137 #define SCROLL_LINEDOWN 2
138 #define SCROLL_LINEUP 3
139 #define SCROLL_PAGEDOWN 4
140 #define SCROLL_PAGEUP 5
141 #define SCROLL_POS 6
142 #define SCROLL_TOP 7
143
144 #define WINDOW_MINIMIZE 1
145 #define WINDOW_MAXIMIZE 2
146 #define WINDOW_RESTORE 3
147 #define WINDOW_RAISE 4
148 #define WINDOW_LOWER 5
149 #define WINDOW_REFRESH 6
150 #define WINDOW_TOGGLE_MAXIMIZE 7
151
152 #include "bg_theme.h"
153
154 typedef struct {
155 BG_PATTERN id;
156 const char *str;
157 } BG_PATTERN_ST;
158
159 const BG_PATTERN_ST *GetBGPatternList(int index);
160
161 #ifdef __cplusplus
162 }
163 #endif

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