2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <aros/libcall.h>
9 #include <graphics/clip.h>
10 #include <exec/types.h>
11 #include <proto/exec.h>
12 #include <graphics/layers.h>
13 #include <proto/layers.h>
14 #include "layers_intern.h"
15 #include "basicfuncs.h"
17 /*****************************************************************************
21 AROS_LH2(struct Region
*, InstallClipRegion
,
24 AROS_LHA(struct Layer
*, l
, A0
),
25 AROS_LHA(struct Region
*, region
, A1
),
28 struct LayersBase
*, LayersBase
, 29, Layers
)
31 Install a transparent Clip region in the layer. All subsequent
32 graphics call to the rastport of the layer will be clipped to
34 None of the system functions will free the ClipRegion for you,
35 so you will have to call InstallClipRegion(l, NULL) before
36 closing a window or deleting a layer.
40 region - pointer to region to be clipped against.
55 27-11-96 digulla automatically created from
56 layers_lib.fd and clib/layers_protos.h
58 *****************************************************************************/
62 struct Region
* OldRegion
;
66 OldRegion
= _InternalInstallClipRegion(l
, region
, 0, 0, LayersBase
);
73 } /* InstallClipRegion */