From 974a4a21e16a2da85a66aae9b80eeca15ca26dd6 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 23 Apr 2016 23:32:21 +0100 Subject: 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. --- render/html_internal.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'render/html_internal.h') diff --git a/render/html_internal.h b/render/html_internal.h index 419fe41b3..de28726fb 100644 --- a/render/html_internal.h +++ b/render/html_internal.h @@ -27,6 +27,8 @@ #include "desktop/selection.h" #include "render/html.h" +struct gui_layout_table; + typedef enum { HTML_DRAG_NONE, /** No drag */ HTML_DRAG_SELECTION, /** Own; Text selection */ @@ -36,6 +38,7 @@ typedef enum { HTML_DRAG_CONTENT_SELECTION, /** Not own; drag in child content */ HTML_DRAG_CONTENT_SCROLL /** Not own; drag in child content */ } html_drag_type; + union html_drag_owner { bool no_owner; struct box *content; @@ -109,8 +112,9 @@ typedef struct html_content { struct box *layout; /** Document background colour. */ colour background_colour; + /** Font callback table */ - const struct font_functions *font_func; + const struct gui_layout_table *font_func; /** Number of entries in scripts */ unsigned int scripts_count; -- cgit v1.2.3