2 Copyright © 1999, David Le Corfec.
3 Copyright © 2002-2018, The AROS Development Team.
9 #ifndef _MUI_TEXTENGINE_H__
10 #define _MUI_TEXTENGINE_H__
12 /* This is the clone of the MUI text engine, used by the Text class
13 * and all class needing to draw text strings.
17 struct MUI_ImageSpec_intern
;
19 typedef struct ZTextChunk
{
20 struct MinNode node
; /* embedded node */
23 struct MUI_ImageSpec_intern
*image
;
24 Object
*obj
; /* Area subclass, see List_CreateImage */
25 struct MUI_AlphaData
*alpha_data
;
28 UBYTE style
; /* FSF_UNDERLINED, FSF_BOLD, ... */
33 typedef struct ZTextLine
{
34 struct MinNode node
; /* embedded node */
35 UBYTE align
; /* ZTL_CENTER, ZTL_RIGHT, ZTL_LEFT */
36 struct MinList chunklist
;
42 WORD width
; /* store calculated bounds - read only ! */
49 typedef struct ZText ZText
;
51 /* zune_text_new argtypes */
54 ZTEXT_ARG_HICHAR
, /* following arg is the HiChar */
55 ZTEXT_ARG_HICHARIDX
, /* following arg is the HiCharIdx */
58 ZText
*zune_text_new (CONST_STRPTR preparse
, CONST_STRPTR content
,
59 int argtype
, TEXT arg
);
60 void zune_text_destroy (ZText
*text
);
61 void zune_text_get_bounds (ZText
*text
, Object
*obj
);
62 void zune_text_draw (ZText
*text
, Object
*obj
, WORD left
, WORD right
,