rsvg.global

Undocumented in source.

Members

Functions

cleanup
void cleanup()

This function does nothing.

init_
void init_()

This function does nothing.

pixbufFromFile
gdkpixbuf.pixbuf.Pixbuf pixbufFromFile(string filename)

Loads a new gdkpixbuf.pixbuf.Pixbuf from filename and returns it. The caller must assume the reference to the reurned pixbuf. If an error occurred, error is set and NULL is returned.

pixbufFromFileAtMaxSize
gdkpixbuf.pixbuf.Pixbuf pixbufFromFileAtMaxSize(string filename, int maxWidth, int maxHeight)

Loads a new gdkpixbuf.pixbuf.Pixbuf from filename and returns it. This pixbuf is uniformly scaled so that the it fits into a rectangle of size max_width * max_height. The caller must assume the reference to the returned pixbuf. If an error occurred, error is set and NULL is returned.

pixbufFromFileAtSize
gdkpixbuf.pixbuf.Pixbuf pixbufFromFileAtSize(string filename, int width, int height)

Loads a new gdkpixbuf.pixbuf.Pixbuf from filename and returns it. This pixbuf is scaled from the size indicated to the new size indicated by width and height. If both of these are -1, then the default size of the image being loaded is used. The caller must assume the reference to the returned pixbuf. If an error occurred, error is set and NULL is returned.

pixbufFromFileAtZoom
gdkpixbuf.pixbuf.Pixbuf pixbufFromFileAtZoom(string filename, double xZoom, double yZoom)

Loads a new gdkpixbuf.pixbuf.Pixbuf from filename and returns it. This pixbuf is scaled from the size indicated by the file by a factor of x_zoom and y_zoom. The caller must assume the reference to the returned pixbuf. If an error occurred, error is set and NULL is returned.

pixbufFromFileAtZoomWithMax
gdkpixbuf.pixbuf.Pixbuf pixbufFromFileAtZoomWithMax(string filename, double xZoom, double yZoom, int maxWidth, int maxHeight)

Loads a new gdkpixbuf.pixbuf.Pixbuf from filename and returns it. This pixbuf is scaled from the size indicated by the file by a factor of x_zoom and y_zoom. If the resulting pixbuf would be larger than max_width/max_heigh it is uniformly scaled down to fit in that rectangle. The caller must assume the reference to the returned pixbuf. If an error occurred, error is set and NULL is returned.

setDefaultDpi
void setDefaultDpi(double dpi)

Do not use this function. Create an rsvg.handle.Handle and call rsvg.handle.Handle.setDpi on it instead.

setDefaultDpiXY
void setDefaultDpiXY(double dpiX, double dpiY)

Do not use this function. Create an rsvg.handle.Handle and call rsvg.handle.Handle.setDpiXY on it instead.

term
void term()

This function does nothing.