FMX.Types.TPathData.AddRectangle
提供:RAD Studio API Documentation
Delphi
procedure AddRectangle(const ARect: TRectF; const XRadius, YRadius: Single; const ACorners: TCorners; const ACornerType: TCornerType = TCornerType.ctRound);
C++
void __fastcall AddRectangle(const System::Types::TRectF &ARect, const float XRadius, const float YRadius, const TCorners ACorners, const TCornerType ACornerType = (TCornerType)(0x0));
目次 |
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
procedure function |
public | FMX.Types.pas FMX.Types.hpp |
FMX.Types | TPathData |
説明
カスタマイズされた角を持つ四角形を、現在の TPathData に追加します。
ARect パラメータは、追加される rectangle を示します。
XRadius パラメータは、水平方向での、角からカスタマイズの始点への距離を示します。 XRadius の最大値は、四角形の幅の半分です。 これより大きい場合には、最大値が使用されます。
YRadius パラメータは、垂直方向での、角からカスタマイズの始点への距離を示します。 YRadius の最大値は、四角形の高さの半分です。 これより大きい場合には、最大値が使用されます。
ACorners パラメータは、カスタマイズを適用する角を示します。 すべての角にカスタマイズを適用するには、AllCorners 定数を使用します。
ACornerType パラメータは、角のタイプを示します。 これは任意のパラメータで、デフォルト値は ctRound です。
AddRectangle は、楕円をシンプルな形に分割し、表現する必要のある Points に点を追加します。 追加される点は、異なる型を持っています。
関連項目
- FMX.Types.TPathData.Points
- FMX.Types.TPathPointKind
- FMX.Types.TPathData.AddArc
- FMX.Types.TPathData.AddEllipse
- FMX.Types.TCornerType
- FMX.Types.TCorners
- FMX.Types.AllCorners
