summaryrefslogtreecommitdiff
path: root/src/gmdocument.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmdocument.h')
-rw-r--r--src/gmdocument.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gmdocument.h b/src/gmdocument.h
index e280bef8..b0a7df22 100644
--- a/src/gmdocument.h
+++ b/src/gmdocument.h
@@ -38,7 +38,7 @@ struct Impl_GmImageInfo {
38enum iGmRunFlags { 38enum iGmRunFlags {
39 startOfLine_GmRunFlag = iBit(1), 39 startOfLine_GmRunFlag = iBit(1),
40 endOfLine_GmRunFlag = iBit(2), 40 endOfLine_GmRunFlag = iBit(2),
41 siteBanner_GmRunlag = iBit(3), /* area reserved for the site banner */ 41 siteBanner_GmRunFlag = iBit(3), /* area reserved for the site banner */
42}; 42};
43 43
44struct Impl_GmRun { 44struct Impl_GmRun {
@@ -62,6 +62,7 @@ enum iGmDocumentFormat {
62 plainText_GmDocumentFormat, 62 plainText_GmDocumentFormat,
63}; 63};
64 64
65void setThemeSeed_GmDocument (iGmDocument *, const iBlock *seed);
65void setFormat_GmDocument (iGmDocument *, enum iGmDocumentFormat format); 66void setFormat_GmDocument (iGmDocument *, enum iGmDocumentFormat format);
66void setWidth_GmDocument (iGmDocument *, int width); 67void setWidth_GmDocument (iGmDocument *, int width);
67void setUrl_GmDocument (iGmDocument *, const iString *url); 68void setUrl_GmDocument (iGmDocument *, const iString *url);
@@ -74,6 +75,7 @@ typedef void (*iGmDocumentRenderFunc)(void *, const iGmRun *);
74 75
75void render_GmDocument (const iGmDocument *, iRangei visRangeY, iGmDocumentRenderFunc render, void *); 76void render_GmDocument (const iGmDocument *, iRangei visRangeY, iGmDocumentRenderFunc render, void *);
76iInt2 size_GmDocument (const iGmDocument *); 77iInt2 size_GmDocument (const iGmDocument *);
78iInt2 sizeWithoutBanner_GmDocument (const iGmDocument *);
77 79
78iRangecc findText_GmDocument (const iGmDocument *, const iString *text, const char *start); 80iRangecc findText_GmDocument (const iGmDocument *, const iString *text, const char *start);
79iRangecc findTextBefore_GmDocument (const iGmDocument *, const iString *text, const char *before); 81iRangecc findTextBefore_GmDocument (const iGmDocument *, const iString *text, const char *before);
@@ -88,6 +90,7 @@ enum iColorId linkColor_GmDocument (const iGmDocument *, iGmLinkId linkId);
88const iTime * linkTime_GmDocument (const iGmDocument *, iGmLinkId linkId); 90const iTime * linkTime_GmDocument (const iGmDocument *, iGmLinkId linkId);
89iBool isMediaLink_GmDocument (const iGmDocument *, iGmLinkId linkId); 91iBool isMediaLink_GmDocument (const iGmDocument *, iGmLinkId linkId);
90const iString * title_GmDocument (const iGmDocument *); 92const iString * title_GmDocument (const iGmDocument *);
93iChar siteIcon_GmDocument (const iGmDocument *);
91 94
92SDL_Texture * imageTexture_GmDocument (const iGmDocument *, uint16_t imageId); 95SDL_Texture * imageTexture_GmDocument (const iGmDocument *, uint16_t imageId);
93void imageInfo_GmDocument (const iGmDocument *, uint16_t imageId, iGmImageInfo *info_out); 96void imageInfo_GmDocument (const iGmDocument *, uint16_t imageId, iGmImageInfo *info_out);