| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte | 
|---|---|
| License | LGPL-2.1 | 
| Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
GI.Poppler.Structs.Dest
Contents
Description
Data structure for holding a destination
Note that namedDest is the string representation of the named
destination. This is the right form to pass to poppler functions,
e.g. documentFindDest, but to get the destination as
it appears in the PDF itself, you need to convert it to a bytestring
with namedDestToBytestring first.
Also note that namedDest does not have a defined encoding and
is not in a form suitable to be displayed to the user.
Synopsis
- newtype Dest = Dest (ManagedPtr Dest)
 - newZeroDest :: MonadIO m => m Dest
 - noDest :: Maybe Dest
 - destCopy :: (HasCallStack, MonadIO m) => Dest -> m Dest
 - destFree :: (HasCallStack, MonadIO m) => Dest -> m ()
 - getDestBottom :: MonadIO m => Dest -> m Double
 - setDestBottom :: MonadIO m => Dest -> Double -> m ()
 - getDestChangeLeft :: MonadIO m => Dest -> m Word32
 - setDestChangeLeft :: MonadIO m => Dest -> Word32 -> m ()
 - getDestChangeTop :: MonadIO m => Dest -> m Word32
 - setDestChangeTop :: MonadIO m => Dest -> Word32 -> m ()
 - getDestChangeZoom :: MonadIO m => Dest -> m Word32
 - setDestChangeZoom :: MonadIO m => Dest -> Word32 -> m ()
 - getDestLeft :: MonadIO m => Dest -> m Double
 - setDestLeft :: MonadIO m => Dest -> Double -> m ()
 - clearDestNamedDest :: MonadIO m => Dest -> m ()
 - getDestNamedDest :: MonadIO m => Dest -> m (Maybe Text)
 - setDestNamedDest :: MonadIO m => Dest -> CString -> m ()
 - getDestPageNum :: MonadIO m => Dest -> m Int32
 - setDestPageNum :: MonadIO m => Dest -> Int32 -> m ()
 - getDestRight :: MonadIO m => Dest -> m Double
 - setDestRight :: MonadIO m => Dest -> Double -> m ()
 - getDestTop :: MonadIO m => Dest -> m Double
 - setDestTop :: MonadIO m => Dest -> Double -> m ()
 - getDestType :: MonadIO m => Dest -> m DestType
 - setDestType :: MonadIO m => Dest -> DestType -> m ()
 - getDestZoom :: MonadIO m => Dest -> m Double
 - setDestZoom :: MonadIO m => Dest -> Double -> m ()
 
Exported types
Memory-managed wrapper type.
Constructors
| Dest (ManagedPtr Dest) | 
Instances
| BoxedObject Dest Source # | |
| tag ~ AttrSet => Constructible Dest tag Source # | |
Defined in GI.Poppler.Structs.Dest  | |
Methods
copy
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Dest | 
  | 
| -> m Dest | Returns: a new destination identical to   | 
Copies dest, creating an identical Dest.
free
Properties
bottom
bottom coordinate
getDestBottom :: MonadIO m => Dest -> m Double Source #
Get the value of the “bottom” field.
When overloading is enabled, this is equivalent to
get dest #bottom
setDestBottom :: MonadIO m => Dest -> Double -> m () Source #
Set the value of the “bottom” field.
When overloading is enabled, this is equivalent to
setdest [ #bottom:=value ]
changeLeft
whether left coordinate should be changed
getDestChangeLeft :: MonadIO m => Dest -> m Word32 Source #
Get the value of the “change_left” field.
When overloading is enabled, this is equivalent to
get dest #changeLeft
setDestChangeLeft :: MonadIO m => Dest -> Word32 -> m () Source #
Set the value of the “change_left” field.
When overloading is enabled, this is equivalent to
setdest [ #changeLeft:=value ]
changeTop
whether top coordinate should be changed
getDestChangeTop :: MonadIO m => Dest -> m Word32 Source #
Get the value of the “change_top” field.
When overloading is enabled, this is equivalent to
get dest #changeTop
setDestChangeTop :: MonadIO m => Dest -> Word32 -> m () Source #
Set the value of the “change_top” field.
When overloading is enabled, this is equivalent to
setdest [ #changeTop:=value ]
changeZoom
whether scale factor should be changed
getDestChangeZoom :: MonadIO m => Dest -> m Word32 Source #
Get the value of the “change_zoom” field.
When overloading is enabled, this is equivalent to
get dest #changeZoom
setDestChangeZoom :: MonadIO m => Dest -> Word32 -> m () Source #
Set the value of the “change_zoom” field.
When overloading is enabled, this is equivalent to
setdest [ #changeZoom:=value ]
left
left coordinate
getDestLeft :: MonadIO m => Dest -> m Double Source #
Get the value of the “left” field.
When overloading is enabled, this is equivalent to
get dest #left
setDestLeft :: MonadIO m => Dest -> Double -> m () Source #
Set the value of the “left” field.
When overloading is enabled, this is equivalent to
setdest [ #left:=value ]
namedDest
name of the destination (POPPLER_DEST_NAMED only)
clearDestNamedDest :: MonadIO m => Dest -> m () Source #
Set the value of the “named_dest” field to Nothing.
When overloading is enabled, this is equivalent to
clear #namedDest
getDestNamedDest :: MonadIO m => Dest -> m (Maybe Text) Source #
Get the value of the “named_dest” field.
When overloading is enabled, this is equivalent to
get dest #namedDest
setDestNamedDest :: MonadIO m => Dest -> CString -> m () Source #
Set the value of the “named_dest” field.
When overloading is enabled, this is equivalent to
setdest [ #namedDest:=value ]
pageNum
page number
getDestPageNum :: MonadIO m => Dest -> m Int32 Source #
Get the value of the “page_num” field.
When overloading is enabled, this is equivalent to
get dest #pageNum
setDestPageNum :: MonadIO m => Dest -> Int32 -> m () Source #
Set the value of the “page_num” field.
When overloading is enabled, this is equivalent to
setdest [ #pageNum:=value ]
right
right coordinate
getDestRight :: MonadIO m => Dest -> m Double Source #
Get the value of the “right” field.
When overloading is enabled, this is equivalent to
get dest #right
setDestRight :: MonadIO m => Dest -> Double -> m () Source #
Set the value of the “right” field.
When overloading is enabled, this is equivalent to
setdest [ #right:=value ]
top
top coordinate
getDestTop :: MonadIO m => Dest -> m Double Source #
Get the value of the “top” field.
When overloading is enabled, this is equivalent to
get dest #top
setDestTop :: MonadIO m => Dest -> Double -> m () Source #
Set the value of the “top” field.
When overloading is enabled, this is equivalent to
setdest [ #top:=value ]
type
type of destination
getDestType :: MonadIO m => Dest -> m DestType Source #
Get the value of the “type” field.
When overloading is enabled, this is equivalent to
get dest #type
setDestType :: MonadIO m => Dest -> DestType -> m () Source #
Set the value of the “type” field.
When overloading is enabled, this is equivalent to
setdest [ #type:=value ]
zoom
scale factor
getDestZoom :: MonadIO m => Dest -> m Double Source #
Get the value of the “zoom” field.
When overloading is enabled, this is equivalent to
get dest #zoom
setDestZoom :: MonadIO m => Dest -> Double -> m () Source #
Set the value of the “zoom” field.
When overloading is enabled, this is equivalent to
setdest [ #zoom:=value ]