| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Rsvg.Functions
Description
Synopsis
- cleanup :: (HasCallStack, MonadIO m) => m ()
- init :: (HasCallStack, MonadIO m) => m ()
- pixbufFromFile :: (HasCallStack, MonadIO m) => Text -> m (Maybe Pixbuf)
- pixbufFromFileAtMaxSize :: (HasCallStack, MonadIO m) => Text -> Int32 -> Int32 -> m (Maybe Pixbuf)
- pixbufFromFileAtSize :: (HasCallStack, MonadIO m) => Text -> Int32 -> Int32 -> m (Maybe Pixbuf)
- pixbufFromFileAtZoom :: (HasCallStack, MonadIO m) => Text -> Double -> Double -> m (Maybe Pixbuf)
- pixbufFromFileAtZoomWithMax :: (HasCallStack, MonadIO m) => Text -> Double -> Double -> Int32 -> Int32 -> m (Maybe Pixbuf)
- setDefaultDpi :: (HasCallStack, MonadIO m) => Double -> m ()
- setDefaultDpiXY :: (HasCallStack, MonadIO m) => Double -> Double -> m ()
- term :: (HasCallStack, MonadIO m) => m ()
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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> m (Maybe Pixbuf) |
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 |
|
| -> Int32 |
|
| -> Int32 |
|
| -> m (Maybe Pixbuf) |
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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> Int32 |
|
| -> Int32 |
|
| -> m (Maybe Pixbuf) |
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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> Double |
|
| -> Double |
|
| -> m (Maybe Pixbuf) |
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 |
|
| -> Double |
|
| -> Double |
|
| -> Int32 |
|
| -> Int32 |
|
| -> m (Maybe Pixbuf) |
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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Double |
|
| -> 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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Double |
|
| -> Double |
|
| -> 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