TSharedIcon class
Implements a reference-counted shared Icon image type.
Declaration
TSharedIcon = class(TSharedRasterImage)Inheritance
- TSharedIcon
- TSharedRasterImage
- TSharedImage
Descends from it: TSharedCursorImage TSharedIcnsIcon
Description
TSharedIcon is a
TSharedRasterImage descendant which
implements a reference counted shared Icon. TSharedIcon provides access to
the list of images available in the Icon as
TIconImage instances
using the
Images property. Methods are provided to add, delete,
clear, sort, and retrieve the images.
TSharedIcon is the type used to implement the internal shared image in
TCustomIcon (and descendant classes).
Properties
Images | public | Provides indexed access to the images available in the Icon. |
Methods
FreeHandle | protected | Frees the handle for the shared reference-counted icon. |
UpdateFromHandle | protected | Frees the existing icon image and reloads it from the specified handle. |
IsEmpty | protected | Indicates if the shared icon is empty (contains no icon images). |
GetImage | protected | Gets the value for the indexed Images property. |
Create | public | Create - constructor for TSharedIcon: performs inherited Create then creates a list of images. |
Destroy | public | Destroy - destructor for TSharedIcon: frees the list of images and performs inherited Destroy. |
Clear | public | Clear - remove the icon and free its resources. |
Delete | public | Removes the icon image with the specified index. |
GetIndex | public | Gets the Index of an image with specified pixel format, height and width. |
GetImagesClass | public | Gets the class reference used to create a new icon image in the Images property. |
Add | public | Adds the specified image to the list of Images in the icon. |
Sort | public | Sorts values in Images using the IconCompare routine. |
Count | public | Count - returns the number of references to the shared icon. |
Inherited
From TSharedRasterImage (5)
BitmapCanvas CreateDefaultHandle HandleAllocated ReleaseHandle SaveStream
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
