![]() |
Adobe Photoshop SDK |
|
Resource Suite CallbacksThis suite of callback routines provides support for storing and retrieving data from a document. More...
Detailed DescriptionThis suite of callback routines provides support for storing and retrieving data from a document.
These routines provide pseudo-resources which plug-in modules can attach to documents and use to communicate with each other. The standard Resource Suite is found as a pointer in the parameter blocks of the plug-in modules. You can access the routines within the Resource Suite in the following manner: // FormatRecord global pointer. FormatRecord * gFormatRecord = NULL; DLLExport MACPASCAL void PluginMain (const int16 selector, void * formatParamBlock, int32 * data, int16 * result) { // The Resource Suite is contained in the parameter block passed // in formatParamBlock. gFormatRecord = reinterpret_cast<FormatRecordPtr>(formatParamBlock); ... // Get the Resource Suite from the parameter block, and call // countProc to count the number of "histResource" resources. int16 resourceCount = gFormatRecord->resourceProcs->countProc(histResource); ... } Define Documentation
The current version of the resource suite.
Current number of routines in the Resource Suite.
Typedef Documentation
Counts the number of resources of a given type.
Gets the indicated resource for the current document. The plug-in host owns the returned handle. The handle should be treated as read-only.
Deletes the indicated resource in the current document. Note that since resources are identified by index rather than ID, this causes subsequent resources to be renumbered.
Adds a resource of the given type at the end of the list for that type.
The contents of
|