- Give PCI controllers lower unit numbers than legacy controllers.
[cake.git] / rom / intuition / inputhandler_support.h
blob428e14f1ac1600642284c363716e4dd3a439392a
1 #ifndef INPUTHANDLER_SUPPORT_H
2 #define INPUTHANDLER_SUPPORT_H
4 /*
5 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 $Id$
8 */
10 struct IIHData;
12 struct gpInput;
14 void notify_mousemove_screensandwindows(WORD x,
15 WORD y,
16 struct IntuitionBase * IntuitionBase);
18 void notify_newprefs(struct IntuitionBase * IntuitionBase);
20 /*********************************************************************/
22 void send_intuimessage(struct IntuiMessage *imsg,
23 struct Window *w,
24 struct IntuitionBase *IntuitionBase);
26 void free_intuimessage(struct IntuiMessage *imsg,
27 struct IntuitionBase *IntuitionBase);
29 struct IntuiMessage *alloc_intuimessage(struct Window *w,
30 struct IntuitionBase *IntuitionBase);
32 BOOL fire_intuimessage(struct Window *w,
33 ULONG Class,
34 UWORD Code,
35 APTR IAddress,
36 struct IntuitionBase *IntuitionBase);
38 /* use ih_fire_intuimessage if A) the inputevent because of which
39 you call this function might have to be eaten or modified
40 by Intuition or B) an inputevent might have to be created
41 by Intuition because of a deferred action */
43 BOOL ih_fire_intuimessage(struct Window *w,
44 ULONG Class,
45 UWORD Code,
46 APTR IAddress,
47 struct IntuitionBase *IntuitionBase);
49 /*********************************************************************/
51 IPTR Locked_DoMethodA (struct Window *w,
52 struct Gadget *g,
53 Msg message,
54 struct IntuitionBase *IntuitionBase);
57 /*********************************************************************/
59 void NotifyDepthArrangement(struct Window *w,
60 struct IntuitionBase *IntuitionBase);
62 /*********************************************************************/
64 void PrepareGadgetInfo(struct GadgetInfo *gi, struct Screen *scr, struct Window *win,
65 struct Requester *req);
67 void SetGadgetInfoGadget(struct GadgetInfo *gi, struct Gadget *gad,
68 struct IntuitionBase *IntuitionBase);
70 void SetGPIMouseCoords(struct gpInput *gpi, struct Gadget *gad);
72 void HandleSysGadgetVerify(struct GadgetInfo *gi, struct Gadget *gadget,
73 struct IntuitionBase *IntuitionBase);
75 struct Gadget *HandleCustomGadgetRetVal(IPTR retval, struct GadgetInfo *gi,
76 struct Gadget *gadget,
77 ULONG termination,
78 BOOL *reuse_event, struct IntuitionBase *IntuitionBase);
80 struct Gadget *DoGPInput(struct GadgetInfo *gi, struct Gadget *gadget,
81 struct InputEvent *ie, STACKULONG methodid,
82 BOOL *reuse_event, struct IntuitionBase *IntuitionBase);
84 struct Gadget * FindGadget (struct Screen *scr, struct Window * window,
85 struct Requester *req, int x, int y,
86 struct GadgetInfo * gi, BOOL sysonly,
87 struct IntuitionBase *IntuitionBase);
89 struct Gadget * FindHelpGadget (struct Window * window, int x, int y,
90 struct IntuitionBase *IntuitionBase);
92 BOOL InsideGadget(struct Screen *scr, struct Window *win, struct Requester *req,
93 struct Gadget *gad, WORD x, WORD y);
95 struct Gadget *DoActivateGadget(struct Window *win, struct Requester *req,
96 struct Gadget *gad, struct IntuitionBase *IntuitionBase);
98 struct Gadget *FindCycleGadget(struct Window *win, struct Requester *req,
99 struct Gadget *gad, WORD direction);
101 /*********************************************************************/
103 void FixWindowCoords(struct Window *win, LONG *left, LONG *top, LONG *width, LONG *height,struct IntuitionBase *IntuitionBase);
105 /*********************************************************************/
107 void WindowNeedsRefresh(struct Window * w, struct IntuitionBase * IntuitionBase );
109 struct Window *FindActiveWindow(struct InputEvent *ie,ULONG *stitlebarhit,
110 struct IntuitionBase *IntuitionBase);
112 struct Window *FindDesktopWindow(struct Screen *screen,struct IntuitionBase *IntuitionBase);
114 /*********************************************************************/
116 struct InputEvent *AllocInputEvent(struct IIHData *iihdata);
117 void FreeGeneratedInputEvents(struct IIHData *iihdata);
119 /*********************************************************************/
121 BOOL FireMenuMessage(WORD code, struct Window *win,
122 struct InputEvent *ie, struct IntuitionBase *IntuitionBase);
124 /*********************************************************************/
126 LONG Gad_BeginUpdate(struct Layer *layer, struct IntuitionBase *IntuitionBase);
127 void Gad_EndUpdate(struct Layer *layer, UWORD flag, struct IntuitionBase *IntuitionBase);
129 /*********************************************************************/
131 #endif /* INPUTHANDLER_SUPPORT_H */