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 |
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
- 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.
Instances
Eq Dest Source # | |
GBoxed Dest Source # | |
Defined in GI.Poppler.Structs.Dest | |
ManagedPtrNewtype Dest Source # | |
Defined in GI.Poppler.Structs.Dest toManagedPtr :: Dest -> ManagedPtr Dest | |
TypedObject Dest Source # | |
Defined in GI.Poppler.Structs.Dest | |
HasParentTypes Dest Source # | |
Defined in GI.Poppler.Structs.Dest | |
tag ~ 'AttrSet => Constructible Dest tag Source # | |
IsGValue (Maybe Dest) Source # | Convert |
Defined in GI.Poppler.Structs.Dest gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Dest -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Dest) | |
type ParentTypes Dest Source # | |
Defined in GI.Poppler.Structs.Dest |
Methods
Click to display all available methods, including inherited ones
copy
:: (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
set
dest [ #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
set
dest [ #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
set
dest [ #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
set
dest [ #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
set
dest [ #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
set
dest [ #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
set
dest [ #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
set
dest [ #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
set
dest [ #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
set
dest [ #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
set
dest [ #zoom:=
value ]