Table of Contents

TTMSFNCPlannerCacheItem Class

Stores a single pre-rendered bitmap tile together with the source rectangle, draw rectangle, item reference, and grid coordinates used to paint planner cells, appointment items, headers, and time-line labels without redrawing them every frame.

API unit family: TMSFNCPlannerData

Syntax

TTMSFNCPlannerCacheItem = class

Properties

Name Description
Bitmap Pre-rendered bitmap for this tile; nil when bitmap caching is disabled.
Col Column index of this tile in the grid coordinate system.
DrawRect Clipped drawing rectangle used during the current render pass.
EndPosition Last resource position index spanned by this tile; used for group and full-day header tiles.
EndTime End date/time value covered by this tile; set for cell and item tiles.
FullDay Zero-based index of the full-day band entry associated with this tile.
Group Zero-based index of the group associated with this tile; set when Kind is ikGroupTop or ikGroupBottom.
Idx Internal render index used when an item spans multiple tiles across wrapped rows or positions.
Item The appointment item associated with this tile; set when Kind is ikItem, ikFullDayItemTop, or ikFullDayItemBottom.
Kind Type of planner element this tile represents.
Position Zero-based resource position index for this tile.
Rect Bounding rectangle of this tile in planner canvas coordinates.
Row Row index of this tile in the grid coordinate system.
StartPosition First resource position index spanned by this tile; used for group and full-day header tiles.
StartTime Start date/time value covered by this tile; set for cell and item tiles.
Value Fractional time value (hours from midnight) for timeline label tiles.

Methods

Name Description
CreateCache Creates a generic pre-rendered bitmap cache tile of the specified kind and optional position.
CreateCell Creates a cache tile for a grid cell covering the specified column, row, time range, and resource position.
CreateFullDayBottom Creates a cache tile for the bottom full-day band header spanning the given resource positions.
CreateFullDayItemBottom Creates a cache tile for a full-day item displayed in the bottom full-day band.
CreateFullDayItemTop Creates a cache tile for a full-day item displayed in the top full-day band.
CreateFullDayTop Creates a cache tile for the top full-day band header spanning the given resource positions.
CreateGroupBottom Creates a cache tile for the bottom group header spanning the given resource positions.
CreateGroupTop Creates a cache tile for the top group header spanning the given resource positions.
CreateItem Creates a cache tile for a planner appointment item at the given position and render index.
CreatePositionBottom Creates a cache tile for the bottom position header of the given resource position.
CreatePositionTop Creates a cache tile for the top position header of the given resource position.
CreateTimeLineLeft Creates a cache tile for a left-side timeline label at the given time value and row.
CreateTimeLineRight Creates a cache tile for a right-side timeline label at the given time value and row.