diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-18 16:51:04 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-18 16:51:04 +0200 |
commit | 5f7709f0b84e74fde847cdcf02c41990ef037daa (patch) | |
tree | 97ff5e11469c0cc957839005e86eb0fae751faa3 /src/ui/linkinfo.h | |
parent | ccde1781a07ab418050efdfb00d9231291ce52d8 (diff) |
LinkInfo: Improved link metadata popup
Diffstat (limited to 'src/ui/linkinfo.h')
-rw-r--r-- | src/ui/linkinfo.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ui/linkinfo.h b/src/ui/linkinfo.h index dbedf359..a1669f95 100644 --- a/src/ui/linkinfo.h +++ b/src/ui/linkinfo.h | |||
@@ -23,10 +23,23 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | |||
23 | #pragma once | 23 | #pragma once |
24 | 24 | ||
25 | #include "text.h" | 25 | #include "text.h" |
26 | #include "util.h" | ||
27 | #include "../gmdocument.h" | ||
26 | 28 | ||
27 | iDeclareType(LinkInfo) | 29 | iDeclareType(LinkInfo) |
28 | iDeclareTypeConstruction(LinkInfo) | 30 | iDeclareTypeConstruction(LinkInfo) |
29 | 31 | ||
30 | struct Impl_LinkInfo { | 32 | struct Impl_LinkInfo { |
33 | iGmLinkId linkId; | ||
34 | int maxWidth; | ||
31 | iTextBuf *buf; | 35 | iTextBuf *buf; |
36 | iAnim opacity; | ||
37 | iBool isAltPos; | ||
32 | }; | 38 | }; |
39 | |||
40 | iBool update_LinkInfo (iLinkInfo *, const iGmDocument *doc, iGmLinkId linkId, | ||
41 | int maxWidth); /* returns true if changed */ | ||
42 | void invalidate_LinkInfo (iLinkInfo *); | ||
43 | |||
44 | iInt2 size_LinkInfo (const iLinkInfo *); | ||
45 | void draw_LinkInfo (const iLinkInfo *, iInt2 topLeft); | ||