Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::paint::text_renderer Class Reference

Public Types

enum  mode { mode::truncate_with_ellipsis, mode::truncate_letter_with_ellipsis, mode::word_wrap }
 
using graph_reference = graphics &
 

Public Member Functions

 text_renderer (graph_reference graph, align=align::left)
 
nana::size extent_size (int x, int y, const wchar_t *, std::size_t len, unsigned space_pixels) const
 
void render (const point &, const wchar_t *, std::size_t len)
 
void render (const point &, const wchar_t *, std::size_t len, unsigned space_pixels, mode)
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
truncate_with_ellipsis 
truncate_letter_with_ellipsis 
word_wrap 

Constructor & Destructor Documentation

nana::paint::text_renderer::text_renderer ( graph_reference  graph,
align  ta = align::left 
)

Member Function Documentation

nana::size nana::paint::text_renderer::extent_size ( int  x,
int  y,
const wchar_t *  str,
std::size_t  len,
unsigned  space_pixels 
) const
void nana::paint::text_renderer::render ( const point pos,
const wchar_t *  str,
std::size_t  len 
)
void nana::paint::text_renderer::render ( const point pos,
const wchar_t *  str,
std::size_t  len,
unsigned  space_pixels,
mode  rendering_mode 
)