FMX.Graphics.TPathData.AddRectangle
Delphi
procedure AddRectangle(const ARect: TRectF; const XRadius, YRadius: Single; const ACorners: TCorners;
const ACornerType: TCornerType = TCornerType.Round);
C++
void __fastcall AddRectangle(const System::Types::TRectF &ARect, const float XRadius, const float YRadius, const Fmx::Types::TCorners ACorners, const Fmx::Types::TCornerType ACornerType = (Fmx::Types::TCornerType)(0x0));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TPathData |
Description
Adds a rectangle with customized shapes of corners to the current TPathData.
AddRectangle splits the rectangle in simple figures and adds the points needed to represent them to the Points array. The added points have appropriate types to represent the figures.
ARect
specifies the rectangle to be added.
XRadius
specifies the distance from a corner to the start point of the corner customization on horizontal sides. The maximum value of XRadius
is half of the rectangle's width.
YRadius
specifies the distance from a corner to the start point of the customization on vertical sides. The maximum value of YRadius
is half of the rectangle's height.
ACorners
specifies the corners to apply the customization to. To apply the customization to all corners, use the AllCorners constant.
ACornerType
specifies the TCornerType type of corner shapes' customization. It is an optional parameter with a default value of Round
.
See Also
- FMX.Graphics.TPathData.Points
- FMX.Graphics.TPathPointKind
- FMX.Graphics.TPathData.AddArc
- FMX.Graphics.TPathData.AddEllipse
- FMX.Types.TCornerType
- FMX.Types.TCorners
- FMX.Types.AllCorners