DEFINITION MODULE LayersL{"layers.library",33};
(* 05-Jun-1993/bp *)

FROM GraphicsD IMPORT
 ClipRectPtr,BitMapPtr,LayerFlagSet,LayerInfoPtr,LayerPtr,RastPortPtr,
 RectanglePtr,RegionPtr;

FROM UtilityD IMPORT HookPtr;

IMPORT
 R,ExecD;

VAR
 layersVersion:INTEGER;
 layersBase:ExecD.LibraryPtr;

CONST
 layersMinVersion=33;
 layersName="layers.library";

PROCEDURE BeginUpdate(
           l{R.A0}:LayerPtr):BOOLEAN; CODE -78;

PROCEDURE BehindLayer(
           (* dummy{R.A0}:LONGINT; *)
           layer{R.A1}:LayerPtr):BOOLEAN; CODE -54;

PROCEDURE(*36*) CreateBehindHookLayer(
                 li{R.A0}:LayerInfoPtr;
                 bm{R.A1}:BitMapPtr;
                 x0{R.D0}:LONGINT;
                 y0{R.D1}:LONGINT;
                 x1{R.D2}:LONGINT;
                 y1{R.D3}:LONGINT;
                 flags{R.D4}:LayerFlagSet;
                 hook{R.A3}:HookPtr;
                 superbm{R.A2}:BitMapPtr):LayerPtr; CODE -192;

PROCEDURE CreateBehindLayer(
           li{R.A0}:LayerInfoPtr;
           bm{R.A1}:BitMapPtr;
           x0{R.D0}:LONGINT;
           y0{R.D1}:LONGINT;
           x1{R.D2}:LONGINT;
           y1{R.D3}:LONGINT;
           flags{R.D4}:LayerFlagSet;
           superbm{R.A2}:BitMapPtr):LayerPtr; CODE -42;

PROCEDURE(*36*) CreateUpfrontHookLayer(
                 li{R.A0}:LayerInfoPtr;
                 bm{R.A1}:BitMapPtr;
                 x0{R.D0}:LONGINT;
                 y0{R.D1}:LONGINT;
                 x1{R.D2}:LONGINT;
                 y1{R.D3}:LONGINT;
                 flags{R.D4}:LayerFlagSet;
                 hook{R.A3}:HookPtr;
                 superbm{R.A2}:BitMapPtr):LayerPtr; CODE -186;

PROCEDURE CreateUpfrontLayer(
           li{R.A0}:LayerInfoPtr;
           bm{R.A1}:BitMapPtr;
           x0{R.D0}:LONGINT;
           y0{R.D1}:LONGINT;
           x1{R.D2}:LONGINT;
           y1{R.D3}:LONGINT;
           flags{R.D4}:LayerFlagSet;
           superbm{R.A2}:BitMapPtr):LayerPtr; CODE -36;

PROCEDURE DeleteLayer(
           (* dummy{R.A0}:LONGINT; *)
           layer{R.A1}:LayerPtr):BOOLEAN; CODE -90;

PROCEDURE DisposeLayerInfo(li{R.A0}:LayerInfoPtr); CODE -150;

PROCEDURE(*39*) DoHookClipRects(
                 hook{R.A0}:HookPtr;
                 rport{R.A1}:RastPortPtr;
                 rect{R.A2}:RectanglePtr
                 ); CODE -216;

PROCEDURE EndUpdate(
           layer{R.A0}:LayerPtr;
           completed{R.D0}:BOOLEAN); CODE -84;

PROCEDURE FattenLayerInfo(li{R.A0}:LayerInfoPtr); CODE -156;

PROCEDURE InitLayers(li{R.A0}:LayerInfoPtr); CODE -30;

PROCEDURE InstallClipRegion(
           layer{R.A0}:LayerPtr;
           region{R.A1}:RegionPtr):RegionPtr; CODE -174;

PROCEDURE(*36*) InstallLayerHook(
                 layer{R.A0}:LayerPtr;
                 hook{R.A1}:HookPtr):HookPtr; CODE -198;

PROCEDURE(*39*) InstallLayerInfoHook(
                 li{R.A0}:LayerInfoPtr;
                 hook{R.A1}:HookPtr
                 ):HookPtr; CODE -204;

PROCEDURE LockLayer(
           (* dummy{R.A0}:LONGINT; *)
           layer{R.A1}:LayerPtr); CODE -96;

PROCEDURE LockLayerInfo(li{R.A0}:LayerInfoPtr); CODE -120;

PROCEDURE LockLayers(li{R.A0}:LayerInfoPtr); CODE -108;

PROCEDURE MoveLayer(
           (* dummy{R.A0}:LONGINT; *)
           layer{R.A1}:LayerPtr;
           dx{R.D0}:LONGINT;
           dy{R.D1}:LONGINT):BOOLEAN; CODE -60;

PROCEDURE MoveLayerInFrontOf(
           layerToMove{R.A0}:LayerPtr;
           otherLayer{R.A1}:LayerPtr):BOOLEAN; CODE -168;

PROCEDURE(*36*) MoveSizeLayer(
                 layer{R.A0}:LayerPtr;
                 dx{R.D0}:LONGINT;
                 dy{R.D1}:LONGINT;
                 dw{R.D2}:LONGINT;
                 dh{R.D3}:LONGINT):BOOLEAN; CODE -180;

PROCEDURE NewLayerInfo():LayerInfoPtr; CODE -144;

PROCEDURE ScrollLayer(
           (* dummy{R.A0}:LONGINT; *)
           layer{R.A1}:LayerPtr;
           dx{R.D0}:LONGINT;
           dy{R.D1}:LONGINT); CODE -72;

PROCEDURE SizeLayer(
           (* dummy{R.A0}:LONGINT; *)
           layer{R.A1}:LayerPtr;
           dx{R.D0}:LONGINT;
           dy{R.D1}:LONGINT):BOOLEAN; CODE -66;

PROCEDURE(*39*) SortLayerCR(
                 layer{R.A0}:LayerPtr;
                 dx{R.D0}:LONGINT;
                 dy{R.D1}:LONGINT
                 ):LONGINT; CODE -210;

PROCEDURE SwapBitsRastPortClipRect(
           rp{R.A0}:RastPortPtr;
           cr{R.A1}:ClipRectPtr); CODE -126;

PROCEDURE ThinLayerInfo(li{R.A0}:LayerInfoPtr); CODE -162;

PROCEDURE UnlockLayer(layer{R.A0}:LayerPtr); CODE -102;

PROCEDURE UnlockLayerInfo(li{R.A0}:LayerInfoPtr); CODE -138;

PROCEDURE UnlockLayers(li{R.A0}:LayerInfoPtr); CODE -114;

PROCEDURE UpfrontLayer(
           (* dummy{R.A0}:LONGINT; *)
           layer{R.A1}:LayerPtr):BOOLEAN; CODE -48;

PROCEDURE WhichLayer(
           li{R.A0}:LayerInfoPtr;
           x{R.D0}:LONGINT;
           y{R.D1}:LONGINT):LayerPtr; CODE -132;



END LayersL.
