summaryrefslogtreecommitdiff
path: root/src/c_fl_printer.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-12-29 23:51:07 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-12-29 23:51:07 +1300
commitb870f2a1e8fcb956ce316e6a600d7d0625604830 (patch)
tree1baa64b41151cdd956666c37eeabc9867b69b47c /src/c_fl_printer.cpp
parent42fff9f52462823b3cb315476fd9d67d4e7fc075 (diff)
Revised FLTK.Devices.Surface subhierarchy
Diffstat (limited to 'src/c_fl_printer.cpp')
-rw-r--r--src/c_fl_printer.cpp167
1 files changed, 163 insertions, 4 deletions
diff --git a/src/c_fl_printer.cpp b/src/c_fl_printer.cpp
index 84826e6..9967678 100644
--- a/src/c_fl_printer.cpp
+++ b/src/c_fl_printer.cpp
@@ -12,6 +12,8 @@
+// Flattened C API
+
PRINTER new_fl_printer(void) {
Fl_Printer *p = new Fl_Printer();
return p;
@@ -24,12 +26,167 @@ void free_fl_printer(PRINTER p) {
+const char * fl_printer_get_dialog_title() {
+ return Fl_Printer::dialog_title;
+}
+
+void fl_printer_set_dialog_title(const char * v) {
+ Fl_Printer::dialog_title = v;
+}
+
+const char * fl_printer_get_dialog_printer() {
+ return Fl_Printer::dialog_printer;
+}
+
+void fl_printer_set_dialog_printer(const char * v) {
+ Fl_Printer::dialog_printer = v;
+}
+
+const char * fl_printer_get_dialog_range() {
+ return Fl_Printer::dialog_range;
+}
+
+void fl_printer_set_dialog_range(const char * v) {
+ Fl_Printer::dialog_range = v;
+}
+
+const char * fl_printer_get_dialog_copies() {
+ return Fl_Printer::dialog_copies;
+}
+
+void fl_printer_set_dialog_copies(const char * v) {
+ Fl_Printer::dialog_copies = v;
+}
+
+const char * fl_printer_get_dialog_all() {
+ return Fl_Printer::dialog_all;
+}
+
+void fl_printer_set_dialog_all(const char * v) {
+ Fl_Printer::dialog_all = v;
+}
+
+const char * fl_printer_get_dialog_pages() {
+ return Fl_Printer::dialog_pages;
+}
+
+void fl_printer_set_dialog_pages(const char * v) {
+ Fl_Printer::dialog_pages = v;
+}
+
+const char * fl_printer_get_dialog_from() {
+ return Fl_Printer::dialog_from;
+}
+
+void fl_printer_set_dialog_from(const char * v) {
+ Fl_Printer::dialog_from = v;
+}
+
+const char * fl_printer_get_dialog_to() {
+ return Fl_Printer::dialog_to;
+}
+
+void fl_printer_set_dialog_to(const char * v) {
+ Fl_Printer::dialog_to = v;
+}
+
+const char * fl_printer_get_dialog_properties() {
+ return Fl_Printer::dialog_properties;
+}
+
+void fl_printer_set_dialog_properties(const char * v) {
+ Fl_Printer::dialog_properties = v;
+}
+
+const char * fl_printer_get_dialog_copyno() {
+ return Fl_Printer::dialog_copyNo;
+}
+
+void fl_printer_set_dialog_copyno(const char * v) {
+ Fl_Printer::dialog_copyNo = v;
+}
+
+const char * fl_printer_get_dialog_print_button() {
+ return Fl_Printer::dialog_print_button;
+}
+
+void fl_printer_set_dialog_print_button(const char * v) {
+ Fl_Printer::dialog_print_button = v;
+}
+
+const char * fl_printer_get_dialog_cancel_button() {
+ return Fl_Printer::dialog_cancel_button;
+}
+
+void fl_printer_set_dialog_cancel_button(const char * v) {
+ Fl_Printer::dialog_cancel_button = v;
+}
+
+const char * fl_printer_get_dialog_print_to_file() {
+ return Fl_Printer::dialog_print_to_file;
+}
+
+void fl_printer_set_dialog_print_to_file(const char * v) {
+ Fl_Printer::dialog_print_to_file = v;
+}
+
+const char * fl_printer_get_property_title() {
+ return Fl_Printer::property_title;
+}
+
+void fl_printer_set_property_title(const char * v) {
+ Fl_Printer::property_title = v;
+}
+
+const char * fl_printer_get_property_pagesize() {
+ return Fl_Printer::property_pagesize;
+}
+
+void fl_printer_set_property_pagesize(const char * v) {
+ Fl_Printer::property_pagesize = v;
+}
+
+const char * fl_printer_get_property_mode() {
+ return Fl_Printer::property_mode;
+}
+
+void fl_printer_set_property_mode(const char * v) {
+ Fl_Printer::property_mode = v;
+}
+
+const char * fl_printer_get_property_use() {
+ return Fl_Printer::property_use;
+}
+
+void fl_printer_set_property_use(const char * v) {
+ Fl_Printer::property_use = v;
+}
+
+const char * fl_printer_get_property_save() {
+ return Fl_Printer::property_save;
+}
+
+void fl_printer_set_property_save(const char * v) {
+ Fl_Printer::property_save = v;
+}
+
+const char * fl_printer_get_property_cancel() {
+ return Fl_Printer::property_cancel;
+}
+
+void fl_printer_set_property_cancel(const char * v) {
+ Fl_Printer::property_cancel = v;
+}
+
+
+
+
int fl_printer_start_job(PRINTER p, int c) {
- return reinterpret_cast<Fl_Printer*>(p)->start_job(c,0,0);
+ return reinterpret_cast<Fl_Printer*>(p)->start_job(c, 0, 0);
}
-int fl_printer_start_job2(PRINTER p, int c, int f, int t) {
- return reinterpret_cast<Fl_Printer*>(p)->start_job(c,&f,&t);
+int fl_printer_start_job2(PRINTER p, int c, int * f, int * t) {
+ return reinterpret_cast<Fl_Printer*>(p)->start_job(c, f, t);
}
void fl_printer_end_job(PRINTER p) {
@@ -86,7 +243,9 @@ void fl_printer_print_widget(PRINTER p, void * i, int dx, int dy) {
reinterpret_cast<Fl_Printer*>(p)->print_widget(reinterpret_cast<Fl_Widget*>(i),dx,dy);
}
-void fl_printer_print_window_part(PRINTER p, void * i, int x, int y, int w, int h, int dx, int dy) {
+void fl_printer_print_window_part(PRINTER p, void * i, int x, int y,
+ int w, int h, int dx, int dy)
+{
reinterpret_cast<Fl_Printer*>(p)->print_window_part(reinterpret_cast<Fl_Window*>(i),x,y,w,h,dx,dy);
}