#include "l_bitmap.h"
L_INT pEXT_CALLBACK YourFunction(node, userData)
Callback to receive the SVG elements (nodes) from the L_SvgEnumerateElements function.
Handle for the SVG element being enumerated.
Void pointer that you can use to access a variable or structure containing data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. (This is the same pointer that you pass in the pUserData parameter of the L_SvgEnumerateElements function.)
Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.
Value | Meaning |
---|---|
SUCCESS | Continue enumerating SVG nodes. |
< 1 | Stop enumerating SVG nodes. |
The L_SvgEnumerateElements function calls your callback function for each SVG node in the specified SVG document.
To continue to the next element (node) if any, return SUCCESS. To stop enumerating, return 0.
Required DLLs and Libraries
For an example, refer to L_SvgEnumerateElements.