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

Classes

struct  pixel_buffer_storage
 

Public Member Functions

 pixel_buffer ()=default
 
 pixel_buffer (drawable_type, const nana::rectangle &want_rectangle)
 
 pixel_buffer (drawable_type, std::size_t top, std::size_t lines)
 
 pixel_buffer (std::size_t width, std::size_t height)
 
 ~pixel_buffer ()
 
void attach (drawable_type, const nana::rectangle &want_rectangle)
 
bool open (drawable_type)
 
bool open (drawable_type, const nana::rectangle &want_rectangle)
 
bool open (std::size_t width, std::size_t height)
 
void alpha_channel (bool enabled)
 
bool alpha_channel () const
 
void close ()
 
bool empty () const
 
 operator unspecified_bool_t () const
 
std::size_t bytes () const
 
std::size_t bytes_per_line () const
 
nana::size size () const
 
pixel_color_tat (const point &pos) const
 
pixel_color_traw_ptr (std::size_t row) const
 
pixel_color_toperator[] (std::size_t row) const
 
void fill_row (std::size_t row, const unsigned char *buffer, std::size_t bytes, unsigned bits_per_pixel)
 
void put (const unsigned char *rawbits, std::size_t width, std::size_t height, std::size_t bits_per_pixel, std::size_t bytes_per_line, bool is_negative)
 
void line (const std::string &name)
 
void line (const ::nana::point &pos_beg, const ::nana::point &pos_end, const ::nana::color &, double fade_rate)
 
void rectangle (const nana::rectangle &, const ::nana::color &, double fade_rate, bool solid)
 
void gradual_rectangle (const ::nana::rectangle &, const ::nana::color &from, const ::nana::color &to, double fade_rate, bool vertical)
 
pixel_color_t pixel (int x, int y) const
 
void pixel (int x, int y, pixel_color_t)
 
void paste (drawable_type, const point &p_dst) const
 
void paste (const nana::rectangle &s_r, drawable_type, const point &p_dst) const
 
void paste (native_window_type, const point &p_dst) const
 
void stretch (const std::string &name)
 
void stretch (const nana::rectangle &s_r, drawable_type, const nana::rectangle &r) const
 
void blend (const std::string &name)
 
void blend (const nana::rectangle &s_r, drawable_type dw_dst, const nana::point &d_pos, double fade_rate) const
 
void blur (const nana::rectangle &r, std::size_t radius)
 
pixel_buffer rotate (double angle, const color &extend_color)
 

Constructor & Destructor Documentation

nana::paint::pixel_buffer::pixel_buffer ( )
default
nana::paint::pixel_buffer::pixel_buffer ( drawable_type  drawable,
const nana::rectangle want_rectangle 
)
nana::paint::pixel_buffer::pixel_buffer ( drawable_type  drawable,
std::size_t  top,
std::size_t  lines 
)
nana::paint::pixel_buffer::pixel_buffer ( std::size_t  width,
std::size_t  height 
)
nana::paint::pixel_buffer::~pixel_buffer ( )

Member Function Documentation

void nana::paint::pixel_buffer::alpha_channel ( bool  enabled)
bool nana::paint::pixel_buffer::alpha_channel ( ) const
pixel_color_t * nana::paint::pixel_buffer::at ( const point pos) const
void nana::paint::pixel_buffer::attach ( drawable_type  ,
const nana::rectangle want_rectangle 
)
void nana::paint::pixel_buffer::blend ( const std::string name)
void nana::paint::pixel_buffer::blend ( const nana::rectangle s_r,
drawable_type  dw_dst,
const nana::point d_pos,
double  fade_rate 
) const
void nana::paint::pixel_buffer::blur ( const nana::rectangle r,
std::size_t  radius 
)
std::size_t nana::paint::pixel_buffer::bytes ( ) const
std::size_t nana::paint::pixel_buffer::bytes_per_line ( ) const
void nana::paint::pixel_buffer::close ( )
bool nana::paint::pixel_buffer::empty ( ) const
void nana::paint::pixel_buffer::fill_row ( std::size_t  row,
const unsigned char *  buffer,
std::size_t  bytes,
unsigned  bits_per_pixel 
)
void nana::paint::pixel_buffer::gradual_rectangle ( const ::nana::rectangle draw_rct,
const ::nana::color from,
const ::nana::color to,
double  fade_rate,
bool  vertical 
)
void nana::paint::pixel_buffer::line ( const std::string name)
void nana::paint::pixel_buffer::line ( const ::nana::point pos_beg,
const ::nana::point pos_end,
const ::nana::color ,
double  fade_rate 
)
bool nana::paint::pixel_buffer::open ( drawable_type  drawable)
bool nana::paint::pixel_buffer::open ( drawable_type  drawable,
const nana::rectangle want_rectangle 
)
bool nana::paint::pixel_buffer::open ( std::size_t  width,
std::size_t  height 
)
nana::paint::pixel_buffer::operator unspecified_bool_t ( ) const
pixel_color_t * nana::paint::pixel_buffer::operator[] ( std::size_t  row) const
void nana::paint::pixel_buffer::paste ( drawable_type  drawable,
const point p_dst 
) const
void nana::paint::pixel_buffer::paste ( const nana::rectangle s_r,
drawable_type  drawable,
const point p_dst 
) const
void nana::paint::pixel_buffer::paste ( native_window_type  wd,
const point p_dst 
) const
pixel_color_t nana::paint::pixel_buffer::pixel ( int  x,
int  y 
) const
void nana::paint::pixel_buffer::pixel ( int  x,
int  y,
pixel_color_t  px 
)
void nana::paint::pixel_buffer::put ( const unsigned char *  rawbits,
std::size_t  width,
std::size_t  height,
std::size_t  bits_per_pixel,
std::size_t  bytes_per_line,
bool  is_negative 
)
pixel_color_t * nana::paint::pixel_buffer::raw_ptr ( std::size_t  row) const
void nana::paint::pixel_buffer::rectangle ( const nana::rectangle r,
const ::nana::color clr,
double  fade_rate,
bool  solid 
)
pixel_buffer nana::paint::pixel_buffer::rotate ( double  angle,
const color extend_color 
)
nana::size nana::paint::pixel_buffer::size ( ) const
void nana::paint::pixel_buffer::stretch ( const std::string name)
void nana::paint::pixel_buffer::stretch ( const nana::rectangle s_r,
drawable_type  drawable,
const nana::rectangle r 
) const