--- nono/lib/textscreen.h 2026/04/29 17:04:51 1.1.1.7 +++ nono/lib/textscreen.h 2026/04/29 17:05:08 1.1.1.9 @@ -4,6 +4,10 @@ // Licensed under nono-license.txt // +// +// テキストスクリーン +// + #pragma once #include "header.h" @@ -94,7 +98,7 @@ class TextScreen virtual ~TextScreen(); // 初期化 - void Init(int col, int row); + void Init(int col, int row, ModeKind mode = ModeKind::Fixed); // 画面をクリアして、カーソルをホームポジションに移動 void Clear(); @@ -237,30 +241,3 @@ class TextScreen // カーソルが画面外に位置するとき true bool OutOfScreen {}; }; - -// -// テキストコンソール -// -class TextConsole : public TextScreen -{ - using inherited = TextScreen; - public: - TextConsole(); -}; - -// -// モニターインタフェース -// -// モニターされる側はこのインタフェースを実装すること。 -// -class IMonitor -{ - public: - virtual ~IMonitor(); - - // 自身の現在の状態を TextScreen に書き出す - virtual void MonitorUpdate(TextScreen&) = 0; - - // このモニターが必要とするサイズ(桁数×行数)を取得する - virtual nnSize GetMonitorSize() = 0; -};