Added a test for MUIA_Listview_SelectChange.
[AROS.git] / compiler / include / datatypes / textclass.h
blob74ba499e953265e67acf63539ab3ba6b53e9575a
1 #ifndef DATATYPES_TEXTCLASS_H
2 #define DATATYPES_TEXTCLASS_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #ifndef UTILITY_TAGITEM_H
10 # include <utility/tagitem.h>
11 #endif
13 #ifndef DATATYPES_DATATYPESCLASS_H
14 # include <datatypes/datatypesclass.h>
15 #endif
17 #ifndef LIBRARIES_IFFPARSE_H
18 # include <libraries/iffparse.h>
19 #endif
21 #define TEXTDTCLASS "text.datatype"
23 /* Attributes */
25 #define TDTA_Buffer (DTA_Dummy + 300)
26 #define TDTA_BufferLen (DTA_Dummy + 301)
27 #define TDTA_LineList (DTA_Dummy + 302)
28 #define TDTA_WordSelect (DTA_Dummy + 303)
29 #define TDTA_WordDelim (DTA_Dummy + 304)
30 #define TDTA_WordWrap (DTA_Dummy + 305)
32 /* There is one line structure for every line of text in the document. */
34 struct Line
36 struct MinNode ln_Link;
37 STRPTR ln_Text;
38 ULONG ln_TextLen;
39 UWORD ln_XOffset;
40 UWORD ln_YOffset;
41 UWORD ln_Width;
42 UWORD ln_Height;
43 UWORD ln_Flags;
44 BYTE ln_FgPen;
45 BYTE ln_BgPen;
46 ULONG ln_Style;
47 APTR ln_Data;
51 /* ln_Flags */
53 #define LNF_LF (1L << 0)
54 #define LNF_LINK (1L << 1)
55 #define LNF_OBJECT (1L << 2)
56 #define LNF_SELECTED (1L << 3)
58 #define ID_FTXT MAKE_ID('F','T','X','T')
59 #define ID_CHRS MAKE_ID('C','H','R','S')
61 #endif /* DATATYPES_TEXTCLASS_H */