grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / system / Wanderer / Classes / icon.h
blobdcd676244a5e5880c84e969bd3623c610bfd9bbe
1 #ifndef _WANDERER_CLASSES_ICON_H
2 #define _WANDERER_CLASSES_ICON_H
4 /*
5 Copyright 2002-2009, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #include <string.h>
10 #include <stdlib.h>
11 #include <stdio.h>
12 #include <time.h>
13 #include <math.h>
14 #include <stdarg.h>
15 #include <exec/types.h>
16 #include <exec/memory.h>
17 #include <dos/dos.h>
18 #include <intuition/intuitionbase.h>
19 #include <intuition/classusr.h>
20 #include <clib/alib_protos.h>
21 #include <utility/utility.h>
22 #include <dos/dosextens.h>
23 #include <libraries/mui.h>
24 #include <clib/alib_protos.h>
25 #include <proto/exec.h>
26 #include <proto/dos.h>
27 #include <proto/muimaster.h>
28 #include <proto/intuition.h>
30 #include "icon_attributes.h"
32 /****************************************************************************/
33 /*** Name *******************************************************************/
34 #define MUIC_Icon "Icon.mui"
36 /*** Methods ****************************************************************/
37 #define MUIM_Icon_Clear (MUIB_Icon | 0x00000000)
38 #define MUIM_Icon_Update (MUIB_Icon | 0x00000001)
39 #define MUIM_Icon_RethinkDimensions (MUIB_Icon | 0x00000002)
40 #define MUIM_Icon_CreateEntry (MUIB_Icon | 0x00000010) /* returns 0 For Failure or (struct IconEntry *) */
41 #define MUIM_Icon_DestroyEntry (MUIB_Icon | 0x00000011)
42 #define MUIM_Icon_DrawEntry (MUIB_Icon | 0x00000012)
43 #define MUIM_Icon_DrawEntryLabel (MUIB_Icon | 0x00000013)
44 #define MUIM_Icon_SelectAll (MUIB_Icon | 0x00000020)
45 #define MUIM_Icon_UnselectAll (MUIB_Icon | 0x00000021)
46 #define MUIM_Icon_GetIconPrivate (MUIB_Icon | 0x00000022)
47 #define MUIM_Icon_NextIcon (MUIB_Icon | 0x00000025)
48 #define MUIM_Icon_Sort (MUIB_Icon | 0x00000031)
49 #define MUIM_Icon_CoordsSort (MUIB_Icon | 0x00000032)
50 #define MUIM_Icon_PositionIcons (MUIB_Icon | 0x00000033)
51 #define MUIM_Icon_ViewIcon (MUIB_Icon | 0x00000034)
53 struct MUIP_Icon_CreateEntry {STACKED ULONG MethodID; STACKED char *filename; STACKED char *label; STACKED struct FileInfoBlock *fib; STACKED struct DiskObject *icon_dob; STACKED ULONG type;};/* void *udata; More file attrs to add };*/
54 struct MUIP_Icon_DestroyEntry {STACKED ULONG MethodID; STACKED struct IconEntry *icon;};
55 struct MUIP_Icon_DrawEntry {STACKED ULONG MethodID; STACKED struct IconEntry *icon; STACKED IPTR drawmode;};
56 struct MUIP_Icon_DrawEntryLabel {STACKED ULONG MethodID; STACKED struct IconEntry *icon; STACKED IPTR drawmode;};
57 struct MUIP_Icon_GetIconPrivate {STACKED ULONG MethodID; STACKED struct Icon_Entry *entry;}; /* *entry must be a valid Icon */
59 extern const struct __MUIBuiltinClass _MUI_Icon_desc; /* PRIV */
61 #ifdef __AROS__
62 #define IconObject MUIOBJMACRO_START(MUIC_Icon)
63 #else
64 #define IconObject NewObject(Icon_Class->mcc_Class, NULL
65 #endif
67 #endif /* _WANDERER_CLASSES_ICON_H */