Annotation of nono/wx/wxtextscreen.h, revision 1.1.1.2

1.1       root        1: //
                      2: // nono
1.1.1.2 ! root        3: // Copyright (C) 2020 nono project
        !             4: // Licensed under nono-license.txt
1.1       root        5: //
                      6: 
                      7: #pragma once
                      8: 
                      9: #include "wxtextpanel.h"
                     10: 
                     11: //
                     12: // テキストスクリーン風コントロール
                     13: //
                     14: // wxPanel
                     15: //  ↓
                     16: // WXTextPanel  テキストフォントを管理するクラス
                     17: //  ↓
                     18: // WXTextScreen テキストフォントを使ったテキストスクリーン
                     19: //
                     20: class WXTextScreen : public WXTextPanel
                     21: {
1.1.1.2 ! root       22:        using inherited = WXTextPanel;
1.1       root       23: 
                     24:  public:
                     25:        WXTextScreen(wxWindow *parent, int col, int row, const uint16 *textbuf);
                     26:        virtual ~WXTextScreen();
                     27: 
                     28:        // XXX
                     29:        void SetTextSize(int col, int row);
                     30: 
                     31:        void OnPaint(wxPaintEvent&);
                     32:        void OnSize(wxSizeEvent&);
                     33: 
                     34:        // フォントサイズ変更
                     35:        void SetFontSize(fontsize_t fontsize);
                     36: 
                     37:  private:
                     38:        void Draw(wxDC& dc);
                     39: 
1.1.1.2 ! root       40:        const uint16 *textbuf {};
        !            41:        std::unique_ptr<uint16[]> prevbuf {};
        !            42:        std::unique_ptr<uint8[]> bmpbuf {};
        !            43:        std::unique_ptr<wxImage> image {};
        !            44:        std::unique_ptr<wxBitmap> bitmap {};
1.1       root       45: 
                     46:        int col = 0;
                     47:        int row = 0;
                     48:        int view_width = 0;
                     49:        int view_height = 0;
                     50: 
                     51:        wxDECLARE_EVENT_TABLE();
                     52: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.