aboutsummaryrefslogtreecommitdiff
path: root/liblogdiag/ld-diagram-view.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-25 15:54:24 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-28 05:57:27 +0200
commit4f01392de56f44e33a7e0989a340cced73147a5a (patch)
treeb2c7db8c3269cbf7e83b9d30c1bf37ee8b14f976 /liblogdiag/ld-diagram-view.h
parent6cd6ddbd1c25b9b78aaa0b1690b0ca748e2da810 (diff)
downloadlogdiag-4f01392de56f44e33a7e0989a340cced73147a5a.tar.gz
logdiag-4f01392de56f44e33a7e0989a340cced73147a5a.tar.xz
logdiag-4f01392de56f44e33a7e0989a340cced73147a5a.zip
Add basic print functionality
Sadly, the line width depends on the widget's DPI, which seems to even cause uneven lines on Windows, where virtual printers claim high DPI. It might also be an unrelated problem. Similarly, selected objects are exported highlighted. Other than that, it works quite well. Add a manifest to make the print dialog look nice with the older GTK+ bundle we depend upon. The RC file could theoretically be scanned for /\s+"([^"]+)"\s*$/, unescaped, and the results configure_file()-stamped.
Diffstat (limited to 'liblogdiag/ld-diagram-view.h')
-rw-r--r--liblogdiag/ld-diagram-view.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/liblogdiag/ld-diagram-view.h b/liblogdiag/ld-diagram-view.h
index d107989..f2b0bf9 100644
--- a/liblogdiag/ld-diagram-view.h
+++ b/liblogdiag/ld-diagram-view.h
@@ -2,7 +2,7 @@
* ld-diagram-view.h
*
* This file is a part of logdiag.
- * Copyright 2010, 2011 Přemysl Eric Janouch
+ * Copyright 2010 - 2021 Přemysl Eric Janouch
*
* See the file LICENSE for licensing information.
*
@@ -96,6 +96,11 @@ void ld_diagram_view_set_show_grid (LdDiagramView *self, gboolean show_grid);
void ld_diagram_view_add_object_begin (LdDiagramView *self,
LdDiagramObject *object);
+gdouble ld_diagram_view_get_export_bounds (LdDiagramView *self,
+ LdRectangle *rect);
+void ld_diagram_view_export (LdDiagramView *self,
+ cairo_t *cr, const LdRectangle *clip);
+
G_END_DECLS