diff options
author | Jed Barber <jjbarber@y7mail.com> | 2018-03-25 00:28:55 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2018-03-25 00:28:55 +1100 |
commit | 7c8cb6a77c65c14421abaa8882e153e90e725166 (patch) | |
tree | c3eabe0caf2bdb0f77ce73d9cc67569618c824df /src/c_fl_paged_device.h | |
parent | 5aa2cbc50e016fd833b35603c73b0a88692607f3 (diff) |
Added FLTK.Devices.Surfaces.Paged
Diffstat (limited to 'src/c_fl_paged_device.h')
-rw-r--r-- | src/c_fl_paged_device.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/c_fl_paged_device.h b/src/c_fl_paged_device.h new file mode 100644 index 0000000..0d4a7f1 --- /dev/null +++ b/src/c_fl_paged_device.h @@ -0,0 +1,43 @@ + + +#ifndef FL_PAGED_DEVICE_GUARD +#define FL_PAGED_DEVICE_GUARD + + + + +typedef void* PAGED_DEVICE; + + + + +extern "C" PAGED_DEVICE new_fl_paged_device(void); +extern "C" void free_fl_paged_device(PAGED_DEVICE p); + + + + +extern "C" int fl_paged_device_start_job(PAGED_DEVICE p, int c); +extern "C" int fl_paged_device_start_job2(PAGED_DEVICE p, int c, int f, int t); +extern "C" void fl_paged_device_end_job(PAGED_DEVICE p); +extern "C" int fl_paged_device_start_page(PAGED_DEVICE p); +extern "C" int fl_paged_device_end_page(PAGED_DEVICE p); + + +extern "C" void fl_paged_device_margins(PAGED_DEVICE p, int * l, int * t, int * r, int * b); +extern "C" int fl_paged_device_printable_rect(PAGED_DEVICE p, int * w, int * h); +extern "C" void fl_paged_device_get_origin(PAGED_DEVICE p, int * x, int * y); +extern "C" void fl_paged_device_set_origin(PAGED_DEVICE p, int x, int y); +extern "C" void fl_paged_device_rotate(PAGED_DEVICE p, float r); +extern "C" void fl_paged_device_scale(PAGED_DEVICE p, float x, float y); +extern "C" void fl_paged_device_translate(PAGED_DEVICE p, int x, int y); +extern "C" void fl_paged_device_untranslate(PAGED_DEVICE p); + + +extern "C" void fl_paged_device_print_widget(PAGED_DEVICE p, void * i, int dx, int dy); +extern "C" void fl_paged_device_print_window(PAGED_DEVICE p, void * i, int dx, int dy); +extern "C" 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 + |