gi-poppler-0.18.23: Poppler bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Poppler.Structs.Dest

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

Exported types

newtype Dest Source #

Memory-managed wrapper type.

Constructors

Dest (ManagedPtr Dest) 

Instances

Instances details
Eq Dest Source # 
Instance details

Defined in GI.Poppler.Structs.Dest

Methods

(==) :: Dest -> Dest -> Bool

(/=) :: Dest -> Dest -> Bool

GBoxed Dest Source # 
Instance details

Defined in GI.Poppler.Structs.Dest

ManagedPtrNewtype Dest Source # 
Instance details

Defined in GI.Poppler.Structs.Dest

Methods

toManagedPtr :: Dest -> ManagedPtr Dest

TypedObject Dest Source # 
Instance details

Defined in GI.Poppler.Structs.Dest

Methods

glibType :: IO GType

IsGValue Dest Source #

Convert Dest to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Poppler.Structs.Dest

Methods

toGValue :: Dest -> IO GValue

fromGValue :: GValue -> IO Dest

HasParentTypes Dest Source # 
Instance details

Defined in GI.Poppler.Structs.Dest

tag ~ 'AttrSet => Constructible Dest tag Source # 
Instance details

Defined in GI.Poppler.Structs.Dest

Methods

new :: MonadIO m => (ManagedPtr Dest -> Dest) -> [AttrOp Dest tag] -> m Dest

type ParentTypes Dest Source # 
Instance details

Defined in GI.Poppler.Structs.Dest

type ParentTypes Dest = '[] :: [Type]

newZeroDest :: MonadIO m => m Dest Source #

Construct a Dest struct initialized to zero.

Methods

Overloaded methods

copy

destCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Dest

dest: a Dest

-> m Dest

Returns: a new destination identical to dest

Copies dest, creating an identical Dest.

free

destFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Dest

dest: a Dest

-> m () 

Frees dest

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 ]