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

Public Types

enum  state_t { state_t::normal, state_t::highlighted, state_t::selected }
 

Public Member Functions

 item_renderer (nana::paint::graphics &graph, unsigned scale, const ::nana::color &bgcolor, const ::nana::color &fgcolor)
 
void operator() (int x, int y, unsigned width, unsigned height, item_type &item, state_t state)
 

Static Public Attributes

static const unsigned extra_size = 6
 

Protected Attributes

nana::paint::graphicsgraph
 
unsigned scale
 
::nana::color bgcolor
 
::nana::color fgcolor
 

Member Enumeration Documentation

Enumerator
normal 
highlighted 
selected 

Constructor & Destructor Documentation

nana::drawerbase::toolbar::item_renderer::item_renderer ( nana::paint::graphics graph,
unsigned  scale,
const ::nana::color bgcolor,
const ::nana::color fgcolor 
)
inline

Member Function Documentation

void nana::drawerbase::toolbar::item_renderer::operator() ( int  x,
int  y,
unsigned  width,
unsigned  height,
item_type item,
state_t  state 
)
inline

Member Data Documentation

::nana::color nana::drawerbase::toolbar::item_renderer::bgcolor
protected
const unsigned nana::drawerbase::toolbar::item_renderer::extra_size = 6
static
::nana::color nana::drawerbase::toolbar::item_renderer::fgcolor
protected
nana::paint::graphics& nana::drawerbase::toolbar::item_renderer::graph
protected
unsigned nana::drawerbase::toolbar::item_renderer::scale
protected