[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'LazRegions' (#lcl)

TLazRegionRect

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements a region defined by a TRect structure.

Declaration

Source position: lazregions.pas line 31

type TLazRegionRect = class(TLazRegionPart)

public

  Rect: TRect;

  

Rectangle with the bounds that defines the region.

  function IsPointInPart(); override;

  

Indicates if a point with the specified coordinates is within the rectangle used as the bounds for the region.

end;

Inheritance

TLazRegionRect

  

Implements a region defined by a TRect structure.

|

TLazRegionPart

  

Base class used for rectangular areas in a region.

|

TObject

Description

TLazRegionRect is a TLazRegionPart descendant which implements a region as a rectangular area. It includes a Rect member used to store the TRect with the bounds for the region. It also provides an overridden IsPointInPart method to examine the Rect member when locating a point in the region. Instances of TLazRegionRect are created when the AddRectangle method in TLazRegion is called.

See also

TLazRegionPart

  

Base class used for rectangular areas in a region.

TLazRegion.Parts

  

List with the Rectangles, Polygons, and Ellipses that define the display area for the region.

TLazRegion.AddRectangle

  

Adds the specified TRect instance to the Parts member.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.