TGroupResource class
Abstract common class for group icon and group cursor classes
Declaration
TGroupResource = class(TAbstractResource)Inheritance
- TGroupResource
- TAbstractResource
Descends from it: TGroupCursorResource TGroupIconResource
Description
This class provides common functionalities that are extended by TGroupIconResource and TGroupCursorResource.
Resources of type RT_GROUP_ICON and RT_GROUP_CURSOR represent a .ico or .cur file, respectively. However, data isn't contained in a single resource, but it's scattered over several different resources. That is, a .ico file contains an icon, which is made of several different images (for different sizes and color depth); when it is represented as a resource, however, the RT_GROUP_ICON resource only contains information about the single images, which are contained each in a different resource of type RT_ICON. The single resources are pretty unuseful alone, since they only consist of raw image data: they must be accessed in the contest of the RT_GROUP_ICON resource, which provides information about them.
TGroupIconResource and TGroupCursorResource provide a way to handle resources of these types as if they were .ico or .cur files. This class implements common functionalities, since icons and cursors are very similar.
See also
Properties
ItemData | public | Resource data as an ICO/CUR stream |
Methods
FindSubResources | protected | |
ReadResourceItemHeader | protected | |
CheckBuildItemStream | protected | |
GetItemData | protected | |
WriteHeader | protected | |
WriteResHeader | protected | |
CreateSubItems | protected | |
CreateSubItem | protected | |
UpdateItemOwner | protected | |
ClearItemList | protected | |
DeleteSubItems | protected | |
GetSubStreamCount | protected | |
GetSubStream | protected | |
SetOwnerList | protected | Protected method to let a resource list set itself as the owner of the resource |
NotifyResourcesLoaded | protected | Tells the resource that all resources have been loaded |
Destroy | public | Destroys the object |
CompareContents | public | Compares the contents of the resource to the contents of another one |
SetCustomItemDataStream | public | Sets a custom stream as the underlying stream for ItemData |
UpdateRawData | public | Updates RawData stream. |
Fields
fType | protected | |
fName | protected | |
fItemData | protected | |
fItemList | protected | |
dummyType | protected | |
dummyName | protected |
Inherited
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
