Добавлена обёртка для WINDOW

This commit is contained in:
Alexander Zhirov 2026-01-04 14:27:44 +03:00
parent f0349cd899
commit ebb479722b
Signed by: alexander
GPG key ID: C8D8BE544A27C511

15
source/ncui/core/ncwin.d Normal file
View file

@ -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; }
}