--- nono/wx/wxtextscreen.h 2026/04/29 17:05:16 1.1.1.9 +++ nono/wx/wxtextscreen.h 2026/04/29 17:05:27 1.1.1.11 @@ -35,7 +35,7 @@ class WXTextScreen : public WXTextPanel public: WXTextScreen(wxWindow *parent, const nnSize& screensize); - virtual ~WXTextScreen() override; + ~WXTextScreen() override; // フォントサイズ変更 void FontChanged() override; @@ -55,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;