Canola
0.8.D001
|
#include <pdf.h>
Public Member Functions | |
virtual | ~program_card_functor_image_pdf () |
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_pdf (const std::string &filename) | |
program_card_functor_image_pdf () | |
program_card_functor_image_pdf (const program_card_functor_image_pdf &rhs) | |
program_card_functor_image_pdf & | operator= (const program_card_functor_image_pdf &rhs) |
Private Attributes | |
std::string | filename |
Cairo::RefPtr< Cairo::Surface > | img |
Cairo::RefPtr< Cairo::Context > | cr |
The program_card_functor_image_pdf class is used to represent the processing required to draw program card images into a PDF file.
program_card_functor_image_pdf::program_card_functor_image_pdf | ( | const std::string & | filename | ) | [private] |
The default constructor. Do not use.
program_card_functor_image_pdf::program_card_functor_image_pdf | ( | const program_card_functor_image_pdf & | 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_pdf::create | ( | const std::string & | filename | ) | [static] |
void program_card_functor_image_pdf::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_pdf& program_card_functor_image_pdf::operator= | ( | const program_card_functor_image_pdf & | rhs | ) | [private] |
The assignment operator. Do not use.
rhs | The right hand side of the assignment. |
Cairo::RefPtr<Cairo::Context> program_card_functor_image_pdf::cr [private] |
std::string program_card_functor_image_pdf::filename [private] |
Cairo::RefPtr<Cairo::Surface> program_card_functor_image_pdf::img [private] |