2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
6 #include "icon_intern.h"
8 /*****************************************************************************
11 #include <proto/icon.h>
13 AROS_LH5(BOOL
, GetIconRectangleA
,
16 AROS_LHA(struct RastPort
*, rp
, A0
),
17 AROS_LHA(struct DiskObject
*, icon
, A1
),
18 AROS_LHA(STRPTR
, label
, A2
),
19 AROS_LHA(struct Rectangle
*, rectangle
, A3
),
20 AROS_LHA(struct TagItem
*, tags
, A4
),
22 struct Library
*, IconBase
, 28, Icon
)
28 rp - reference RastPort (for font)
29 icon - icon to be queried
31 rectangle - resulting size
37 Only very limited implemented.
49 *****************************************************************************/
53 struct NativeIcon
*nativeicon
;
55 nativeicon
= GetNativeIcon(icon
, LB(IconBase
));
56 if (nativeicon
&& nativeicon
->icon35
.img1
.imagedata
)
60 rectangle
->MaxX
= nativeicon
->icon35
.width
- 1;
61 rectangle
->MaxY
= nativeicon
->icon35
.height
- 1;
66 rectangle
->MaxX
= icon
->do_Gadget
.Width
- 1;
67 rectangle
->MaxY
= icon
->do_Gadget
.Height
- 1;
70 #warning GetIconRectangleA() is only very limited implemented
75 } /* GetIconRectangle */