mate-vfs-util

## mate-vfs-util mate-vfs-util |

## Synopsis

    #include <libmateui/libmateui.h>

    void                (*MateGdkPixbufLoadCallback)       (MateGdkPixbufAsyncHandle *handle,
                                                             MateVFSResult error,
                                                             GdkPixbuf *pixbuf,
                                                             gpointer cb_data);
    void                (*MateGdkPixbufDoneCallback)       (MateGdkPixbufAsyncHandle *handle,
                                                             gpointer cb_data);
    GdkPixbuf *         mate_gdk_pixbuf_new_from_uri       (const char *uri);
    MateGdkPixbufAsyncHandle * mate_gdk_pixbuf_new_from_uri_async
                                                            (const char *uri,
                                                             MateGdkPixbufLoadCallback load_callback,
                                                             MateGdkPixbufDoneCallback done_callback,
                                                             gpointer callback_data);
    void                mate_gdk_pixbuf_new_from_uri_cancel
                                                            (MateGdkPixbufAsyncHandle *handle);

## Description

## Details

### MateGdkPixbufLoadCallback ()

    void                (*MateGdkPixbufLoadCallback)       (MateGdkPixbufAsyncHandle *handle,
                                                             MateVFSResult error,
                                                             GdkPixbuf *pixbuf,
                                                             gpointer cb_data);

`handle` : |
`error` : |
`pixbuf` : |
`cb_data` : |

### MateGdkPixbufDoneCallback ()

    void                (*MateGdkPixbufDoneCallback)       (MateGdkPixbufAsyncHandle *handle,
                                                             gpointer cb_data);

`handle` : |
`cb_data` : |

### mate_gdk_pixbuf_new_from_uri ()

    GdkPixbuf *         mate_gdk_pixbuf_new_from_uri       (const char *uri);

Loads a GdkPixbuf from the image file `uri` points to, scaling it to the desired size. If you pass -1 for `width` or `height` then the value specified in the file will be used.

When preserving aspect ratio, if both height and width are set the size is picked such that the scaled image fits in a width * height rectangle.

`uri` : | the uri of an image
Returns : | The loaded pixbuf, or NULL on error

Since 2.14

### mate_gdk_pixbuf_new_from_uri_async ()

    MateGdkPixbufAsyncHandle * mate_gdk_pixbuf_new_from_uri_async
                                                            (const char *uri,
                                                             MateGdkPixbufLoadCallback load_callback,
                                                             MateGdkPixbufDoneCallback done_callback,
                                                             gpointer callback_data);

`uri` : |
`load_callback` : |
`done_callback` : |
`callback_data` : |
Returns : |

### mate_gdk_pixbuf_new_from_uri_cancel ()

    void                mate_gdk_pixbuf_new_from_uri_cancel
                                                            (MateGdkPixbufAsyncHandle *handle);

`handle` : |