Added Fl_Printer::add_image(const ichar*) needed for correct memory usage by

Fl_Paged_Device::print_window_part().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8341 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2011-01-31 13:02:55 +00:00
parent 2c5006563f
commit 1993f08a33
5 changed files with 16 additions and 12 deletions
+4 -7
View File
@@ -108,26 +108,23 @@ public:
*/
static const page_format page_formats[NO_PAGE_FORMATS];
private:
#ifdef __APPLE__
struct chain_elt {
Fl_Image *image;
const uchar *data;
struct chain_elt *next;
};
void add_image(Fl_Image *image, const uchar *data); // adds an image to the page image list
#endif
private:
void traverse(Fl_Widget *widget); // finds subwindows of widget and prints them
protected:
/** \brief horizontal offset to the origin of graphics coordinates */
int x_offset;
/** \brief vertical offset to the origin of graphics coordinates */
int y_offset;
/** \brief chained list of Fl_Image's used in this page */
struct chain_elt *image_list_;
#ifdef __APPLE__
/** \brief deletes the page image list */
void delete_image_list();
struct chain_elt *image_list_; // chained list of images used in this page
virtual void add_image(const uchar *data); // adds an image to the page image list
void delete_image_list(); // deletes the page image list
#endif
/** \brief The constructor */
Fl_Paged_Device() : Fl_Surface_Device(NULL) {class_name( class_id);};