2 Copyright © 2002-2007, The AROS Development Team. All rights reserved.
6 #include <clib/alib_protos.h>
7 #include <proto/muimaster.h>
9 #include <proto/intuition.h>
10 #include <intuition/classusr.h>
12 #include "muimaster_intern.h"
15 /*****************************************************************************
18 AROS_LH2(VOID
, MUI_RequestIDCMP
,
21 AROS_LHA(Object
*, obj
, A0
),
22 AROS_LHA(ULONG
, flags
, D0
),
25 struct Library
*, MUIMasterBase
, 15, MUIMaster
)
29 For custom class implementors. Valid between MUIM_Setup/MUIM_Cleanup.
30 Indicates that this object wants to receive some events. MUIM_HandleInput
31 will then be called on this object whenever there's a matching event.
35 obj -- an object whose class is derived from Area
42 Deprecated in favor of MUIM_Window_AddEventHandler and MUIM_HandleEvent
43 event handling model (introduced in MUI V16).
53 This is a wrapper around MUIM_Window_RemEventHandler and
54 MUIM_Window_AddEventHandler.
58 *****************************************************************************/
62 /* Use the Eventhandler to simulate a MUIM_HandleInput */
63 if (muiRenderInfo(obj
) && (_flags(obj
) & MADF_SETUP
) && _win(obj
))
65 if (muiAreaData(obj
)->mad_hiehn
.ehn_Events
)
67 DoMethod(_win(obj
), MUIM_Window_RemEventHandler
, (IPTR
)&muiAreaData(obj
)->mad_hiehn
);
69 muiAreaData(obj
)->mad_hiehn
.ehn_Events
|= flags
;
70 if (muiAreaData(obj
)->mad_hiehn
.ehn_Events
)
72 DoMethod(_win(obj
), MUIM_Window_AddEventHandler
, (IPTR
)&muiAreaData(obj
)->mad_hiehn
);
77 muiAreaData(obj
)->mad_hiehn
.ehn_Events
|= flags
;
82 } /* MUIA_RequestIDCMP */