Sign in Join
FPDoc Onlineexperiment

TWidgetSet.IntersectClipRect function

Member of TWidgetSetpublicIn unit InterfaceBase

Shrinks the clipping region of an Device Context to a rectangular boundary, e.g. a text area.

Declaration

pascal
function IntersectClipRect(dc: hdc; Left: Integer; Top: Integer; 
 Right: Integer; Bottom: Integer): Integer
 ; virtual

Function result

The region type, zero on failure.

Description

Use this method before painting into a rectangle in an DC, to clip everything outside the rectangle and outside the current clipping region of the DC.

The result can be one of the following constants:
Error NullRegion SimpleRegion ComplexRegion Region_Error.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.