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

#include <Plot.hh>

Inheritance diagram for PlotD:
Collaboration diagram for PlotD:

Public Member Functions

 PlotD (Plane *plane, const ncplot_options *opts=nullptr)
 
 PlotD (Plane const *plane, const ncplot_options *opts=nullptr)
 
 PlotD (Plane &plane, const ncplot_options *opts=nullptr)
 
 PlotD (Plane const &plane, const ncplot_options *opts=nullptr)
 
Planeget_plane () const noexcept
 
- Public Member Functions inherited from PlotBase< ncdplot, double >
bool add_sample (uint64_t x, double y) const NOEXCEPT_MAYBE
 
bool set_sample (uint64_t x, double y) const NOEXCEPT_MAYBE
 
bool sample (uint64_t x, double *y) const NOEXCEPT_MAYBE
 
- Public Member Functions inherited from Root
notcursesget_notcurses () const
 
NotCursesget_notcurses_cpp () const
 

Static Public Attributes

static ncplot_options default_options
 

Additional Inherited Members

- Protected Member Functions inherited from PlotBase< ncdplot, double >
 PlotBase (Plane *plane, const ncplot_options *opts, double miny=0, double maxy=0)
 
 ~PlotBase ()
 
ncdplot * get_plot () const noexcept
 
- 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 136 of file Plot.hh.

Constructor & Destructor Documentation

◆ PlotD() [1/4]

PlotD ( Plane plane,
const ncplot_options opts = nullptr 
)
inlineexplicit

Definition at line 142 of file Plot.hh.

143 : PlotD (static_cast<const Plane*>(plane), opts)
144 {}
PlotD(Plane *plane, const ncplot_options *opts=nullptr)
Definition Plot.hh:142
const struct ncplane_options * opts
Definition notcurses.h:3483

◆ PlotD() [2/4]

PlotD ( Plane const plane,
const ncplot_options opts = nullptr 
)
inlineexplicit

Definition at line 146 of file Plot.hh.

147 : PlotBase (const_cast<Plane*>(plane), opts == nullptr ? &default_options : opts)
148 {}
PlotBase(Plane *plane, const ncplot_options *opts, double miny=0, double maxy=0)
Definition Plot.hh:61
static ncplot_options default_options
Definition Plot.hh:139

◆ PlotD() [3/4]

PlotD ( Plane plane,
const ncplot_options opts = nullptr 
)
inlineexplicit

Definition at line 150 of file Plot.hh.

151 : PlotD (static_cast<Plane const&>(plane), opts)
152 {}
static TRet error_guard(TValue ret, TValue error_value)
Definition Root.hh:39

◆ PlotD() [4/4]

PlotD ( Plane const plane,
const ncplot_options opts = nullptr 
)
inlineexplicit

Definition at line 154 of file Plot.hh.

155 : PlotBase (const_cast<Plane*>(&plane), opts == nullptr ? &default_options : opts)
156 {}

Member Function Documentation

◆ get_plane()

Plane * get_plane ( ) const
noexcept

Field Documentation

◆ default_options

ncplot_options default_options
static

Definition at line 139 of file Plot.hh.


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