Modifies the input rectangle R to be centered within the bounding rectangle. The modified R rectangle is returned.
Namespace: FMX.RS.Graphics
Delphi
|
function CenterRect( var R: TRect; const Bounds: TRect ): TRect; overload;
|
Parameters
R
Type: TRect
Rectangle to center
Bounds
Type: TRect
Bounding rectangle
Return Value
Type: TRect
Reference
•FMX.RS.Graphics.OffsetRSRect(TRSRect,Single,Single) •FMX.RS.Graphics.RSCenterPoint(TRSPoint,TRSPoint,Single) •FMX.RS.Graphics.CenterRect(Integer,Integer,Integer,Integer) •FMX.RS.Graphics.CenterRect(TPoint,Integer,Integer) •FMX.RS.Graphics.CenterRect(TRSGfxFloat,TRSGfxFloat,TRSGfxFloat,TRSGfxFloat) •FMX.RS.Graphics.CenterRect(TRSPoint,TRSGfxFloat,TRSGfxFloat) •FMX.RS.Graphics.CenterRect(TRSRect,TRSRect) •FMX.RS.Graphics |