Unit 'layers' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

CreateBehindLayer

Create a new layer behind all existing layers.

Declaration

Source position: layers.pas line 157

function CreateBehindLayer(

  Li: PLayer_Info;

  Bm: PBitMap;

  X0: LongInt;

  Y0: LongInt;

  X1: LongInt;

  Y1: LongInt;

  Flags: LongInt;

  Bm2: PBitMap

):PLayer;

Arguments

Li

  

pointer to LayerInfo structure

Bm

  

pointer to common BitMap used by all Layers

X0

  

left corner of layer

Y0

  

upper corner of layer

X1

  

right corner of layer

Y1

  

lower corner of layer

Flags

  

various types of layers supported as bit sets. Flags: LAYER*

Bm2

  

pointer to optional Super BitMap

Function result

pointer to Layer structure if successful nil if not successful

Description

Create a new Layer of position and size (x0,y0)->(x1,y1) Make this layer of type found in flags. If SuperBitMap, use bm2 as pointer to real SuperBitMap, and copy contents of Superbitmap into display layer. If this layer is a backdrop layer then place it behind all other layers including other backdrop layers. If this is not a backdrop layer then place it behind all nonbackdrop layers.

Attention

When using bm2 SuperBitmap, you should also set LAYERSMART flag.


Documentation generated on: 2021-07-30