#include <MResourceShell.h>
|
| static void | ReleaseResource (const SysHandle rsrcHandle) |
| |
| static void | DetachResource (const SysHandle rsrcHandle) |
| |
| static int32 | GetSizeofResource (const SysHandle rsrcHandle) |
| |
| static SysHandle | GetResourceByID (RsrcType type, RsrcID id) |
| |
| static SysHandle | GetResourceByIndex (RsrcType type, RsrcID index) |
| |
| static int16 | CountResources (RsrcType type) |
| |
| static SysHandle | GetResource (const RsrcSpec &spec) |
| |
| static int16 | CountResourcesLI (const PMLocaleId &locale, RsrcType resType) |
| |
| static int16 | CountResourcesLI (const RsrcSpec &spec) |
| |
| static SysHandle | GetResourceLI (const RsrcSpec &spec) |
| |
| static void | EnumerateResourcesLI (const PMLocaleId &locale, const PluginID &pluginID, RsrcType resType, EnumResource func, void *enumData, bool16 resourceAlreadyOpened=kFalse) |
| |
| static void | EnumerateResources (const PluginID &pluginID, RsrcType resType, EnumResource func, void *enumData) |
| |
Macintosh implementation for some resource reading methods.
- See Also
- CResourceShell for more
| int16 MResourceShell::CountResources | ( | RsrcType | rsrcType | ) | |
| inlinestatic |
Get a count of resources of a certain type.
- Parameters
- Returns
- the count of resources of the desired type
- See Also
- CountResources
| void MResourceShell::DetachResource | ( | const SysHandle | rsrcHandle | ) | |
| inlinestatic |
Retains a resource handle. Breaks the connection to the resource. Equivilent to mac toolbox DetachResource call.
- Parameters
| rsrcHandle | which handle to detach |
- See Also
- DetachResource
| SysHandle MResourceShell::GetResourceByID | ( | RsrcType | type, | | | RsrcID | id | | ) | | |
| inlinestatic |
Get a handle to a resource.
- Parameters
| type | which resource type |
| id | which resource id |
- Returns
- handle to the requested resource
- See Also
- GetResourceByID
| SysHandle MResourceShell::GetResourceByIndex | ( | RsrcType | type, | | | RsrcID | index | | ) | | |
| inlinestatic |
Get a handle to a resource by index
- Parameters
| type | which resource type |
| index | which resource index |
- Returns
- handle to the requested resource
- See Also
- GetResourceByIndex
| int32 MResourceShell::GetSizeofResource | ( | const SysHandle | rsrcHandle | ) | |
| inlinestatic |
Get the size of a resource
- Parameters
| rsrcHandle | handle to the resource you want to know the size of. |
- Returns
- size of the resource
- See Also
- GetSizeofResource
| void MResourceShell::ReleaseResource | ( | const SysHandle | rsrcHandle | ) | |
| inlinestatic |
Releases resource handle. Usually called to free up memory after a call to GetResource.
- Parameters
| rsrcHandle | which handle to free |
- See Also
- ReleaseResource