1 /***************************************************************************
3 NBitmap.mcc - New Bitmap MUI Custom Class
4 Copyright (C) 2007-2013 by NList Open Source Team
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 TextEditor class Support Site: http://www.sf.net/projects/texteditor-mcc
20 ***************************************************************************/
22 #if !defined(__AROS__) && (defined(__VBCC__) || defined(NO_INLINE_STDARG))
23 #if defined(_M68000) || defined(__M68000) || defined(__mc68000)
25 #include <exec/types.h>
27 /* FIX V45 breakage... */
28 #if INCLUDE_VERSION < 45
29 #define MY_CONST_STRPTR CONST_STRPTR
31 #define MY_CONST_STRPTR CONST STRPTR
34 #include <proto/intuition.h>
35 APTR
NewObject( struct IClass
*classPtr
, CONST_STRPTR classID
, Tag tag1
, ... )
36 { return NewObjectA(classPtr
, classID
, (struct TagItem
*)&tag1
); }
37 ULONG
SetAttrs( APTR object
, ULONG tag1
, ... )
38 { return SetAttrsA(object
, (struct TagItem
*)&tag1
); }
40 #include <proto/graphics.h>
41 LONG
ObtainBestPen( struct ColorMap
*cm
, ULONG r
, ULONG g
, ULONG b
, Tag tag1
, ... )
42 { return ObtainBestPenA(cm
, r
, g
, b
, (struct TagItem
*)&tag1
); }
44 #include <proto/datatypes.h>
45 Object
*NewDTObject( APTR name
, Tag tag1
, ... )
46 { return NewDTObjectA(name
, (struct TagItem
*)&tag1
); }
47 ULONG
SetDTAttrs( Object
*o
, struct Window
*win
, struct Requester
*req
, Tag tag1
, ... )
48 { return SetDTAttrsA(o
, win
, req
, (struct TagItem
*)&tag1
); }
49 ULONG
GetDTAttrs( Object
*o
, Tag tag1
, ... )
50 { return GetDTAttrsA(o
, (struct TagItem
*)&tag1
); }
51 ULONG
DoDTMethod( Object
*o
, struct Window
*win
, struct Requester
*req
, ULONG data
, ... )
52 { return DoDTMethodA(o
, win
, req
, (Msg
)&data
); }
55 #error "VARGS stubs are only save on m68k systems!"