4 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
7 Desc: Include for the console class
11 #ifndef UTILITY_TAGITEM_H
12 # include <utility/tagitem.h>
14 #ifndef PROTO_INTUITION_H
15 # include <proto/intuition.h>
20 A_Console_Window
= TAG_USER
+ 1
25 M_Console_Write
= TAG_USER
+ 1,
32 M_Console_GetDefaultParams
,
33 M_Console_RenderCursor
,
34 M_Console_UnRenderCursor
,
36 M_Console_NewWindowSize
,
37 M_Console_HandleGadgets
,
42 struct P_Console_ScrollDown
45 WORD LinePos
; /* Lines including this one will be scrolled */
49 struct P_Console_ScrollUp
52 WORD LinePos
; /* Lines including this one will be scrolled */
56 struct P_Console_DoCommand
59 BYTE Command
; /* Erase in display, scroll, next line etc.. */
61 IPTR
*Params
; /* The command's parameters */
69 struct P_Console_Right
86 struct P_Console_RenderCursor
91 struct P_Console_UnRenderCursor
96 struct P_Console_ClearCell
103 struct P_Console_NewWindowSize
108 struct P_Console_Copy
113 struct P_Console_Paste
118 struct P_Console_HandleGadgets
121 struct InputEvent
*Event
;
124 struct P_Console_GetDefaultParams
131 #define Console_DoCommand(o, cmd, numparams, params) \
133 struct P_Console_DoCommand p; \
134 p.MethodID = M_Console_DoCommand; \
136 p.NumParams = numparams; \
137 p.Params = (IPTR *)params; \
138 DoMethodA((o), (Msg)&p); \
141 #define Console_Left(o, num) \
143 struct P_Console_Left p; \
144 p.MethodID = M_Console_Left; \
146 DoMethodA((o), (Msg)&p); \
150 #define Console_Right(o, num) \
152 struct P_Console_Right p; \
153 p.MethodID = M_Console_Right; \
155 DoMethodA((o), (Msg)&p); \
158 #define Console_Up(o, num) \
160 struct P_Console_Up p; \
161 p.MethodID = M_Console_Up; \
163 DoMethodA((o), (Msg)&p); \
166 #define Console_Down(o, num) \
168 struct P_Console_Down p; \
169 p.MethodID = M_Console_Down; \
171 DoMethodA((o), (Msg)&p); \
174 #define Console_GetDefaultParams(o, cmd, params) \
176 struct P_Console_GetDefaultParams p; \
177 p.MethodID = M_Console_GetDefaultParams; \
180 DoMethodA((o), (Msg)&p); \
184 #define Console_RenderCursor(o) \
186 struct P_Console_RenderCursor p; \
187 p.MethodID = M_Console_RenderCursor; \
188 DoMethodA((o), (Msg)&p); \
191 #define Console_UnRenderCursor(o) \
193 struct P_Console_UnRenderCursor p; \
194 p.MethodID = M_Console_UnRenderCursor; \
195 DoMethodA((o), (Msg)&p); \
198 #define Console_ClearCell(o, x, y) \
200 struct P_Console_ClearCell p; \
201 p.MethodID = M_Console_ClearCell; \
204 DoMethodA((o), (Msg)&p); \
207 #define Console_NewWindowSize(o) \
209 struct P_Console_NewWindowSize p; \
210 p.MethodID = M_Console_NewWindowSize; \
211 DoMethodA((o), (Msg)&p); \
214 #define Console_HandleGadgets(o, e) \
216 struct P_Console_HandleGadgets p; \
217 p.MethodID = M_Console_HandleGadgets; \
219 DoMethodA((o), (Msg)&p); \
222 #define Console_Copy(o) \
224 struct P_Console_Copy p; \
225 p.MethodID = M_Console_Copy; \
226 DoMethodA((o), (Msg)&p); \
229 #define Console_Paste(o) \
231 struct P_Console_Paste p; \
232 p.MethodID = M_Console_Paste; \
233 DoMethodA((o), (Msg)&p); \
237 #endif /* CONSOLEIF_H */