--- nono/wx/wxtextscreen.h 2026/04/29 17:05:12 1.1.1.8 +++ nono/wx/wxtextscreen.h 2026/04/29 17:05:19 1.1.1.10 @@ -23,6 +23,7 @@ class WXTextScreen : public WXTextPanel { using inherited = WXTextPanel; + public: // テキストスクリーンは本来単純なキャラクタビットマップ構造のため、 // クライアント領域の端の1ピクセルまでふんだんに使用している。 // ウィンドウマネージャ側でこのウィンドウに枠などをつけてくれる場合は @@ -54,6 +55,9 @@ class WXTextScreen : public WXTextPanel int GetCol() const { return screen.GetCol(); } int GetRow() const { return screen.GetRow(); } + // 全域を表示するのに必要なピクセルサイズを返す。 + wxSize GetDesiredSize() const; + // クライアント座標 pos をテキスト座標(桁、行)に変換して返す // (パディング領域では戻り値が負数になることに注意) wxPoint GetTextPosition(const wxPoint& pos) const;