NanoCanvas
|
Namespaces | |
ColorConverter | |
Colors | |
TextAlign | |
The text alignment is formed by horizontal alignment and vertical alignemt. | |
Classes | |
class | Canvas |
struct | Color |
class | Font |
Text font class. More... | |
class | Image |
The Image class of Nano canas NanoVG allows you to load jpg, png, psd, tga, pic and gif files to be used for rendering. More... | |
struct | Memery |
The data structure for memery blocks. More... | |
struct | Paint |
struct | TextStyle |
Typedefs | |
using | Byte = unsigned char |
Functions | |
string | to_string (const Color &color) |
Get hex code string from color. More... | |
template<typename T > | |
T | clamp (T x, T a, T b) |
Get a number in range [a,b]. More... | |
template<typename T > | |
T | degree2Radians (const T _degree) |
template<typename T > | |
T | radians2Degree (const T _radians) |
Variables | |
static string | nullstr |
static constexpr long double | PI = 3.14159265358979323846264338327L |
The π definition. More... | |
using NanoCanvas::Byte = typedef unsigned char |
|
inline |
Get a number in range [a,b].
T NanoCanvas::degree2Radians | ( | const T | _degree | ) |
T NanoCanvas::radians2Degree | ( | const T | _radians | ) |
string NanoCanvas::to_string | ( | const Color & | color | ) |
Get hex code string from color.
|
static |
|
static |
The π definition.