a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 layers.library
  BeginUpdate
  BehindLayer
  CreateBehindHookLayer
  CreateBehindLayer
  CreateUpfrontHookLayer
  CreateUpfrontLayer
  DeleteLayer
  DisposeLayerInfo
  DoHookClipRects
  EndUpdate
  FattenLayerInfo
  InitLayers
  InstallClipRegion
  InstallLayerHook
  InstallLayerInfoHook
  LockLayer
  LockLayerInfo
  LockLayers
  MoveLayer
  MoveLayerInFrontOf
  MoveSizeLayer
  NewLayerInfo
  ScrollLayer
  SizeLayer
  SwapBitsRastPortClipRect
  ThinLayerInfo
  UnlockLayer
  UnlockLayerInfo
  UnlockLayers
  UpfrontLayer
  WhichLayer
Include
GuruMeditation
Docs » Autodocs » layers.library » InstallClipRegion

NAME

	InstallClipRegion -- Install clip region in layer

SYNOPSIS

	oldclipregion = InstallClipRegion( l,  region )
d0 a0 a1
struct Region *InstallClipRegion( struct Layer *, struct Region *);

FUNCTION

	Installs a transparent Clip region in the layer. All
subsequent graphics calls will be clipped to this region.
You MUST remember to call InstallClipRegion(l,NULL) before
calling DeleteLayer(l) or the Intuition function CloseWindow()
if you have installed a non-NULL ClipRegion in l.

INPUTS

	l - pointer to a layer
region - pointer to a region

RESULT

	oldclipregion - The pointer to the previous ClipRegion that
was installed. Returns NULL if no previous ClipRegion installed.
Note: If the system runs out of memory while computing the
resulting ClipRects the LAYERS_CLIPRECTS_LOST bit will
be set in l->Flags.

BUGS

	If the system runs out of memory during normal layer operations,
the ClipRect list may get swept away and not restored.
As soon as there is enough memory and the layer library
gets called again the ClipRect list will be rebuilt.

SEE ALSO

BeginUpdate() EndUpdate, <graphics/layers.h>, <graphics/clip.h>, <graphics/regions.h>

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Paradox

FC
TBL
PHA
PDX

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se