System.Types.UnionRect
Delphi
function UnionRect(out Rect: TRect; const R1, R2: TRect): Boolean;
function UnionRect(out Rect: TRectF; const R1, R2: TRectF): Boolean;
function UnionRect(const ARect1, ARect2: TRect): TRect;
function UnionRect(const ARect1, ARect2: TRectF): TRectF;
C++
extern DELPHI_PACKAGE bool __fastcall UnionRect(/* out */ TRect &Rect, const TRect &R1, const TRect &R2)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Types.pas System.Types.hpp |
System.Types | System.Types |
説明
2 つの四角形の統合体を返します。
UnionRect は、指定された四角形の両方を含む、もっとも小さい四角形を返します。
R1
、R2
、Rect
の 3 つのパラメータを伴う UnionRect は、指定された四角形 R1
と R2
の両方を含むもっとも小さい四角形を返します。統合体は、Rect
パラメータで返されます。UnionRectF は、結果の四角形が空でなければ True
を返します。そうでなければ、UnionRectF は False
を返し、Rect
は、(0,0) 位置の幅 0 高さ 0 の四角形に設定されます。
ARect1
、ARect2
の 2 つのパラメータを伴う UnionRect は、指定された四角形 ARect1
と ARect2
の両方を含む、もっとも小さい四角形を返します。
関連項目
- System.Types.UnionRectF
- System.Types.TRect
- System.Types.TRectF
- System.Types.IntersectRect
- System.Types.OffsetRect
- System.Types.IsRectEmpty