Logo Search packages:      
Sourcecode: adesklets version File versions

int imlib_image_get_attached_value ( const char *  key  ) 

key A string.
The attached value as an integer, or 0 if none.
Returns the value attached to the current image with the specified key key. If none could be found 0 is returned.

Definition at line 5032 of file imlib2.c.

   ImlibImageTag      *t;
   ImlibImage         *im;

   if (!ctx)
      ctx = imlib_context_new();
   CHECK_PARAM_POINTER_RETURN("imlib_image_get_attached_value", "image",
                              ctx->image, 0);
   CHECK_PARAM_POINTER_RETURN("imlib_image_get_attached_value", "key", key, 0);
   CAST_IMAGE(im, ctx->image);
   t = __imlib_GetTag(im, key);
   if (t)
      return t->val;
   return 0;

Generated by  Doxygen 1.6.0   Back to index