summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-01-31 13:02:55 +0000
committerManolo Gouy <Manolo>2011-01-31 13:02:55 +0000
commit1993f08a33c95167b7a90579ffb178c6af625086 (patch)
tree8ec047c804cffff019350e75d9a68cffa7b52b8d /FL
parent2c5006563f893723f0f224d7b3115e5fd03272ca (diff)
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
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Paged_Device.H11
-rw-r--r--FL/Fl_Printer.H3
2 files changed, 7 insertions, 7 deletions
diff --git a/FL/Fl_Paged_Device.H b/FL/Fl_Paged_Device.H
index 99ac9e332..05db7fda5 100644
--- a/FL/Fl_Paged_Device.H
+++ b/FL/Fl_Paged_Device.H
@@ -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);};
diff --git a/FL/Fl_Printer.H b/FL/Fl_Printer.H
index 66ae5e677..092bec18f 100644
--- a/FL/Fl_Printer.H
+++ b/FL/Fl_Printer.H
@@ -164,6 +164,9 @@ public:
void untranslate(void);
int end_page (void);
void end_job (void);
+#ifdef __APPLE__
+ void add_image(const uchar *data);
+#endif
/** \brief The destructor */
~Fl_Printer(void);