DEFINITION MODULE Layers {"layers.library", 33};

FROM SYSTEM IMPORT
 LONGSET;
FROM Graphics IMPORT
 ClipRectPtr,BitMapPtr,LayerInfoPtr,LayerPtr,RastPortPtr,
 RegionPtr;

PROCEDURE BeginUpdate(l{8}:LayerPtr):LONGINT; CODE -78;
PROCEDURE BehindLayer(l{9}:LayerPtr):LONGINT; CODE -54;
PROCEDURE CreateBehindLayer(
           li{8}:LayerInfoPtr;
           bm{9}:BitMapPtr;
           x0{0}:LONGINT;
           y0{1}:LONGINT;
           x1{2}:LONGINT;
           y1{3}:LONGINT;
           flags{4}:LONGSET;
           bm2{10}:BitMapPtr):LayerPtr; CODE -42;
PROCEDURE CreateUpfrontLayer(
           li{8}:LayerInfoPtr;
           bm{9}:BitMapPtr;
           x0{0}:LONGINT;
           y0{1}:LONGINT;
           x1{2}:LONGINT;
           y1{3}:LONGINT;
           flags{4}:LONGSET;
           bm2{10}:BitMapPtr):LayerPtr; CODE -36;
PROCEDURE DeleteLayer(l{9}:LayerPtr):LONGINT; CODE -90;
PROCEDURE DisposeLayerInfo(li{8}:LayerInfoPtr); CODE -150;
PROCEDURE EndUpdate(l{8}:LayerPtr; flag{0}:BOOLEAN); CODE -84;
(*VERALTET*)PROCEDURE FattenLayerInfo(
                       li{8}:LayerInfoPtr); CODE -156;
(*VERALTET*)PROCEDURE InitLayers(
             li{8}:LayerInfoPtr); CODE -30;
PROCEDURE InstallClipRegion(
           l{8}:LayerPtr;
           region{9}:RegionPtr):RegionPtr; CODE -174;
PROCEDURE LockLayer(l{9}:LayerPtr); CODE -96;
PROCEDURE LockLayerInfo(li{8}:LayerInfoPtr); CODE -120;
PROCEDURE LockLayers(li{8}:LayerInfoPtr); CODE -108;
PROCEDURE MoveLayer(l{9}:LayerPtr; 
                    dx{0},dy{1}:LONGINT):LONGINT; CODE -60;
PROCEDURE MoveLayerInFrontOf(
           l{8},target{9}:LayerPtr):LONGINT; CODE -168;
PROCEDURE NewLayerInfo():LayerInfoPtr; CODE -144;
PROCEDURE ScrollLayer(
           l{9}:LayerPtr; dx{0},dy{1}:LONGINT); CODE -72;
PROCEDURE SizeLayer(l{9}:LayerPtr; 
                    dx{0},dy{1}:LONGINT):LONGINT; CODE -66;
PROCEDURE SwapBitsRastPortClipRect(
           rp{8}:RastPortPtr;
           cr{9}:ClipRectPtr); CODE -126;
(*VERALTET*)PROCEDURE ThinLayerInfo(
                       li{8}:LayerInfoPtr); CODE -162;
PROCEDURE UnlockLayer(l{8}:LayerPtr); CODE -102;
PROCEDURE UnlockLayerInfo(li{8}:LayerInfoPtr); CODE -138;
PROCEDURE UnlockLayers(li{8}:LayerInfoPtr); CODE -114;
PROCEDURE UpfrontLayer(l{9}:LayerPtr):LONGINT; CODE -48;
PROCEDURE WhichLayer(li{8}:LayerInfoPtr;
                     x{0},y{1}:LONGINT):LayerPtr; CODE -132;

END Layers.
