summaryrefslogtreecommitdiff
path: root/desktop/print.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-23 23:32:21 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-23 23:32:21 +0100
commit974a4a21e16a2da85a66aae9b80eeca15ca26dd6 (patch)
tree4433113896c8f5aec5a3f4130b50f9a73075907c /desktop/print.h
parentcdd53bcffb00819360b3e62ef41de6607aca2c76 (diff)
downloadnetsurf-974a4a21e16a2da85a66aae9b80eeca15ca26dd6.tar.gz
netsurf-974a4a21e16a2da85a66aae9b80eeca15ca26dd6.tar.bz2
split out the layout glyph sizing and splitting API
This refactors the core "font" sizing API to be handled through gui function tables similar to every other core/frontend calling API.
Diffstat (limited to 'desktop/print.h')
-rw-r--r--desktop/print.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/desktop/print.h b/desktop/print.h
index 63c2935f1..5c51981d1 100644
--- a/desktop/print.h
+++ b/desktop/print.h
@@ -38,6 +38,7 @@
struct hlcache_handle;
struct printer;
+struct gui_layout_table;
enum { MARGINLEFT = 0, MARGINRIGHT = 1, MARGINTOP = 2, MARGINBOTTOM = 3};
@@ -60,7 +61,7 @@ struct print_settings{
const char *output;
/*the functions used to measure fonts*/
- const struct font_functions *font_func;
+ const struct gui_layout_table *font_func;
};
@@ -73,8 +74,10 @@ bool print_draw_next_page(const struct printer *printer,
bool print_cleanup(struct hlcache_handle *, const struct printer *,
struct print_settings *settings);
-struct print_settings *print_make_settings(print_configuration configuration,
- const char *url, const struct font_functions *font_func);
+/**
+ * Setup print settings for print render operation.
+ */
+struct print_settings *print_make_settings(print_configuration configuration, const char *url, const struct gui_layout_table *font_func);
/*is the content currently redrawn for printing?*/
extern bool html_redraw_printing;