Structure for a application handler. More...
#include <fs_app_r.h>
Public Attributes | |
FS_LPVOID | clientData |
User-defined data. More... | |
FS_RESULT(* | CallFunction )(FS_LPVOID clientData, FSCRT_DOCUMENT document, FS_INT32 function, FSCRT_VAR *parameters, FS_INT32 count, FSCRT_VAR *ret) |
Callback functions to expand functions of Foxit PDF SDK, unsupported now. More... | |
FS_RESULT(* | OnEvent )(FS_LPVOID clientData, FS_LPVOID senderObject, FS_DWORD senderObjectType, FS_DWORD eventType, FS_LPVOID eventData) |
Callback functions to events from Foxit PDF SDK. More... | |
void(* | OnOutOfMemory )(FS_LPVOID clientData) |
Callback functions indicate that Foxit PDF SDK is out of memory. More... | |
FS_RESULT(* | OnRecover )(FS_LPVOID clientData, FS_LPVOID senderObject, FS_DWORD senderObjectType) |
Callback functions to recover the previous operation when Foxit PDF SDK is out of memory. More... | |
Structure for a application handler.
FS_RESULT(* FSCRT_APPHANDLER::CallFunction) (FS_LPVOID clientData, FSCRT_DOCUMENT document, FS_INT32 function, FSCRT_VAR *parameters, FS_INT32 count, FSCRT_VAR *ret) |
Callback functions to expand functions of Foxit PDF SDK, unsupported now.
[in] | clientData | Pointer to user-defined data. |
[in] | document | Handle to a FSCRT_DOCUMENT object which is a document object. |
[in] | function | Function ID to expand functions of Foxit PDF SDK. |
[in] | parameters | Pointer to parameter list for functions. It could be NULL if count equals zero. |
[in] | count | Count of the parameter parameters, it could be zero if the expanded functions have no parameters. |
[out] | ret | Pointer to a FSCRT_VAR structure that receives the return value of function. It shall not be NULL. |
FS_LPVOID FSCRT_APPHANDLER::clientData |
User-defined data.
FS_RESULT(* FSCRT_APPHANDLER::OnEvent) (FS_LPVOID clientData, FS_LPVOID senderObject, FS_DWORD senderObjectType, FS_DWORD eventType, FS_LPVOID eventData) |
Callback functions to events from Foxit PDF SDK.
Data type of the parameter senderObject depends on the parameter senderObjectType, as follows:
Format: object type - object data type
[in] | clientData | Pointer to user-defined data. |
[in] | senderObject | Pointer to a sender object, related to the parameter senderObjectType. |
[in] | senderObjectType | Object type of the parameter senderObject. Currently available value is FSCRT_OBJECTTYPE_PSI. |
[in] | eventType | The event type of parameter eventData. Currently available value is FSCRT_EVENT_PSI_INVALIDATE. |
[in] | eventData | The event data, related to the parameter eventType. |
void(* FSCRT_APPHANDLER::OnOutOfMemory) (FS_LPVOID clientData) |
Callback functions indicate that Foxit PDF SDK is out of memory.
[in] | clientData | Pointer to the user-defined data. |
FS_RESULT(* FSCRT_APPHANDLER::OnRecover) (FS_LPVOID clientData, FS_LPVOID senderObject, FS_DWORD senderObjectType) |
Callback functions to recover the previous operation when Foxit PDF SDK is out of memory.
Data type of the parameter senderObject depends on the parameter senderObjectType, as following:
Format: object type - object data type
[in] | clientData | Pointer to user-defined data. |
[in] | senderObject | Pointer to a sender object, related to the parameter senderObjectType. Valid values are mentioned in details part. |
[in] | senderObjectType | Object type of the parameter senderObject. Valid values are mentioned in details part. |