summaryrefslogtreecommitdiff
path: root/src/c_fl_printer.h
blob: 0ae2499d0bfc7e82099dc4ba2651cc1808d8fb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45


#ifndef FL_PRINTER_GUARD
#define FL_PRINTER_GUARD




typedef void* PRINTER;




extern "C" PRINTER new_fl_printer(void);
extern "C" void free_fl_printer(PRINTER p);




extern "C" int fl_printer_start_job(PRINTER p, int c);
extern "C" int fl_printer_start_job2(PRINTER p, int c, int f, int t);
extern "C" void fl_printer_end_job(PRINTER p);
extern "C" int fl_printer_start_page(PRINTER p);
extern "C" int fl_printer_end_page(PRINTER p);


extern "C" void fl_printer_margins(PRINTER p, int * l, int * t, int * r, int * b);
extern "C" int fl_printer_printable_rect(PRINTER p, int * w, int * h);
extern "C" void fl_printer_get_origin(PRINTER p, int * x, int * y);
extern "C" void fl_printer_set_origin(PRINTER p, int x, int y);
extern "C" void fl_printer_rotate(PRINTER p, float r);
extern "C" void fl_printer_scale(PRINTER p, float x, float y);
extern "C" void fl_printer_translate(PRINTER p, int x, int y);
extern "C" void fl_printer_untranslate(PRINTER p);


extern "C" void fl_printer_print_widget(PRINTER p, void * i, int dx, int dy);
extern "C" void fl_printer_print_window_part(PRINTER p, void * i, int x, int y, int w, int h, int dx, int dy);


extern "C" void fl_printer_set_current(PRINTER p);


#endif