gi-rsvg-2.0.3: librsvg bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Rsvg.Functions

Description

 
Synopsis

Methods

cleanup

cleanup :: (HasCallStack, MonadIO m) => m () Source #

Deprecated: (Since version 2.46)No-op. This function should not be called from normal programs.

This function does nothing.

Since: 2.36

init

init :: (HasCallStack, MonadIO m) => m () Source #

Deprecated: (Since version 2.36)There is no need to initialize librsvg.

This function does nothing.

Since: 2.9

pixbufFromFile

pixbufFromFile Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

filename: A file name

-> m (Maybe Pixbuf)

Returns: A pixbuf, or Nothing on error. (Can throw GError)

Deprecated: Use handleNewFromFile and handleRenderDocument instead.

Loads a new GdkPixbuf 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

pixbufFromFileAtMaxSize Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

filename: A file name

-> Int32

maxWidth: The requested max width

-> Int32

maxHeight: The requested max height

-> m (Maybe Pixbuf)

Returns: A pixbuf, or Nothing on error. (Can throw GError)

Deprecated: Use handleNewFromFile and handleRenderDocument instead.

Loads a new GdkPixbuf 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

pixbufFromFileAtSize Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

filename: A file name

-> Int32

width: The new width, or -1

-> Int32

height: The new height, or -1

-> m (Maybe Pixbuf)

Returns: A pixbuf, or Nothing on error. (Can throw GError)

Deprecated: Use handleNewFromFile and handleRenderDocument instead.

Loads a new GdkPixbuf 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

pixbufFromFileAtZoom Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

filename: A file name

-> Double

xZoom: The horizontal zoom factor

-> Double

yZoom: The vertical zoom factor

-> m (Maybe Pixbuf)

Returns: A pixbuf, or Nothing on error. (Can throw GError)

Deprecated: Use handleNewFromFile and handleRenderDocument instead.

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

pixbufFromFileAtZoomWithMax

pixbufFromFileAtZoomWithMax Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

filename: A file name

-> Double

xZoom: The horizontal zoom factor

-> Double

yZoom: The vertical zoom factor

-> Int32

maxWidth: The requested max width

-> Int32

maxHeight: The requested max height

-> m (Maybe Pixbuf)

Returns: A pixbuf, or Nothing on error. (Can throw GError)

Deprecated: Use handleNewFromFile and handleRenderDocument instead.

Loads a new GdkPixbuf from filename and returns it. This pixbuf is scaled from the size indicated by the file by a factor of xZoom and yZoom. 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

setDefaultDpi Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Double

dpi: Dots Per Inch (aka Pixels Per Inch)

-> m () 

Deprecated: (Since version 2.42.3)This function used to set a global default DPI. However,it only worked if it was called before any Handle objects had beencreated; it would not work after that. To avoid global mutable state, pleaseuse handleSetDpi instead.

Do not use this function. Create an Handle and call handleSetDpi on it instead.

Since: 2.8

setDefaultDpiXY

setDefaultDpiXY Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Double

dpiX: Dots Per Inch (aka Pixels Per Inch)

-> Double

dpiY: Dots Per Inch (aka Pixels Per Inch)

-> m () 

Deprecated: (Since version 2.42.3)This function used to set a global default DPI. However,it only worked if it was called before any Handle objects had beencreated; it would not work after that. To avoid global mutable state, pleaseuse handleSetDpi instead.

Do not use this function. Create an Handle and call handleSetDpiXY on it instead.

Since: 2.8

term

term :: (HasCallStack, MonadIO m) => m () Source #

Deprecated: (Since version 2.36)There is no need to de-initialize librsvg.

This function does nothing.

Since: 2.9