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

#include <Tablet.hh>

Inheritance diagram for NcTablet:
Collaboration diagram for NcTablet:

Public Member Functions

template<typename T >
Tget_userptr () const noexcept
 
 operator nctablet * () const noexcept
 
 operator nctablet const * () const noexcept
 
Planeget_plane () const noexcept
 
- Public Member Functions inherited from Root
notcursesget_notcurses () const
 
NotCursesget_notcurses_cpp () const
 

Static Public Member Functions

static NcTabletmap_tablet (nctablet *t, NotCurses *ncinst=nullptr) noexcept
 

Protected Member Functions

 NcTablet (nctablet *t, NotCurses *ncinst)
 
nctabletget_tablet () const noexcept
 
- Protected Member Functions inherited from Root
 Root (NotCurses *ncinst)
 
bool is_notcurses_stopped () const noexcept
 

Static Protected Member Functions

static void unmap_tablet (NcTablet *p) 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)
 

Friends

class NcReel
 

Additional Inherited Members

- 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 16 of file Tablet.hh.

Constructor & Destructor Documentation

◆ NcTablet()

NcTablet ( nctablet t,
NotCurses ncinst 
)
inlineexplicitprotected

Definition at line 19 of file Tablet.hh.

20 : Root (ncinst),
21 _tablet (t)
22 {
23 if (t == nullptr)
24 throw invalid_argument ("'t' must be a valid pointer");
25 };
Root(NotCurses *ncinst)
Definition Root.hh:34
static TRet error_guard(TValue ret, TValue error_value)
Definition Root.hh:39

Member Function Documentation

◆ get_plane()

Plane * get_plane ( ) const
noexcept

◆ get_tablet()

nctablet * get_tablet ( ) const
inlineprotectednoexcept

Definition at line 50 of file Tablet.hh.

51 {
52 return _tablet;
53 }

◆ get_userptr()

template<typename T >
T * get_userptr ( ) const
inlinenoexcept

Definition at line 29 of file Tablet.hh.

30 {
31 return static_cast<T*>(nctablet_userptr (_tablet));
32 }
void * nctablet_userptr(nctablet *t)
Definition reel.c:893
Here is the call graph for this function:

◆ map_tablet()

static NcTablet * map_tablet ( nctablet t,
NotCurses ncinst = nullptr 
)
staticnoexcept

◆ operator nctablet *()

operator nctablet * ( ) const
inlinenoexcept

Definition at line 34 of file Tablet.hh.

35 {
36 return _tablet;
37 }

◆ operator nctablet const *()

operator nctablet const * ( ) const
inlinenoexcept

Definition at line 39 of file Tablet.hh.

40 {
41 return _tablet;
42 }

◆ unmap_tablet()

static void unmap_tablet ( NcTablet p)
staticprotectednoexcept

Friends And Related Symbol Documentation

◆ NcReel

Definition at line 60 of file Tablet.hh.


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