1#ifndef __NCPP_FDPLANE_HH
2#define __NCPP_FDPLANE_HH
19 :
FDPlane (plane, fd, nullptr, cbfxn, donecbfxn)
25 ensure_valid_plane (plane);
26 create_fdplane (*plane, fd,
opts, cbfxn, donecbfxn);
27 take_plane_ownership (plane);
31 :
FDPlane (plane, fd, nullptr, cbfxn, donecbfxn)
37 ensure_valid_plane (plane);
38 create_fdplane (plane, fd,
opts, cbfxn, donecbfxn);
39 take_plane_ownership (plane);
44 if (is_notcurses_stopped ())
60 opts ==
nullptr ? &default_options :
opts,
66 if (fdplane ==
nullptr)
67 throw init_error (
"NotCurses failed to create an ncfdplane instance");
FDPlane(Plane *plane, int fd, ncfdplane_options *opts=nullptr, ncfdplane_callback cbfxn=nullptr, ncfdplane_done_cb donecbfxn=nullptr)
FDPlane(Plane *plane, int fd, ncfdplane_callback cbfxn=nullptr, ncfdplane_done_cb donecbfxn=nullptr)
static ncfdplane_options default_options
FDPlane(Plane &plane, int fd, ncfdplane_options *opts=nullptr, ncfdplane_callback cbfxn=nullptr, ncfdplane_done_cb donecbfxn=nullptr)
FDPlane(Plane &plane, int fd, ncfdplane_callback cbfxn=nullptr, ncfdplane_done_cb donecbfxn=nullptr)
Plane * get_plane() const noexcept
int ncfdplane_destroy(ncfdplane *n)
ncplane * ncfdplane_plane(ncfdplane *n)
ncfdplane * ncfdplane_create(ncplane *n, const ncfdplane_options *opts, int fd, ncfdplane_callback cbfxn, ncfdplane_done_cb donecbfxn)
const struct ncplane_options * opts
int(* ncfdplane_done_cb)(struct ncfdplane *n, int fderrno, void *curry)
int(* ncfdplane_callback)(struct ncfdplane *n, const void *buf, size_t s, void *curry)