revert between 56095 -> 55830 in arch
[AROS.git] / arch / .unmaintained / morphos / Include / gadgets / aroslistview.h
blobb11b69540a005198e070e79650bd40b67f0122c1
1 #ifndef GADGETS_AROSLISTVIEW_H
2 #define GADGETS_AROSLISTVIEW_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: MethodIDs and AttrIDs for the AROS listview class.
9 Lang: english
12 #ifndef EXEC_TYPES_H
13 # include <exec/types.h>
14 #endif
15 #ifndef UTILITY_TAGITEM_H
16 # include <utility/tagitem.h>
17 #endif
19 #define AROSLISTVIEWCLASS "listview.aros"
20 #define AROSLISTVIEWNAME "Gadgets/aroslistview.gadget"
22 #define AROSLV_TAGBASE (TAG_USER + 0x05120000)
24 /* Attribute IDs */
26 #define AROSA_Listview_DisplayHook AROSLV_TAGBASE + 0 /* [I] */
27 #define AROSA_Listview_RenderHook AROSLV_TAGBASE + 1 /* [IS] */
28 #define AROSA_Listview_HorSpacing AROSLV_TAGBASE + 2 /* [ISG] */
29 #define AROSA_Listview_VertSpacing AROSLV_TAGBASE + 3 /* [ISG] */
30 #define AROSA_Listview_List AROSLV_TAGBASE + 4 /* [IS] */
33 #define AROSA_Listview_MaxColumns AROSLV_TAGBASE + 5 /* [I] The displayhook limit */
36 /* Formatstring for the coulumns. If none is specified the default will be BACKGROUNDPEN,
37 Leftalign and equal weight */
39 #define AROSA_Listview_Format AROSLV_TAGBASE + 6 /* [IS] */
40 #define AROSA_Listview_First AROSLV_TAGBASE + 7 /* [ISGUN] */
41 #define AROSA_Listview_MultiSelect AROSLV_TAGBASE + 8 /* [IS] */
42 #define AROSA_Listview_DoubleClick AROSLV_TAGBASE + 9 /* [G] */
43 #define AROSA_Listview_Visible AROSLV_TAGBASE + 10 /* [N] */
44 #define AROSA_Listview_Total AROSLV_TAGBASE + 11 /* [N] */
45 #define AROSA_Listview_FrontPen AROSLV_TAGBASE + 12 /* [IS] */
46 #define AROSA_Listview_BackPen AROSLV_TAGBASE + 13 /* [IS] */
49 /* These methods are merely aliases for the List ones.
50 * These are needed because I must include that damn
51 * GadgetInfo structure as the 2nd argument.
54 #define AROSM_Listview_Insert AROSM_List_Insert
55 #define AROSM_Listview_InsertSingle AROSM_List_InsertSingle
56 #define AROSM_Listview_Remove AROSM_List_Remove
58 #define AROSM_Listview_DoubleClick AROSLV_TAGBASE + 50
59 #define AROSM_Listview_SingleClick AROSLV_TAGBASE + 51
63 struct AROSP_Listview_Insert
65 STACKULONG MethodID;
66 struct GadgetInfo *GInfo;
67 APTR *ItemArray;
68 STACKLONG Position;
71 struct AROSP_Listview_InsertSingle
73 STACKULONG MethodID;
74 struct GadgetInfo *GInfo;
75 APTR Item;
76 STACKLONG Position;
79 struct AROSP_Listview_Remove
81 STACKULONG MethodID;
82 struct GadgetInfo *GInfo;
83 STACKLONG Position;
86 struct AROSP_Listview_DoubleClick
88 STACKULONG MethodID;
89 struct GadgetInfo *GInfo;
90 STACKLONG Position;
93 struct AROSP_Listview_SingleClick
95 STACKULONG MethodID;
96 struct GadgetInfo *GInfo;
97 STACKLONG Position;
101 /* Method IDs */
104 #endif /* GADGETS_AROSLISTVIEW_H */