Notcurses 3.0.13
a blingful library for TUIs and character graphics
Loading...
Searching...
No Matches
FDPlane Class Reference

#include <FDPlane.hh>

Inheritance diagram for FDPlane:
Collaboration diagram for FDPlane:

Public Member Functions

 FDPlane (Plane *plane, int fd, ncfdplane_callback cbfxn=nullptr, ncfdplane_done_cb donecbfxn=nullptr)
 
 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)
 
 FDPlane (Plane &plane, int fd, ncfdplane_options *opts=nullptr, ncfdplane_callback cbfxn=nullptr, ncfdplane_done_cb donecbfxn=nullptr)
 
 ~FDPlane ()
 
Planeget_plane () const noexcept
 
- Public Member Functions inherited from Root
notcursesget_notcurses () const
 
NotCursesget_notcurses_cpp () const
 

Static Public Attributes

static ncfdplane_options default_options
 

Additional Inherited Members

- Protected Member Functions inherited from Widget
 Widget (NotCurses *ncinst)
 
void ensure_valid_plane (Plane *plane) const
 
void ensure_valid_plane (Plane &plane) const
 
void take_plane_ownership (Plane *plane) const
 
void take_plane_ownership (Plane &plane) const
 
- Protected Member Functions inherited from Root
 Root (NotCurses *ncinst)
 
bool is_notcurses_stopped () const noexcept
 
- Static Protected Member Functions inherited from Root
template<typename TRet = bool, typename TValue = int>
static TRet error_guard (TValue ret, TValue error_value)
 
template<typename TRet = bool, typename TValue = int>
static TRet error_guard_cond (TValue ret, bool error_value)
 
- Static Protected Attributes inherited from Root
static constexpr char ncpp_invalid_state_message [] = "notcurses++ is in an invalid state (already stopped?)"
 

Detailed Description

Definition at line 12 of file FDPlane.hh.

Constructor & Destructor Documentation

◆ FDPlane() [1/4]

FDPlane ( Plane plane,
int  fd,
ncfdplane_callback  cbfxn = nullptr,
ncfdplane_done_cb  donecbfxn = nullptr 
)
inlineexplicit

Definition at line 18 of file FDPlane.hh.

19 : FDPlane (plane, fd, nullptr, cbfxn, donecbfxn)
20 {}
FDPlane(Plane *plane, int fd, ncfdplane_callback cbfxn=nullptr, ncfdplane_done_cb donecbfxn=nullptr)
Definition FDPlane.hh:18
static TRet error_guard(TValue ret, TValue error_value)
Definition Root.hh:39

◆ FDPlane() [2/4]

FDPlane ( Plane plane,
int  fd,
ncfdplane_options opts = nullptr,
ncfdplane_callback  cbfxn = nullptr,
ncfdplane_done_cb  donecbfxn = nullptr 
)
inlineexplicit

Definition at line 22 of file FDPlane.hh.

24 {
25 ensure_valid_plane (plane);
26 create_fdplane (*plane, fd, opts, cbfxn, donecbfxn);
28 }
static NotCurses * get_notcurses_cpp(const Root *o) noexcept
Widget(NotCurses *ncinst)
Definition Widget.hh:12
void take_plane_ownership(Plane *plane) const
Definition Widget.hh:29
void ensure_valid_plane(Plane *plane) const
Definition Widget.hh:16
const struct ncplane_options * opts
Definition notcurses.h:3483

◆ FDPlane() [3/4]

FDPlane ( Plane plane,
int  fd,
ncfdplane_callback  cbfxn = nullptr,
ncfdplane_done_cb  donecbfxn = nullptr 
)
inlineexplicit

Definition at line 30 of file FDPlane.hh.

31 : FDPlane (plane, fd, nullptr, cbfxn, donecbfxn)
32 {}

◆ FDPlane() [4/4]

FDPlane ( Plane plane,
int  fd,
ncfdplane_options opts = nullptr,
ncfdplane_callback  cbfxn = nullptr,
ncfdplane_done_cb  donecbfxn = nullptr 
)
inlineexplicit

Definition at line 34 of file FDPlane.hh.

36 {
37 ensure_valid_plane (plane);
38 create_fdplane (plane, fd, opts, cbfxn, donecbfxn);
40 }

◆ ~FDPlane()

~FDPlane ( )
inline

Definition at line 42 of file FDPlane.hh.

43 {
45 return;
46
47 ncfdplane_destroy (fdplane);
48 }
bool is_notcurses_stopped() const noexcept
int ncfdplane_destroy(ncfdplane *n)
Definition fd.c:136
Here is the call graph for this function:

Member Function Documentation

◆ get_plane()

Plane * get_plane ( ) const
inlinenoexcept

Definition at line 50 of file FDPlane.hh.

51 {
52 return Plane::map_plane (ncfdplane_plane (fdplane));
53 }
static Plane * map_plane(ncplane *ncp, Plane *associated_plane=nullptr) noexcept
ncplane * ncfdplane_plane(ncfdplane *n)
Definition fd.c:132
Here is the call graph for this function:

Field Documentation

◆ default_options

ncfdplane_options default_options
static

Definition at line 15 of file FDPlane.hh.


The documentation for this class was generated from the following file: