2 Copyright © 1999, David Le Corfec.
3 Copyright © 2002, 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 */
27 UBYTE style
; /* FSF_UNDERLINED, FSF_BOLD, ... */
32 typedef struct ZTextLine
{
33 struct MinNode node
; /* embedded node */
34 UBYTE align
; /* ZTL_CENTER, ZTL_RIGHT, ZTL_LEFT */
35 struct MinList chunklist
;
41 WORD width
; /* store calculated bounds - read only ! */
48 typedef struct ZText ZText
;
50 /* zune_text_new argtypes */
53 ZTEXT_ARG_HICHAR
, /* following arg is the HiChar */
54 ZTEXT_ARG_HICHARIDX
, /* following arg is the HiCharIdx */
57 ZText
*zune_text_new (CONST_STRPTR preparse
, CONST_STRPTR content
,
58 int argtype
, TEXT arg
);
59 void zune_text_destroy (ZText
*text
);
60 void zune_text_get_bounds (ZText
*text
, Object
*obj
);
61 void zune_text_draw (ZText
*text
, Object
*obj
, WORD left
, WORD right
,