System.Types.TRect.CenteredRect
C++
TRect CenteredRect(const TRect &CenteredRect) const _ALWAYS_INLINE {
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | SystemTypes.h | System.Types | TRect |
Description
Returns a centered rectangle.
CenteredRect returns a centered rectangle from another rectangle. If CenteredRect
is already centered, CenteredRect returns the same rectangle.
The values of Width and Height in a centered rectangle are even numbers.
A centered rectangle is a rectangle that has the same CenterPoint as the rectangle it is centered in. CenteredRect returns a new rectangle whose coordinates are in the center of the source rectangle.