Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::element::bground Class Reference
Inheritance diagram for nana::element::bground:
nana::element::element_interface nana::element::detail::element_abstract

Classes

struct  draw_graph
 
struct  draw_image
 
struct  draw_method
 
struct  implementation
 

Public Types

typedef paint::graphicsgraph_reference
 
- Public Types inherited from nana::element::detail::element_abstract
using graph_reference = ::nana::paint::graphics &
 

Public Member Functions

 bground ()
 
 bground (const bground &)
 
 ~bground ()
 
bgroundoperator= (const bground &)
 
bgroundimage (const paint::image &, bool vertical, const nana::rectangle &valid_area)
 Set a picture for the background. More...
 
bgroundimage (const paint::graphics &, bool vertical, const nana::rectangle &valid_area)
 Set a picture for the background. More...
 
void states (const std::vector< element_state > &)
 Set the state sequence of the background picture. More...
 
void states (std::vector< element_state > &&)
 Set the state sequence of the background picture. More...
 
void reset_states ()
 
void join (element_state target, element_state joiner)
 
void stretch_parts (unsigned left, unsigned top, unsigned right, unsigned bottom)
 
virtual bool draw (graph_reference, const nana::color &bgcolor, const nana::color &fgcolor, const nana::rectangle &, element_state)
 
- Public Member Functions inherited from nana::element::detail::element_abstract
virtual ~element_abstract ()=default
 

Detailed Description

Examples:
example.button.cpp.

Member Typedef Documentation

Constructor & Destructor Documentation

nana::element::bground::bground ( )
nana::element::bground::bground ( const bground rhs)
nana::element::bground::~bground ( )

Member Function Documentation

bool nana::element::bground::draw ( graph_reference  ,
const nana::color bgcolor,
const nana::color fgcolor,
const nana::rectangle ,
element_state   
)
virtual
bground & nana::element::bground::image ( const paint::image img,
bool  vertical,
const nana::rectangle valid_area 
)

Set a picture for the background.

bground & nana::element::bground::image ( const paint::graphics graph,
bool  vertical,
const nana::rectangle valid_area 
)

Set a picture for the background.

void nana::element::bground::join ( element_state  target,
element_state  joiner 
)
bground & nana::element::bground::operator= ( const bground rhs)
void nana::element::bground::reset_states ( )
void nana::element::bground::states ( const std::vector< element_state > &  s)

Set the state sequence of the background picture.

void nana::element::bground::states ( std::vector< element_state > &&  s)

Set the state sequence of the background picture.

void nana::element::bground::stretch_parts ( unsigned  left,
unsigned  top,
unsigned  right,
unsigned  bottom 
)