Notcurses 3.0.16
a blingful library for TUIs and character graphics
Loading...
Searching...
No Matches
Utilities.hh
Go to the documentation of this file.
1#ifndef __NCPP_UTILITIES_HH
2#define __NCPP_UTILITIES_HH
3
5
6#include "_helpers.hh"
7
8namespace ncpp
9{
10 class NotCurses;
11 class Plane;
12 class Root;
13
15 {
16 public:
17 static ncplane* to_ncplane (const Plane *plane) noexcept;
18
19 static ncplane* to_ncplane (const Plane &plane) noexcept
20 {
21 return to_ncplane (&plane);
22 }
23
24 static NotCurses* get_notcurses_cpp (const Root *o) noexcept;
25
26 static NotCurses* get_notcurses_cpp (const Root &o) noexcept
27 {
28 return get_notcurses_cpp (&o);
29 }
30
31 static NotCurses* get_notcurses_cpp (const Plane *plane) noexcept;
32
33 static NotCurses* get_notcurses_cpp (const Plane &plane) noexcept
34 {
35 return get_notcurses_cpp (&plane);
36 }
37 };
38}
39#endif
#define NCPP_API_EXPORT
Definition _helpers.hh:9
static NotCurses * get_notcurses_cpp(const Root *o) noexcept
static NotCurses * get_notcurses_cpp(const Root &o) noexcept
Definition Utilities.hh:26
static NotCurses * get_notcurses_cpp(const Plane *plane) noexcept
static ncplane * to_ncplane(const Plane &plane) noexcept
Definition Utilities.hh:19
static ncplane * to_ncplane(const Plane *plane) noexcept
static NotCurses * get_notcurses_cpp(const Plane &plane) noexcept
Definition Utilities.hh:33