|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2018 [email protected]
4: //
5:
6: #pragma once
7:
8: #include "wxtextpanel.h"
9:
10: //
11: // テキストスクリーン風コントロール
12: //
13: // wxPanel
14: // ↓
15: // WXTextPanel テキストフォントを管理するクラス
16: // ↓
17: // WXTextScreen テキストフォントを使ったテキストスクリーン
18: //
19: class WXTextScreen : public WXTextPanel
20: {
21: typedef WXTextPanel inherited;
22:
23: public:
24: WXTextScreen(wxWindow *parent, int col, int row, const uint16 *textbuf);
25: virtual ~WXTextScreen();
26:
27: // XXX
28: void SetTextSize(int col, int row);
29:
30: void OnPaint(wxPaintEvent&);
31: void OnSize(wxSizeEvent&);
32:
33: // フォントサイズ変更
34: void SetFontSize(fontsize_t fontsize);
35:
36: private:
37: void Draw(wxDC& dc);
38:
39: const uint16 *textbuf = NULL;
40: uint16 *prevbuf = NULL;
41: uint8 *bmpbuf = NULL;
42: wxImage *image = NULL;
43: wxBitmap *bitmap = NULL;
44:
45: int col = 0;
46: int row = 0;
47: int view_width = 0;
48: int view_height = 0;
49:
50: wxDECLARE_EVENT_TABLE();
51: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.