Sign in Join
FPDoc Onlineexperiment

TGroupResource class

In unit groupresource

Abstract common class for group icon and group cursor classes

Declaration

pascal
TGroupResource = class(TAbstractResource)

Inheritance

  1. TGroupResource
  2. 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.

An object of this class should never be directly instantiated: use a descendant class instead.

See also

Properties

ItemDatapublicResource data as an ICO/CUR stream

Methods

FindSubResourcesprotected
ReadResourceItemHeaderprotected
CheckBuildItemStreamprotected
GetItemDataprotected
WriteHeaderprotected
WriteResHeaderprotected
CreateSubItemsprotected
CreateSubItemprotected
UpdateItemOwnerprotected
ClearItemListprotected
DeleteSubItemsprotected
GetSubStreamCountprotected
GetSubStreamprotected
SetOwnerListprotectedProtected method to let a resource list set itself as the owner of the resource
NotifyResourcesLoadedprotectedTells the resource that all resources have been loaded
DestroypublicDestroys the object
CompareContentspublicCompares the contents of the resource to the contents of another one
SetCustomItemDataStreampublicSets a custom stream as the underlying stream for ItemData
UpdateRawDatapublicUpdates RawData stream.

Fields

fTypeprotected
fNameprotected
fItemDataprotected
fItemListprotected
dummyTypeprotected
dummyNameprotected

Inherited

From TAbstractResource (23)

_Type CacheData ChangeDescTypeAllowed ChangeDescValueAllowed Characteristics CodePage Create DataOffset DataSize DataVersion GetName GetType HeaderSize LangID MemoryFlags Name Owner OwnerList RawData SetChildOwner SetCustomRawDataStream SetDescOwner Version

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.