Logo Search packages:      
Sourcecode: adesklets version File versions

void* imlib_image_get_attached_data ( const char *  key  ) 

key A string.
The attached data as a pointer, or NULL if none.
Gets the data attached to the current image with the key key specified. NULL is returned if no data could be found with that key on the current image.

Definition at line 5005 of file imlib2.c.

   ImlibImageTag      *t;
   ImlibImage         *im;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER_RETURN("imlib_image_get_attached_data", "image",
                              ctx->image, NULL);
   CHECK_PARAM_POINTER_RETURN("imlib_image_get_attached_data", "key", key,
   CAST_IMAGE(im, ctx->image);
   t = __imlib_GetTag(im, key);
   if (t)
      return t->data;
   return NULL;

Generated by  Doxygen 1.6.0   Back to index