Добавлена обёртка для WINDOW
This commit is contained in:
parent
f0349cd899
commit
ebb479722b
1 changed files with 15 additions and 0 deletions
15
source/ncui/core/ncwin.d
Normal file
15
source/ncui/core/ncwin.d
Normal 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; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue