TRegion class
A defined area on a screen or canvas used to render a graphic image or text output.
Declaration
TRegion = class(TGraphicsObject)Inheritance
Description
TRegion is a
TGraphicsObject descendant which represents
shaped areas that can be drawn, filled, or examined on a screen or canvas. The
shaped areas can be one or more rectangles, and can overlap.
Use AddRectangle to create and combine a new rectangular area with
the existing areas in the region. Each region has a Handle which
identifies the construct. It is modified when a new rectangular area is added
to the region.
TRegion is the type used to implement the Region propriety in
TCanvas, and passed as an argument to the SetShape
method in TWinControl.
TLazRegion in LazRegions.pas and
TLazCanvas in LazCanvas.pas for alternate
implementations that provide these capabilities.
Properties
ClipRect | public | The clipping rectangle for the region. |
Reference | public | A Reference to the current Region. |
Methods
SetClipRect | protected | Sets the value for the ClipRect property. |
GetClipRect | protected | Gets the value for the ClipRect property. |
Create | public | Constructor for the class instance. |
Destroy | public | Destructor for the class instance. |
Assign | public | Assign - if Source is another TRegion, copies the dimensions of the clipping rectangle. |
AddRectangle | public | Convenience routine to add a rectangle to the region. |
Inherited
From TPersistent (7)
AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner
From TObject (40)
AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
