2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <workbench/workbench.h>
7 #include <workbench/icon.h>
9 #include <proto/icon.h>
13 int main(int argc
, char **argv
)
15 const char * const typeNames
[] =
30 LONG isDefault
= FALSE
;
31 struct DiskObject
*icon
= GetIconTags
34 ICONGETA_FailIfUnavailable
, FALSE
,
35 ICONGETA_IsDefaultIcon
, (IPTR
) &isDefault
,
47 "Position: x = %ld (0x%lx), y = %ld (0x%lx)\n"
51 argv
[1], isDefault
? "yes" : "no",
52 typeNames
[icon
->do_Type
], icon
->do_Type
, icon
->do_DefaultTool
,
53 (long)icon
->do_CurrentX
, (unsigned long)icon
->do_CurrentX
,
54 (long)icon
->do_CurrentY
, (unsigned long)icon
->do_CurrentY
,
55 icon
->do_DrawerData
!= NULL
? "yes" : "no",
56 (long)icon
->do_StackSize
,
57 icon
->do_ToolTypes
!= NULL
? "yes" : "no"
60 if (icon
->do_ToolTypes
!= NULL
)
65 printf("Tooltype data:\n");
67 while ((tt
= icon
->do_ToolTypes
[i
]) != NULL
)
78 printf("ERROR: Failed to open icon.\n");
84 printf("Usage: %s <name> (without trailing \".info\")\n", argv
[0]);