summaryrefslogtreecommitdiff
path: root/src/c_fl_paged_device.h
blob: f83dbaa9142a5855123fe41f705cb7a9b19d5c44 (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


#ifndef FL_PAGED_DEVICE_GUARD
#define FL_PAGED_DEVICE_GUARD




typedef void* PAGED_DEVICE;




extern "C" inline PAGED_DEVICE new_fl_paged_device(void);
extern "C" inline void free_fl_paged_device(PAGED_DEVICE p);




extern "C" inline int fl_paged_device_start_job(PAGED_DEVICE p, int c);
extern "C" inline int fl_paged_device_start_job2(PAGED_DEVICE p, int c, int f, int t);
extern "C" inline void fl_paged_device_end_job(PAGED_DEVICE p);
extern "C" inline int fl_paged_device_start_page(PAGED_DEVICE p);
extern "C" inline int fl_paged_device_end_page(PAGED_DEVICE p);


extern "C" inline void fl_paged_device_margins(PAGED_DEVICE p, int * l, int * t, int * r, int * b);
extern "C" inline int fl_paged_device_printable_rect(PAGED_DEVICE p, int * w, int * h);
extern "C" inline void fl_paged_device_get_origin(PAGED_DEVICE p, int * x, int * y);
extern "C" inline void fl_paged_device_set_origin(PAGED_DEVICE p, int x, int y);
extern "C" inline void fl_paged_device_rotate(PAGED_DEVICE p, float r);
extern "C" inline void fl_paged_device_scale(PAGED_DEVICE p, float x, float y);
extern "C" inline void fl_paged_device_translate(PAGED_DEVICE p, int x, int y);
extern "C" inline void fl_paged_device_untranslate(PAGED_DEVICE p);


extern "C" inline void fl_paged_device_print_widget(PAGED_DEVICE p, void * i, int dx, int dy);
extern "C" inline void fl_paged_device_print_window(PAGED_DEVICE p, void * i, int dx, int dy);
extern "C" inline void fl_paged_device_print_window_part(PAGED_DEVICE p, void * i, int x, int y, int w, int h, int dx, int dy);


#endif