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

SizeLayer

Change the size of this nonbackdrop layer.

Declaration

Source position: layers.pas line 161

function SizeLayer(

  Summy: LongInt;

  Layer: PLayer;

  Dx: LongInt;

  Dy: LongInt

):LongInt;

Arguments

Layer

  

pointer to a nonbackdrop layer

Dx

  

delta to add to current x size

Dy

  

delta to add to current y size

Function result

True if operation successful. False if failed (out of memory)

Description

Change the size of this layer by (dx,dy). The lower right hand corner is extended to make room for the larger layer. If there is SuperBitMap for this layer then copy pixels into or out of the layer depending on whether the layer increases or decreases in size. Collect damage list for those layers that may need to be refreshed if damage occurred.


Documentation generated on: 2021-07-30