TumblerThumbnail

## TumblerThumbnail TumblerThumbnail |

## Synopsis

                        TumblerImageData;
                        TumblerThumbnail;
                        TumblerThumbnailIface;
    gboolean            tumbler_thumbnail_load              (TumblerThumbnail *thumbnail,
                                                             GCancellable *cancellable,
                                                             GError **error);
    gboolean            tumbler_thumbnail_needs_update      (TumblerThumbnail *thumbnail,
                                                             const gchar *uri,
                                                             guint64 mtime);
    gboolean            tumbler_thumbnail_save_image_data   (TumblerThumbnail *thumbnail,
                                                             TumblerImageData *data,
                                                             guint64 mtime,
                                                             GCancellable *cancellable,
                                                             GError **error);
    gboolean            tumbler_thumbnail_save_file         (TumblerThumbnail *thumbnail,
                                                             GFile *file,
                                                             guint64 mtime,
                                                             GCancellable *cancellable,
                                                             GError **error);
    TumblerThumbnailFlavor * tumbler_thumbnail_get_flavor   (TumblerThumbnail *thumbnail);

## Object Hierarchy

      GInterface
       +----TumblerThumbnail

## Prerequisites

TumblerThumbnail requires GObject.

## Properties

      "cache"                    TumblerCache*         : Read / Write / Construct Only
      "flavor"                   TumblerThumbnailFlavor*  : Read / Write / Construct Only
      "uri"                      gchar*                : Read / Write / Construct Only

## Description

## Details

### TumblerImageData

    typedef struct {
      TumblerColorspace colorspace;
      const guchar     *data;
      gboolean          has_alpha;
      gint              bits_per_sample;
      gint              width;
      gint              height;
      gint              rowstride;
    } TumblerImageData;

### TumblerThumbnail

    typedef struct _TumblerThumbnail TumblerThumbnail;

### TumblerThumbnailIface

    typedef struct {
      GTypeInterface __parent__;

      /* signals */

      /* virtual methods */
      gboolean (*load)            (TumblerThumbnail *thumbnail,
                                   GCancellable     *cancellable,
                                   GError          **error);
      gboolean (*needs_update)    (TumblerThumbnail *thumbnail,
                                   const gchar      *uri,
                                   guint64           mtime);
      gboolean (*save_image_data) (TumblerThumbnail *thumbnail,
                                   TumblerImageData *data,
                                   guint64           mtime,
                                   GCancellable     *cancellable,
                                   GError          **error);
      gboolean (*save_file)       (TumblerThumbnail *thumbnail,
                                   GFile            *file,
                                   guint64           mtime,
                                   GCancellable     *cancellable,
                                   GError          **error);
    } TumblerThumbnailIface;

### tumbler_thumbnail_load ()

    gboolean            tumbler_thumbnail_load              (TumblerThumbnail *thumbnail,
                                                             GCancellable *cancellable,
                                                             GError **error);

`thumbnail` : |
`cancellable` : |
`error` : |
Returns : |

### tumbler_thumbnail_needs_update ()

    gboolean            tumbler_thumbnail_needs_update      (TumblerThumbnail *thumbnail,
                                                             const gchar *uri,
                                                             guint64 mtime);

`thumbnail` : |
`uri` : |
`mtime` : |
Returns : |

### tumbler_thumbnail_save_image_data ()

    gboolean            tumbler_thumbnail_save_image_data   (TumblerThumbnail *thumbnail,
                                                             TumblerImageData *data,
                                                             guint64 mtime,
                                                             GCancellable *cancellable,
                                                             GError **error);

`thumbnail` : |
`data` : |
`mtime` : |
`cancellable` : |
`error` : |
Returns : |

### tumbler_thumbnail_save_file ()

    gboolean            tumbler_thumbnail_save_file         (TumblerThumbnail *thumbnail,
                                                             GFile *file,
                                                             guint64 mtime,
                                                             GCancellable *cancellable,
                                                             GError **error);

`thumbnail` : |
`file` : |
`mtime` : |
`cancellable` : |
`error` : |
Returns : |

### tumbler_thumbnail_get_flavor ()

    TumblerThumbnailFlavor * tumbler_thumbnail_get_flavor   (TumblerThumbnail *thumbnail);

`thumbnail` : |
Returns : |

## Property Details

### The `"cache"` property

      "cache"                    TumblerCache*         : Read / Write / Construct Only

cache.

### The `"flavor"` property

      "flavor"                   TumblerThumbnailFlavor*  : Read / Write / Construct Only

flavor.

### The `"uri"` property

      "uri"                      gchar*                : Read / Write / Construct Only

uri.

Default value: NULL