L_SvgEnumerateCallback Function

#include "l_bitmap.h"

L_INT pEXT_CALLBACK YourFunction(node, userData)

L_SvgNodeHandle node;

SVG document handle

L_VOID* userData;

pointer to additional data

Callback to receive the SVG elements (nodes) from the L_SvgEnumerateElements function.

Parameter

Description

node Handle for the SVG element being enumerated.
userData 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.

Returns

SUCCESS Continue enumerating SVG nodes.
< 1 Stop enumerating SVG nodes.

Comments

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

LTSVG
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

Example

For an example, refer to L_SvgEnumerateElements.

Help Version 20.0.2019.3.12
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS SVG C API Help