diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-29 07:42:30 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-29 07:42:30 +0300 |
commit | 4deb72ba6ea6c055dff69d74669887f30ea01e54 (patch) | |
tree | ea9b9645b38367afabaa66637c15d9a1cd0c3374 /src/gmdocument.h | |
parent | d921021132367076cd2a5f120b3a49db6e29acf7 (diff) |
Showing and hiding image content
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); | ||