2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include <aros/libcall.h>
11 /*****************************************************************************
14 #include <proto/layers.h>
15 #include "layers_intern.h"
17 AROS_LH4(LONG
, SizeLayer
,
20 AROS_LHA(LONG
, dummy
, A0
),
21 AROS_LHA(struct Layer
*, l
, A1
),
22 AROS_LHA(LONG
, dw
, D0
),
23 AROS_LHA(LONG
, dh
, D1
),
26 struct LayersBase
*, LayersBase
, 11, Layers
)
29 Resizes the given layer by adding dw to its width and dh
31 If parts of simple layers become visible those parts are
32 added to the damage list and a refresh is triggered for
34 If the new layer is bigger than before the additional parts
35 are added to a damage list if the layer is a non-super-
36 bitmap layer. Refresh is also triggered for this layer.
39 l - pointer to layer to be resized
40 dw - delta to be added to the width
41 dh - delta to be added to the height
44 TRUE - layer could be resized
45 FALSE - error occurred (out of memory)
58 27-11-96 digulla automatically created from
59 layers_lib.fd and clib/layers_protos.h
61 *****************************************************************************/
64 AROS_LIBBASE_EXT_DECL(struct LayersBase
*,LayersBase
)
67 In this case I will create a layer behind the current layer and
68 I will try to clear as little of the layer that was above it as
71 return MoveSizeLayer(l
,0,0,dw
,dh
);