Canola
0.8.D001
|
#include <ps.h>
Public Member Functions | |
virtual | ~program_card_functor_image_ps () |
void | operator() (unsigned card_num, unsigned card_count, const unsigned char *data, size_t data_size) |
Static Public Member Functions | |
static pointer | create (const std::string &filename) |
Private Member Functions | |
program_card_functor_image_ps (const std::string &filename) | |
program_card_functor_image_ps () | |
program_card_functor_image_ps (const program_card_functor_image_ps &rhs) | |
program_card_functor_image_ps & | operator= (const program_card_functor_image_ps &rhs) |
Private Attributes | |
std::string | filename |
Cairo::RefPtr< Cairo::Surface > | img |
Cairo::RefPtr< Cairo::Context > | cr |
The program_card_functor_image_ps class is used to represent the processing required to draw program card images into a PostScript file.
program_card_functor_image_ps::program_card_functor_image_ps | ( | const std::string & | filename | ) | [private] |
The default constructor. Do not use.
program_card_functor_image_ps::program_card_functor_image_ps | ( | const program_card_functor_image_ps & | rhs | ) | [private] |
The copy constructor. Do not use.
rhs | The right hand side of the initialization. |
program_card_functor_image::pointer program_card_functor_image_ps::create | ( | const std::string & | filename | ) | [static] |
void program_card_functor_image_ps::operator() | ( | unsigned | card_num, |
unsigned | card_count, | ||
const unsigned char * | data, | ||
size_t | data_size | ||
) | [virtual] |
The function call operator is overloaded to implement the functionality (that's why it's called a functor).
card_num | The number of the card within the set (1 based). |
card_count | The number of cards in the set. |
data | The base of the array of bytes containing the program. |
data_size | The number of bytes in this card image (> 0, <= 40). |
Implements program_card_functor.
program_card_functor_image_ps& program_card_functor_image_ps::operator= | ( | const program_card_functor_image_ps & | rhs | ) | [private] |
The assignment operator. Do not use.
rhs | The right hand side of the assignment. |
Cairo::RefPtr<Cairo::Context> program_card_functor_image_ps::cr [private] |
std::string program_card_functor_image_ps::filename [private] |
Cairo::RefPtr<Cairo::Surface> program_card_functor_image_ps::img [private] |