[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Graphics' (#lcl)

# TPenHandleCache

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TPenHandleCache - Resource Cache for Pen Handles.

## Declaration

Source position: graphics.pp line 625

`type TPenHandleCache = class(TResourceCache)`
`protected`
`procedure RemoveItem(); override;` |  |
`public`
`constructor Create;` |  | Constructor for the class instance.
`function CompareDescriptors(); override;` |  | Compares the specified image descriptors to determine if they have the same pens and pattern data.
`function FindPen();` |  | FindPen - returns a ResourceCacheItem corresponding to the nominated Handle.
`function FindPenDesc();` |  | FindPenDesc - returns a descriptor for the given pen and pattern.
`function Add();` |  | Add - returns a cache descriptor corresponding to the pen that has been added to the cache.
`end;`

## Inheritance

`TPenHandleCache` |  | TPenHandleCache - Resource Cache for Pen Handles.
`TResourceCache` |  | TResourceCache - a cache (linked list) for storing Resources.
`TObject`