|
AIFXGWriteStreamInterface Struct Reference
Streaming interface to be supplied by the client, to be used when calling AIFXGFileFormatSuite::ExportFXGToStream() .
More...
#include <AIFXGFileFormat.h>
List of all members.
Public Attributes |
AIAPI AIBoolean(* | IsExistingAsset )(AIFXGWriteStreamInterface *stream, ai::int16 assetType, const ai::UnicodeString &assetPath) |
| Callback to client to check whether an asset currently exists in an asset folder.
|
AIAPI AIErr(* | BeginAsset )(AIFXGWriteStreamInterface *stream, ai::int16 assetType, const ai::UnicodeString &assetName, const ai::UnicodeString &mimeType) |
| Callback to client to open an asset.
|
AIAPI AIErr(* | EndAsset )(AIFXGWriteStreamInterface *stream, ai::int16 assetType) |
| Callback to client to close an opened asset.
|
AIAPI size_t(* | WriteBytes )(AIFXGWriteStreamInterface *stream, const ai::uint8 *buffer, const size_t maxToWrite) |
| Callback to client to write bytes to current stream.
|
AIAPI ai::int16(* | GetExpandOptionForArt )(AIFXGWriteStreamInterface *stream, AIArtHandle art, ai::int32 *expandFlags) |
| Callback to determine the appropriate expand setting for an art object.
|
AIAPI AIBoolean(* | GeneratePrivateDataForArt )(AIFXGWriteStreamInterface *stream, AIArtHandle art) |
| Callback to report whether client wants private data generation for an art object.
|
AIAPI AIErr(* | GetPublicID )(AIFXGWriteStreamInterface *stream, ai::UnicodeString &publicID) |
| Callback to retrieve the filepath/name of the current stream.
|
AIAPI AIErr(* | GetRelativeImageFolderPath )(AIFXGWriteStreamInterface *stream, ai::UnicodeString &relImageFolderPath) |
| Callback to retrieve the relative Image folder path, so that the BitmapGraphic FXG tag can create the proper relative path of the image source.
|
AIAPI AIErr(* | DeleteAutoGeneratedImage )(AIFXGWriteStreamInterface *stream, const ai::UnicodeString &imageName) |
| Internal.
|
Detailed Description
Streaming interface to be supplied by the client, to be used when calling AIFXGFileFormatSuite::ExportFXGToStream() .
Member Data Documentation
Callback to client to open an asset.
- Parameters:
-
| stream | [in] The stream pointer that the client has passed to AIFXGFileFormatSuite::ExportFXGToStream() |
| assetType | [in] Type of asset See AIFXGAssetTypeEnum |
| assetName | [in/out] Name of asset. Client can change the input name, so that the export plug-in can use the changed name. |
| mimeType | [in] Mime type of asset |
- Returns:
kCanceledErr if client does not want to receive further write and close calls for this particular open-asset call.
Callback to client to close an opened asset.
- Parameters:
-
- Returns:
kNoErr on success
Callback to report whether client wants private data generation for an art object.
If not, application private data corresponding to the art is not written. (Note that this function returns a constant value, not an error code.)
- Parameters:
-
- Returns:
- True if client wants private data generation for this particular art, false otherwise.
Callback to retrieve the filepath/name of the current stream.
- Parameters:
-
- Returns:
kNoErr on success.
Callback to retrieve the relative Image folder path, so that the BitmapGraphic FXG tag can create the proper relative path of the image source.
For example, if client returns the path "MyFile.assets/images" and the image file name is MyImage.png, the entry in the BitmapGrapic tag is source="\@Embed('MyFile.assets/images/MyImage.png')".
- Parameters:
-
- Returns:
kNoErr on success.
Callback to client to check whether an asset currently exists in an asset folder.
- Parameters:
-
- Returns:
- True if the asset exists in the asset folder, false otherwise.
Callback to client to write bytes to current stream.
(Note that this function returns a constant value, not an error code.)
- Parameters:
-
- Returns:
- actual bytes written
The documentation for this struct was generated from the following file:
|