FMX.ListView.Types.TListItemText.CalculateLocalRect
Delphi
procedure CalculateLocalRect(const DestRect: TRectF; const SceneScale: Single; const DrawStates: TListItemDrawStates; const Item: TListItem); override;
C++
virtual void __fastcall CalculateLocalRect(const System::Types::TRectF &DestRect, const float SceneScale, const TListItemDrawStates DrawStates, TListItem* const Item);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.ListView.Types.pas FMX.ListView.Types.hpp |
FMX.ListView.Types | TListItemText |
Description
Calculates the destination rectangle area of a list item.
FMX.ListView.Types.TListItemText.CalculateLocalRect inherits from FMX.ListView.Types.TListItemDrawable.CalculateLocalRect. All content below this line refers to FMX.ListView.Types.TListItemDrawable.CalculateLocalRect.
Calculates the destination rectangle area of a list item.
The CalculateLocalRect virtual method can be implemented in child classes.
The CalculateLocalRect method receives the LocalRect destination area of the list item, the scene scale and the TListItemDrawStates drawing state. It calculates the resulting destination area that the item will occupy, according to its alignment and its offset.
See Also
- FMX.ListView.Types.TListItemDrawable.LocalRect
- FMX.ListView.Types.TListItemDrawStates
- FMX.ListView.Types.TListItemDrawable.PlaceOffset
- FMX.ListView.Types.TListItemDrawable.VertAlign
- FMX.ListView.Types.TListItemAlign
- FMX.ListView.Types.TListItemDrawable.Height
- FMX.ListView.Types.TListItemDrawable.Width