Crate gdk_pixbuf[][src]

Expand description

Rust GDK-PixBuf bindings

This library contains safe Rust bindings for GDK-PixBuf. It is a part of gtk-rs.

GDK-PixBuf 2.32 is the lowest supported version for the underlying library.

Re-exports

pub use ffi;
pub use gio;
pub use glib;

Modules

prelude

Traits inteded for blanket imports.

Structs

Pixbuf

This is the main structure in the gdk-pixbuf library. It is used to represent images. It contains information about the image’s pixel data, its color space, bits per sample, width and height, and the rowstride (the number of bytes between the start of one row and the start of the next).

PixbufAnimation

An opaque struct representing an animation.

PixbufAnimationIter

An opaque struct representing an iterator which points to a certain position in an animation.

PixbufFormat

A PixbufFormat contains information about the image format accepted by a module. Only modules should access the fields directly, applications should use the <function>gdk_pixbuf_format_*</function> functions.

PixbufLoader

The GdkPixbufLoader struct contains only private fields.

PixbufSimpleAnim

An opaque struct representing a simple animation.

Enums

Colorspace

This enumeration defines the color spaces that are supported by the gdk-pixbuf library. Currently only RGB is supported.

InterpType

This enumeration describes the different interpolation modes that can be used with the scaling functions. Nearest is the fastest scaling method, but has horrible quality when scaling down. Bilinear is the best choice if you aren’t sure what to choose, it has a good speed/quality balance.

PixbufAlphaMode

These values can be passed to gdk_pixbuf_xlib_render_to_drawable_alpha() to control how the alpha channel of an image should be handled. This function can create a bilevel clipping mask (black and white) and use it while painting the image. In the future, when the X Window System gets an alpha channel extension, it will be possible to do full alpha compositing onto arbitrary drawables. For now both cases fall back to a bilevel clipping mask.

PixbufError

An error code in the GDK_PIXBUF_ERROR domain. Many gdk-pixbuf operations can cause errors in this domain, or in the G_FILE_ERROR domain.

PixbufRotation

The possible rotations which can be passed to Pixbuf::rotate_simple(). To make them easier to use, their numerical values are the actual degrees.

Constants

NONE_PIXBUF_ANIMATION
NONE_PIXBUF_LOADER