NanoCanvas
Namespaces | Classes | Typedefs | Functions | Variables
NanoCanvas Namespace Reference

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 >
clamp (T x, T a, T b)
 Get a number in range [a,b]. More...
 
template<typename T >
degree2Radians (const T _degree)
 
template<typename T >
radians2Degree (const T _radians)
 

Variables

static string nullstr
 
static constexpr long double PI = 3.14159265358979323846264338327L
 The π definition. More...
 

Typedef Documentation

using NanoCanvas::Byte = typedef unsigned char

Function Documentation

template<typename T >
T NanoCanvas::clamp ( x,
a,
b 
)
inline

Get a number in range [a,b].

Returns
The value between a and b
  • if a <= x <= b returns x
  • if x < a returns a
  • if x > b returns b
template<typename T >
T NanoCanvas::degree2Radians ( const T  _degree)
template<typename T >
T NanoCanvas::radians2Degree ( const T  _radians)
string NanoCanvas::to_string ( const Color color)

Get hex code string from color.

Variable Documentation

string NanoCanvas::nullstr
static
constexpr long double NanoCanvas::PI = 3.14159265358979323846264338327L
static

The π definition.


The documentation was generated by Doxygen

Copyright © 2015 Geequlim. All rights reserved.