TQ3ElementCopyGetMethod
You can define a method to copy the data of your custom element types when that data is being retrieved from a set.
typedef TQ3Status (*TQ3ElementCopyGetMethod) ( const void *fromInternalElement, void *toAPIElement);
fromInternalElement- A pointer to the element data associated with an element having your custom element type.
toAPIElement- On entry, a pointer to an empty, zeroed block of memory large enough to contain the element data associated with an element having your custom element type.
DESCRIPTION
YourTQ3ElementCopyGetMethodfunction should copy the element data pointed to by thefromInternalElementparameter into the location pointed to by thetoAPIElementparameter. This method is called whenever theQ3Set_GetorQ3AttributeSet_Getfunction is used to get the data of an element of your custom type in a set. ThetoAPIElementparameter contains the same data pointer that was passed toQ3Set_GetorQ3AttributeSet_Get.RESULT CODES
YourTQ3ElementCopyGetMethodfunction should returnkQ3Successif it is successful andkQ3Failureotherwise.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help