From ebb479722bfaf99948be3f7aadd7329990f8c1b3 Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Sun, 4 Jan 2026 14:27:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BE=D0=B1=D1=91=D1=80=D1=82=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20WINDOW?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ncui/core/ncwin.d | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 source/ncui/core/ncwin.d diff --git a/source/ncui/core/ncwin.d b/source/ncui/core/ncwin.d new file mode 100644 index 0000000..f1e80c4 --- /dev/null +++ b/source/ncui/core/ncwin.d @@ -0,0 +1,15 @@ +module ncui.core.ncwin; + +import deimos.ncurses : WINDOW; + +struct NCWin +{ + WINDOW* _p; + + this(WINDOW* p) { _p = p; } + + @property WINDOW* ptr() @trusted const { return cast(WINDOW*)_p; } + alias ptr this; + + @property bool isNull() const { return _p is null; } +}