FMX.Grid.TGlyphColumn.GlyphPlaceIntoBounds
Delphi
function GlyphPlaceIntoBounds(const Index: TImageIndex; const Bounds: TRectF; const Scale: Single): TRectF;
C++
System::Types::TRectF __fastcall GlyphPlaceIntoBounds(const System::Uitypes::TImageIndex Index, const System::Types::TRectF &Bounds, const float Scale);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Grid.pas FMX.Grid.hpp |
FMX.Grid | TGlyphColumn |
Description
Returns the rectangle in which to draw the Index
image. Stretches and aligns the original rectangle of the Index
image, preserving its rectangle proportions, to best fit into the Bounds
rectangle.
GlyphPlaceIntoBounds implements algorithm like the following:
- If the Stretch property of the current TGlyphColumn object is
False
, then GlyphPlaceIntoBounds retrieves the biggest rectangle from all layers of theIndex
image in the destination collection stretched to theScale
= 1
. Then GlyphPlaceIntoBounds stretch the obtained rectangle, preserving its rectangle proportions, to best fits into the specifiedBounds
rectangle. Then GlyphPlaceIntoBounds aligns this rectangle in theBounds
rectangle using the default alignment parameters of the current column. GlyphPlaceIntoBounds returns the obtained rectangle. - If the Stretch property of the current TGlyphColumn object is
True
, then GlyphPlaceIntoBounds retrieves the biggest rectangle from all layers of theIndex
image in the destination collection with the Scale used in the layer. Then GlyphPlaceIntoBounds stretch the obtained rectangle, preserving its rectangle proportions, to best fits into the specifiedBounds
rectangle. Then GlyphPlaceIntoBounds aligns this rectangle in theBounds
rectangle using the default alignment parameters of the current column. GlyphPlaceIntoBounds returns the obtained rectangle.
See Also
- FMX.ImgList.TCustomImageList.BestSize
- FMX.Grid.TGlyphColumn.Stretch
- FMX.Grid.TColumn.RectPlaceIntoBounds