Logo Search packages:      
Sourcecode: adesklets version File versions

void imlib_image_attach_data_value ( const char *  key,
void *  data,
int  value,
Imlib_Internal_Data_Destructor_Function  destructor_function 

key A string.
data A pointer.
value A value.
destructor_function An Imlib internal function.
Attaches data to the current image with the string key of key, and the data of data and an integer of value. The destructor_function function, if not NULL is called when this image is freed so the destructor can free data, if this is needed.

Definition at line 4980 of file imlib2.c.

   ImlibImage         *im;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER("imlib_image_attach_data_value", "image", ctx->image);
   CHECK_PARAM_POINTER("imlib_image_attach_data_value", "key", key);
   CAST_IMAGE(im, ctx->image);
   __imlib_AttachTag(im, key, value, data,
                     (ImlibDataDestructorFunction) destructor_function);

Generated by  Doxygen 1.6.0   Back to index