1 #ifndef TEXTDT_AG_EXTENSION_H
2 #define TEXTDT_AG_EXTENSION_H
4 #define AG_LINK_ADDWIDTH 2
7 /* setup amigaguide specific text.datatype instance fields */
8 void PrepareAGExtension(struct Text_Data
*td
);
10 /* draw amigaguide link */
11 void DrawLineBevel(struct Text_Data
*td
, struct RastPort
*rp
,
12 struct Line
*line
, BOOL text
);
14 /* check and adjust marked link line to new y top pos */
15 BOOL
CheckMarkedLink(struct Text_Data
*td
, LONG y
);
17 /* handles mouse event for amigaguide links. Returns 1 if the
18 event belongs to a link, 0 otherwise. */
19 int HandleMouseLink(struct Text_Data
*td
, struct RastPort
*rp
,
20 LONG x
, LONG y
, LONG code
);
22 /* send double clicked word to object */
23 void TriggerWord(struct Text_Data
*td
, UBYTE
*word
);
25 /* handle amigaguide specific trigger functions */
26 void Text__DTM_TRIGGER(struct IClass
*cl
, Object
*o
, struct dtTrigger
*msg
);