diff options
Diffstat (limited to 'src/gmdocument.h')
-rw-r--r-- | src/gmdocument.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gmdocument.h b/src/gmdocument.h index c619c47b..584efb5a 100644 --- a/src/gmdocument.h +++ b/src/gmdocument.h | |||
@@ -19,6 +19,15 @@ enum iGmLinkFlags { | |||
19 | file_GmLinkFlag = 0x10, | 19 | file_GmLinkFlag = 0x10, |
20 | imageFileExtension_GmLinkFlag = 0x20, | 20 | imageFileExtension_GmLinkFlag = 0x20, |
21 | audioFileExtension_GmLinkFlag = 0x40, | 21 | audioFileExtension_GmLinkFlag = 0x40, |
22 | content_GmLinkFlag = 0x80, /* content visible below */ | ||
23 | }; | ||
24 | |||
25 | iDeclareType(GmImageInfo) | ||
26 | |||
27 | struct Impl_GmImageInfo { | ||
28 | iInt2 size; | ||
29 | size_t numBytes; | ||
30 | const char *mime; | ||
22 | }; | 31 | }; |
23 | 32 | ||
24 | struct Impl_GmRun { | 33 | struct Impl_GmRun { |
@@ -61,9 +70,11 @@ const iGmRun * findRun_GmDocument (const iGmDocument *, iInt2 pos); | |||
61 | const char * findLoc_GmDocument (const iGmDocument *, iInt2 pos); | 70 | const char * findLoc_GmDocument (const iGmDocument *, iInt2 pos); |
62 | const iGmRun * findRunAtLoc_GmDocument (const iGmDocument *, const char *loc); | 71 | const iGmRun * findRunAtLoc_GmDocument (const iGmDocument *, const char *loc); |
63 | const iString * linkUrl_GmDocument (const iGmDocument *, iGmLinkId linkId); | 72 | const iString * linkUrl_GmDocument (const iGmDocument *, iGmLinkId linkId); |
73 | uint16_t linkImage_GmDocument (const iGmDocument *, iGmLinkId linkId); | ||
64 | int linkFlags_GmDocument (const iGmDocument *, iGmLinkId linkId); | 74 | int linkFlags_GmDocument (const iGmDocument *, iGmLinkId linkId); |
65 | enum iColorId linkColor_GmDocument (const iGmDocument *, iGmLinkId linkId); | 75 | enum iColorId linkColor_GmDocument (const iGmDocument *, iGmLinkId linkId); |
66 | iBool isMediaLink_GmDocument (const iGmDocument *, iGmLinkId linkId); | 76 | iBool isMediaLink_GmDocument (const iGmDocument *, iGmLinkId linkId); |
67 | const iString * title_GmDocument (const iGmDocument *); | 77 | const iString * title_GmDocument (const iGmDocument *); |
68 | 78 | ||
69 | SDL_Texture * imageTexture_GmDocument (const iGmDocument *, uint16_t imageId); | 79 | SDL_Texture * imageTexture_GmDocument (const iGmDocument *, uint16_t imageId); |
80 | void imageInfo_GmDocument (const iGmDocument *, uint16_t imageId, iGmImageInfo *info_out); | ||