summaryrefslogtreecommitdiff
path: root/src/ui/linkinfo.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-18 16:51:04 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-18 16:51:04 +0200
commit5f7709f0b84e74fde847cdcf02c41990ef037daa (patch)
tree97ff5e11469c0cc957839005e86eb0fae751faa3 /src/ui/linkinfo.h
parentccde1781a07ab418050efdfb00d9231291ce52d8 (diff)
LinkInfo: Improved link metadata popup
Diffstat (limited to 'src/ui/linkinfo.h')
-rw-r--r--src/ui/linkinfo.h13
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
27iDeclareType(LinkInfo) 29iDeclareType(LinkInfo)
28iDeclareTypeConstruction(LinkInfo) 30iDeclareTypeConstruction(LinkInfo)
29 31
30struct Impl_LinkInfo { 32struct Impl_LinkInfo {
33 iGmLinkId linkId;
34 int maxWidth;
31 iTextBuf *buf; 35 iTextBuf *buf;
36 iAnim opacity;
37 iBool isAltPos;
32}; 38};
39
40iBool update_LinkInfo (iLinkInfo *, const iGmDocument *doc, iGmLinkId linkId,
41 int maxWidth); /* returns true if changed */
42void invalidate_LinkInfo (iLinkInfo *);
43
44iInt2 size_LinkInfo (const iLinkInfo *);
45void draw_LinkInfo (const iLinkInfo *, iInt2 topLeft);