System.Types.TRect.CenteredRect
C++
TRect CenteredRect(const TRect &CenteredRect) const _ALWAYS_INLINE {
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | SystemTypes.h | System.Types | TRect |
説明
中央揃えされた四角形を返します。
CenteredRect は、別の四角形から中央揃えした四角形を返します。CenteredRect
がすでに中央揃えされている場合、CenteredRect は同じ四角形を返します。
中央揃えされた四角形の Width と Height の値は、偶数です。
中央揃えされた四角形は、中央にある四角形と同じ CenterPoint を持つ四角形です。CenteredRect は、ソース四角形の中央に座標がある、新しい四角形を返します。