Site Tools


documentation:development:opera:pf25:ppgfldr:smmfldr:ldofldr:01ldo009

CenterCRectInCRect

Centers a CRect over or within another CRect.

Synopsis

CRect * CenterCRectInCRect (CRect *dst, CRect *src)

Description

Centers the destination rectangle (dst) over or within the source rectangle (src). If the destination rectangle is smaller than the source rectangle, its values are modified to center it within the source rectangle. If the destination rectangle is larger than the source rectangle, its values are modified to center it over the source rectangle. In either case, the resulting rectangle retains its original sizes; only the position changes.

Arguments

  • dst Pointer to the CRect to be centered.
  • src Pointer to the CRect within which dst is to be centered.

Return Value

Returns dst.

Implementation

Library call implemented in lib3do.lib.

Associated Files

lib3do.lib, celutils.h

See Also

documentation/development/opera/pf25/ppgfldr/smmfldr/ldofldr/01ldo009.txt · Last modified: 2022/10/10 16:53 by 127.0.0.1