| 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.Poppler.Structs.ImageMapping
Description
A ImageMapping structure represents the location
of an image on the page
Synopsis
- newtype ImageMapping = ImageMapping (ManagedPtr ImageMapping)
- newZeroImageMapping :: MonadIO m => m ImageMapping
- imageMappingCopy :: (HasCallStack, MonadIO m) => ImageMapping -> m ImageMapping
- imageMappingFree :: (HasCallStack, MonadIO m) => ImageMapping -> m ()
- imageMappingNew :: (HasCallStack, MonadIO m) => m ImageMapping
- getImageMappingArea :: MonadIO m => ImageMapping -> m Rectangle
- getImageMappingImageId :: MonadIO m => ImageMapping -> m Int32
- setImageMappingImageId :: MonadIO m => ImageMapping -> Int32 -> m ()
Exported types
newtype ImageMapping Source #
Memory-managed wrapper type.
Constructors
| ImageMapping (ManagedPtr ImageMapping) |
Instances
newZeroImageMapping :: MonadIO m => m ImageMapping Source #
Construct a ImageMapping struct initialized to zero.
Methods
Click to display all available methods, including inherited ones
copy
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ImageMapping |
|
| -> m ImageMapping | Returns: a new allocated copy of |
Creates a copy of mapping
free
Arguments
| :: (HasCallStack, MonadIO m) | |
| => ImageMapping |
|
| -> m () |
Frees the given ImageMapping
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m ImageMapping | Returns: a new |
Creates a new ImageMapping
Properties
area
a Rectangle representing an area of the page
getImageMappingArea :: MonadIO m => ImageMapping -> m Rectangle Source #
Get the value of the “area” field.
When overloading is enabled, this is equivalent to
get imageMapping #area
imageId
an image identifier
getImageMappingImageId :: MonadIO m => ImageMapping -> m Int32 Source #
Get the value of the “image_id” field.
When overloading is enabled, this is equivalent to
get imageMapping #imageId
setImageMappingImageId :: MonadIO m => ImageMapping -> Int32 -> m () Source #
Set the value of the “image_id” field.
When overloading is enabled, this is equivalent to
setimageMapping [ #imageId:=value ]