--- nono/lib/textscreen.h 2026/04/29 17:05:19 1.1.1.12 +++ nono/lib/textscreen.h 2026/04/29 17:05:26 1.1.1.14 @@ -10,7 +10,7 @@ #pragma once -#include "header.h" +#include "nono.h" #include // 属性 @@ -75,7 +75,7 @@ class TA // // Locate などにより範囲外にカーソルを移動することはできる。 // ただしその位置を始点としての文字出力は無視される。 -class TextScreen +class TextScreen final { public: // 文字の送りモード @@ -90,7 +90,7 @@ class TextScreen TextScreen(); TextScreen(int col, int row); - virtual ~TextScreen(); + ~TextScreen(); // 初期化 void Init(int col, int row, ModeKind mode = ModeKind::Fixed); @@ -222,6 +222,9 @@ class TextScreen // 行数を取得 int GetRow() const { return row; } + // 行単位のコピー + void CopyRowsFrom(int dst_y, int row, const TextScreen& src, int src_y); + // ユーザ定義の引数 // ご自由にお使いください。例えばモニタの出力開始オフセットやアドレス // など、呼び出し側が設定して書き出す側がそれに従った内容を出力する