From 7a3b0e33dbcbd7dc2b1510040f02cc5f10dcd577 Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Mon, 5 Jan 2026 01:01:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D1=83=D0=B6=D0=BD=D0=B0=D1=8F=20=D0=BA=D0=BE=D0=BD?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D0=BD=D1=82=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=20=D0=B2=D0=BE=D0=B7=D0=B2=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=B5=20=D1=83=D0=BA=D0=B0=D0=B7=D0=B0=D1=82=D0=B5=D0=BB=D1=8F?= =?UTF-8?q?=20=D0=BD=D0=B0=20WINDOW?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ncui/core/ncwin.d | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/source/ncui/core/ncwin.d b/source/ncui/core/ncwin.d index f1e80c4..804b374 100644 --- a/source/ncui/core/ncwin.d +++ b/source/ncui/core/ncwin.d @@ -6,10 +6,20 @@ struct NCWin { WINDOW* _p; - this(WINDOW* p) { _p = p; } + this(WINDOW* p) + { + _p = p; + } + + @property WINDOW* ptr() + { + return _p; + } - @property WINDOW* ptr() @trusted const { return cast(WINDOW*)_p; } alias ptr this; - @property bool isNull() const { return _p is null; } + @property bool isNull() const + { + return _p is null; + } }