Sign in Join
FPDoc Onlineexperiment

TLazRegionPolygon class

In unit LazRegions

Represents a region defined as a series of vertices for a polygon.

Declaration

pascal
TLazRegionPolygon = class(TLazRegionPart)

Inheritance

  1. TLazRegionPolygon
  2. TLazRegionPart

Description

TLazRegionPolygon is a TLazRegionPart descendant which implements a region as a polygonal area defined by a series of vertices.

The Points member contains the TPoint values that define the vertices for the polygon. FillMode defines how the interior of the polygon is filled, and uses values like those defined for the Windows GDI API. An overridden IsPointInPart is provided to determine if a point is within the bounds for the polygonal area.

Instances of TLazRegionPolygon are created when the AddPolygon method in TLazRegion is called.

See also

Methods

Clonepublic
IsPointInPartpublicIndicates if a point with the specified coordinates is within the vertices for the polygonal region.

Fields

PointspublicArray of TPoint values that define the vertices for the polygonal region.
FillModepublicFill mode used for the polygon.

Inherited

From TLazRegionPart (1)

GetBoundingRect

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