23#ifndef Fl_Paged_Device_H
24#define Fl_Paged_Device_H
30#define NO_PAGE_FORMATS 30
40 friend class Fl_Copy_Surface;
41 friend class Fl_Image_Surface;
115#if FLTK_ABI_VERSION >= 10301
124 static const char *class_id;
126 virtual int start_job(
int pagecount,
int *frompage = NULL,
int *topage = NULL);
127 virtual int start_page(
void);
128 virtual int printable_rect(
int *w,
int *h);
129 virtual void margins(
int *left,
int *top,
int *right,
int *bottom);
130 virtual void origin(
int x,
int y);
131 virtual void origin(
int *x,
int *y);
132 virtual void scale(
float scale_x,
float scale_y = 0.);
133 virtual void rotate(
float angle);
134 virtual void translate(
int x,
int y);
135 virtual void untranslate(
void);
136 virtual void print_widget(
Fl_Widget* widget,
int delta_x = 0,
int delta_y = 0);
declaration of classes Fl_Device, Fl_Graphics_Driver, Fl_Surface_Device, Fl_Display_Device,...
#define NO_PAGE_FORMATS
Number of elements in enum Page_Format.
Definition Fl_Paged_Device.H:30
Represents page-structured drawing surfaces.
Definition Fl_Paged_Device.H:38
virtual ~Fl_Paged_Device()
The destructor.
Definition Fl_Paged_Device.H:118
int y_offset
vertical offset to the origin of graphics coordinates
Definition Fl_Paged_Device.H:112
void print_window(Fl_Window *win, int x_offset=0, int y_offset=0)
Prints a window with its title bar and frame if any.
const char * class_name()
Returns the name of the class of this object.
Definition Fl_Paged_Device.H:125
virtual void print_window_part(Fl_Window *win, int x, int y, int w, int h, int delta_x=0, int delta_y=0)
Prints a rectangular part of an on-screen window.
Definition Fl_Paged_Device.cxx:129
virtual int end_page(void)
To be called at the end of each page.
Definition Fl_Paged_Device.cxx:235
Fl_Paged_Device()
The constructor.
Definition Fl_Paged_Device.H:114
Page_Layout
Possible page layouts.
Definition Fl_Paged_Device.H:86
@ REVERSED
Reversed orientation.
Definition Fl_Paged_Device.H:89
@ ORIENTATION
orientation
Definition Fl_Paged_Device.H:90
@ PORTRAIT
Portrait orientation.
Definition Fl_Paged_Device.H:87
@ LANDSCAPE
Landscape orientation.
Definition Fl_Paged_Device.H:88
int x_offset
horizontal offset to the origin of graphics coordinates
Definition Fl_Paged_Device.H:110
Page_Format
Possible page formats.
Definition Fl_Paged_Device.H:50
@ A4
A4 format.
Definition Fl_Paged_Device.H:55
@ LETTER
Letter format.
Definition Fl_Paged_Device.H:78
@ A0
A0 format.
Definition Fl_Paged_Device.H:51
virtual void end_job(void)
To be called at the end of a print job.
Definition Fl_Paged_Device.cxx:240
static const page_format page_formats[NO_PAGE_FORMATS]
width, height and name of all elements of the enum Page_Format.
Definition Fl_Paged_Device.H:256
Fl_Surface_Device(Fl_Graphics_Driver *graphics_driver)
Constructor that sets the graphics driver to use for the created surface.
Definition Fl_Device.H:563
This widget produces an actual window.
Definition Fl_Window.H:57
width, height and name of a page format
Definition Fl_Paged_Device.H:95
int width
width in points
Definition Fl_Paged_Device.H:97
int height
height in points
Definition Fl_Paged_Device.H:99
const char * name
format name
Definition Fl_Paged_Device.H:101