TCustomImageListGetWidthForPPI procedure type
Specifies an event handler used to get image widths for a display density (PPI).
Declaration
TCustomImageListGetWidthForPPI = procedure(Sender: TCustomImageList;
AImageWidth: Integer;
APPI: Integer;
var AResultWidth: Integer)
of objectArguments
Sender | Image list generating the event notification. |
AImageWidth | Initial image width used in the event handler. |
APPI | Display density (Pixels per Inch). |
AResultWidth | Imaged width calculated in the event handler for the display density. |
Description
TCustomImageListGetWidthForPPI is an object procedure which
specifies an event handler used to get image widths for a specific display
density (PPI). TCustomImageListGetWidthForPPI allows an application to
override the value returned in the
WidthForPPI property (or when
calling the
GetWidthForPPI method) in
TCustomImageList.
Sender contains the
TCustomImageList instance
triggering the event notification.
AImageWidth contains the image width used as the basis for the
calculation.
APPI contains the display density (Pixels per Inch) for the
derived image width.
AResultWidth is a variable parameter used to store the image width
derived in the event handler for the specified display density.
TCustomImageListGetWidthForPPI is the type used to implement the
OnGetWidthForPPI property in TCustomImageList.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
