xviewer-thumbnail

xviewer-thumbnail

Functions

Types and Values

Description

Functions

xviewer_thumbnail_init ()

void
xviewer_thumbnail_init (void);

xviewer_thumbnail_fit_to_size ()

GdkPixbuf *
xviewer_thumbnail_fit_to_size (GdkPixbuf *thumbnail,
                               gint dimension);

Ensures a pixbuf fits a given dimension

Parameters

thumbnail

a GdkPixbuf

 

dimension

the maximum width or height desired

 

Returns

a new GdkPixbuf.

[transfer full]


xviewer_thumbnail_add_frame ()

GdkPixbuf *
xviewer_thumbnail_add_frame (GdkPixbuf *thumbnail);

Adds a frame to thumbnail

Parameters

thumbnail

a GdkPixbuf

 

Returns

a new GdkPixbuf, storing thumbnail nicely framed.

[transfer full]


xviewer_thumbnail_load ()

GdkPixbuf *
xviewer_thumbnail_load (XviewerImage *image,
                        GError **error);

Loads the thumbnail for image . In case of error, NULL is returned and error is set.

Parameters

image

a XviewerImage

 

error

location to store the error ocurring or NULL to ignore

 

Returns

a new GdkPixbuf with the thumbnail for image or NULL in case of error.

[transfer full]

Types and Values

XVIEWER_THUMBNAIL_ORIGINAL_WIDTH

#define XVIEWER_THUMBNAIL_ORIGINAL_WIDTH  "xviewer-thumbnail-orig-width"

XVIEWER_THUMBNAIL_ORIGINAL_HEIGHT

#define XVIEWER_THUMBNAIL_ORIGINAL_HEIGHT "xviewer-thumbnail-orig-height"