Added a test for MUIA_Listview_SelectChange.
[AROS.git] / compiler / include / workbench / handler.h
blobbc14bc641294ebe976067a433b8d6e646aadae25
1 #ifndef WORKBENCH_HANDLER_H
2 #define WORKBENCH_HANDLER_H
4 /*
5 Copyright © 2003, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #include <exec/types.h>
10 #include <exec/ports.h>
11 #include <workbench/startup.h>
13 enum WBHM_Type
15 WBHM_TYPE_SHOW, /* Open all windows */
16 WBHM_TYPE_HIDE, /* Close all windows */
17 WBHM_TYPE_OPEN, /* Open a drawer */
18 WBHM_TYPE_UPDATE /* Update an object */
21 struct WBHandlerMessage
23 struct Message wbhm_Message;
24 enum WBHM_Type wbhm_Type; /* Type of message (see above) */
26 union
28 struct
30 CONST_STRPTR Name; /* Name of drawer */
31 } Open;
33 struct
35 CONST_STRPTR Name; /* Name of object */
36 LONG Type; /* Type of object (WBDRAWER, WBPROJECT, ...) */
37 } Update;
38 } wbhm_Data;
41 #define WBHM_SIZE (sizeof(struct WBHandlerMessage))
42 #define WBHM(msg) ((struct WBHandlerMessage *) (msg))
44 #endif /* WORKBENCH_HANDLER_H */