Canola  0.8.D001
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
program_card_functor_image_pixbuf Class Reference

#include <pixbuf.h>

Inheritance diagram for program_card_functor_image_pixbuf:
program_card_functor_image program_card_functor

List of all members.

Public Types

typedef Glib::RefPtr< Gdk::Pixbuf > pixbuf_ptr_t
typedef std::vector< pixbuf_ptr_tresult_t

Public Member Functions

virtual ~program_card_functor_image_pixbuf ()
void operator() (unsigned card_num, unsigned card_count, const unsigned char *data, size_t data_size)

Static Public Member Functions

static pointer create (result_t &result, double dpi)

Private Member Functions

 program_card_functor_image_pixbuf (result_t &result, double dpi)
 program_card_functor_image_pixbuf ()
 program_card_functor_image_pixbuf (const program_card_functor_image_pixbuf &rhs)
program_card_functor_image_pixbufoperator= (const program_card_functor_image_pixbuf &rhs)

Private Attributes

result_tresult
double dots_per_inch

Detailed Description

The program_card_functor_image_pixbuf class is used to represent the processing required to build a set of pixbufs from a program.

Definition at line 30 of file pixbuf.h.


Member Typedef Documentation

typedef Glib::RefPtr<Gdk::Pixbuf> program_card_functor_image_pixbuf::pixbuf_ptr_t

Definition at line 39 of file pixbuf.h.

Definition at line 41 of file pixbuf.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 21 of file pixbuf.cc.

The constructor. It is private on purpose, use the create class method instead.

Parameters:
resultWhere to place the images once they have been created.
dpiThe resolution of the containing window, dots per inch

Definition at line 26 of file pixbuf.cc.

The default constructor. Do not use.

The copy constructor. Do not use.

Parameters:
rhsThe right hand side of the initialization.

Member Function Documentation

The create class method is used to create a new dynamically allocated instance of this class.

Parameters:
resultWhere to place the images once they have been created.
dpiThe resolution of the containing window, dots per inch
Returns:
a managed pointer to a new instance of this class.

Definition at line 37 of file pixbuf.cc.

void program_card_functor_image_pixbuf::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).

Parameters:
card_numThe number of the card within the set (1 based).
card_countThe number of cards in the set.
dataThe base of the array of bytes containing the program.
data_sizeThe number of bytes in this card image (> 0, <= 40).

Implements program_card_functor.

Definition at line 44 of file pixbuf.cc.

program_card_functor_image_pixbuf& program_card_functor_image_pixbuf::operator= ( const program_card_functor_image_pixbuf rhs) [private]

The assignment operator. Do not use.

Parameters:
rhsThe right hand side of the assignment.

Member Data Documentation

Definition at line 73 of file pixbuf.h.

Definition at line 72 of file pixbuf.h.


The documentation for this class was generated from the following files: