2 Copyright © 1995-2005, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 /****************************************************************************/
9 #include <exec/types.h>
12 #include <dos/dosextens.h>
14 #include <intuition/intuition.h>
15 #include <intuition/intuitionbase.h>
16 #include <intuition/classes.h>
17 #include <intuition/classusr.h>
18 #include <intuition/gadgetclass.h>
19 #include <intuition/cghooks.h>
20 #include <intuition/icclass.h>
21 #include <intuition/imageclass.h>
23 #include <graphics/gfxbase.h>
24 #include <graphics/gfxmacros.h>
26 #include <utility/tagitem.h>
27 #include <utility/hooks.h>
29 #include <clib/macros.h>
31 #include <proto/exec.h>
32 #include <proto/intuition.h>
33 #include <proto/graphics.h>
34 #include <proto/utility.h>
39 #include "intuition_intern.h"
40 #include <aros/asmcall.h>
41 #include <proto/alib.h>
43 #endif /* !__MORPHOS__ */
45 /****************************************************************************/
48 #define IntuitionBase ((struct IntuitionBase *)(cl->cl_UserData))
50 /****************************************************************************/
52 IPTR
ITextIClass__IM_DRAW(Class
*cl
, struct Image
*im
, struct impDraw
*msg
)
54 struct RastPort
*rp
= msg
->imp_RPort
;
55 IPTR retval
= (IPTR
)0;
59 struct IntuiText
*iText
= (struct IntuiText
*)im
->ImageData
;
60 int leftOffset
= msg
->imp_Offset
.X
+ im
->LeftEdge
;
61 int topOffset
= msg
->imp_Offset
.Y
+ im
->TopEdge
;
63 SetABPenDrMd(rp
, im
->PlanePick
, 0 ,JAM1
);
65 int_PrintIText(rp
, iText
, leftOffset
, topOffset
, TRUE
, IntuitionBase
);
73 // FIXME: ITextIClass::IM_DRAWFRAME not implemented