getUserData

Return user data previously attached to cr using the specified key. If no user data has been attached with the given key this function returns null.

Parameters

cr cairo.context.Context

a #cairo_t

key cairo.types.UserDataKey

the address of the #cairo_user_data_key_t the user data was attached to

Return Value

Type: void*

the user data previously attached or null.