diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-04-23 23:32:21 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-04-23 23:32:21 +0100 |
commit | 974a4a21e16a2da85a66aae9b80eeca15ca26dd6 (patch) | |
tree | 4433113896c8f5aec5a3f4130b50f9a73075907c /render/html_internal.h | |
parent | cdd53bcffb00819360b3e62ef41de6607aca2c76 (diff) | |
download | netsurf-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 'render/html_internal.h')
-rw-r--r-- | render/html_internal.h | 6 |
1 files changed, 5 insertions, 1 deletions
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; |