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 10256 - (hide annotations) (download) (as text)
Fri Sep 9 15:07:26 2022 UTC (19 months ago) by zmatsuo
Original Path: trunk/teraterm/teraterm/vtdisp.h
File MIME type: text/x-chdr
File size: 5570 byte(s)
テーマファイルに関連する関数などを themefile.cpp へ移動

- bg_theme.h を theme.h へリネーム
- 関数名を Theme~ にリネームした
- BGテーマの設定を行っていると背景画像が表示されなくなる場合があったので修正
- 画像を設定していないのに背景画像チェックボックスのチェックが入ることがあった
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 zmatsuo 10256 #pragma once
33    
34 zmatsuo 8675 #include "buffer.h" // for TCharAttr
35    
36 maya 3227 #ifdef __cplusplus
37     extern "C" {
38     #endif
39    
40     /* prototypes */
41 yutakapon 8106 void BGInitialize(BOOL initialize_once);
42 zmatsuo 10134 void BGLoadThemeFile(TTTSet *pts);
43     void BGSetupPrimary(BOOL forceSetup);
44 maya 3227
45     void BGOnSettingChange(void);
46     void BGOnEnterSizeMove(void);
47     void BGOnExitSizeMove(void);
48    
49 zmatsuo 9991 void InitDisp(void);
50     void EndDisp(void);
51     void DispReset(void);
52 maya 3227 void DispConvWinToScreen
53     (int Xw, int Yw, int *Xs, int *Ys, PBOOL Right);
54     void DispConvScreenToWin
55     (int Xs, int Ys, int *Xw, int *Yw);
56 zmatsuo 9991 //void SetLogFont(void);
57     void ChangeFont(void);
58     void ResetIME(void);
59     void ChangeCaret(void);
60 maya 3227 void CaretKillFocus(BOOL show);
61 doda 3322 void UpdateCaretPosition(BOOL enforce);
62 zmatsuo 9991 void CaretOn(void);
63     void CaretOff(void);
64     void DispDestroyCaret(void);
65     BOOL IsCaretOn(void);
66 maya 3227 void DispEnableCaret(BOOL On);
67 zmatsuo 9991 BOOL IsCaretEnabled(void);
68 maya 3227 void DispSetCaretWidth(BOOL DW);
69     void DispChangeWinSize(int Nx, int Ny);
70     void ResizeWindow(int x, int y, int w, int h, int cw, int ch);
71     void PaintWindow(HDC PaintDC, RECT PaintRect, BOOL fBkGnd,
72     int* Xs, int* Ys, int* Xe, int* Ye);
73 zmatsuo 9991 void DispEndPaint(void);
74     void DispClearWin(void);
75     void DispChangeBackground(void);
76     void DispChangeWin(void);
77     void DispInitDC(void);
78     void DispReleaseDC(void);
79 maya 3227 void DispSetupDC(TCharAttr Attr, BOOL Reverse);
80 zmatsuo 9040 void DispStr(const char *Buff, int Count, int Y, int* X);
81 doda 8445 void DispStrW(const wchar_t *StrW, const char *WidthInfo, int Count, int Y, int* X);
82 maya 3227 void DispEraseCurToEnd(int YEnd);
83     void DispEraseHomeToCur(int YHome);
84     void DispEraseCharsInLine(int XStart, int Count);
85     BOOL DispDeleteLines(int Count, int YEnd);
86     BOOL DispInsertLines(int Count, int YEnd);
87     BOOL IsLineVisible(int* X, int* Y);
88 zmatsuo 9991 void AdjustScrollBar(void);
89 maya 3227 void DispScrollToCursor(int CurX, int CurY);
90     void DispScrollNLines(int Top, int Bottom, int Direction);
91 zmatsuo 9991 void DispCountScroll(int n);
92     void DispUpdateScroll(void);
93     void DispScrollHomePos(void);
94 maya 3227 void DispAutoScroll(POINT p);
95     void DispHScroll(int Func, int Pos);
96     void DispVScroll(int Func, int Pos);
97 zmatsuo 9991 void DispSetupFontDlg(void);
98     void DispRestoreWinSize(void);
99     void DispSetWinPos(void);
100 maya 3227 void DispSetActive(BOOL ActiveFlag);
101 zmatsuo 9991 void InitColorTable(void);
102 maya 3227 void DispSetNearestColors(int start, int end, HDC DispCtx);
103     int TCharAttrCmp(TCharAttr a, TCharAttr b);
104 doda 4770 void DispSetColor(unsigned int num, COLORREF color);
105     void DispResetColor(unsigned int num);
106     COLORREF DispGetColor(unsigned int num);
107 maya 3227 void DispSetCurCharAttr(TCharAttr Attr);
108 doda 3297 void DispMoveWindow(int x, int y);
109 doda 3302 void DispShowWindow(int mode);
110 doda 3464 void DispResizeWin(int w, int h);
111 zmatsuo 9991 BOOL DispWindowIconified(void);
112 doda 7271 void DispGetWindowPos(int *x, int *y, BOOL client);
113 doda 7270 void DispGetWindowSize(int *width, int *height, BOOL client);
114 doda 7272 void DispGetRootWinSize(int *x, int *y, BOOL inPixels);
115 doda 5073 int DispFindClosestColor(int red, int green, int blue);
116 doda 6306 void UpdateBGBrush(void);
117 zmatsuo 9040 void DrawStrW(HDC DC, HDC BGDC, const wchar_t *StrW, const char *WidthInfo, int Count,
118     int font_width, int font_height, int Y, int* X);
119     void DrawStrA(HDC DC, HDC BGDC, const char *StrA, int Count,
120     int font_width, int font_height, int Y, int* X);
121 maya 3227
122     extern int WinWidth, WinHeight;
123     extern HFONT VTFont[AttrFontMask+1];
124     extern int FontHeight, FontWidth, ScreenWidth, ScreenHeight;
125     extern BOOL AdjustSize, DontChangeSize;
126     extern int CursorX, CursorY;
127     extern int WinOrgX, WinOrgY, NewOrgX, NewOrgY;
128     extern int NumOfLines, NumOfColumns;
129     extern int PageStart, BuffEnd;
130     extern TCharAttr DefCharAttr;
131    
132 zmatsuo 7434 extern BOOL IMEstat;
133 zmatsuo 7534 extern BOOL IMECompositionState;
134 zmatsuo 7434
135 maya 3227 #define SCROLL_BOTTOM 1
136     #define SCROLL_LINEDOWN 2
137     #define SCROLL_LINEUP 3
138     #define SCROLL_PAGEDOWN 4
139     #define SCROLL_PAGEUP 5
140     #define SCROLL_POS 6
141     #define SCROLL_TOP 7
142    
143 doda 3309 #define WINDOW_MINIMIZE 1
144     #define WINDOW_MAXIMIZE 2
145     #define WINDOW_RESTORE 3
146     #define WINDOW_RAISE 4
147     #define WINDOW_LOWER 5
148 doda 3310 #define WINDOW_REFRESH 6
149 doda 7274 #define WINDOW_TOGGLE_MAXIMIZE 7
150 doda 3309
151 zmatsuo 10256 #include "theme.h"
152 zmatsuo 10134
153 maya 3227 #ifdef __cplusplus
154     }
155     #endif

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