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

GI.Poppler.Objects.Annot

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Annot Source #

Memory-managed wrapper type.

Constructors

Annot (ManagedPtr Annot) 

Instances

Instances details
Eq Annot Source # 
Instance details

Defined in GI.Poppler.Objects.Annot

Methods

(==) :: Annot -> Annot -> Bool #

(/=) :: Annot -> Annot -> Bool #

GObject Annot Source # 
Instance details

Defined in GI.Poppler.Objects.Annot

ManagedPtrNewtype Annot Source # 
Instance details

Defined in GI.Poppler.Objects.Annot

Methods

toManagedPtr :: Annot -> ManagedPtr Annot

TypedObject Annot Source # 
Instance details

Defined in GI.Poppler.Objects.Annot

Methods

glibType :: IO GType

HasParentTypes Annot Source # 
Instance details

Defined in GI.Poppler.Objects.Annot

IsGValue (Maybe Annot) Source #

Convert Annot to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Poppler.Objects.Annot

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Annot -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Annot)

type ParentTypes Annot Source # 
Instance details

Defined in GI.Poppler.Objects.Annot

type ParentTypes Annot = '[Object]

class (GObject o, IsDescendantOf Annot o) => IsAnnot o Source #

Type class for types which can be safely cast to Annot, for instance with toAnnot.

Instances

Instances details
(GObject o, IsDescendantOf Annot o) => IsAnnot o Source # 
Instance details

Defined in GI.Poppler.Objects.Annot

toAnnot :: (MonadIO m, IsAnnot o) => o -> m Annot Source #

Cast to Annot, for types for which this is known to be safe. For general casts, use castTo.

Methods

getAnnotType

annotGetAnnotType Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m AnnotType

Returns: AnnotType of popplerAnnot.

Gets the type of popplerAnnot

getColor

annotGetColor Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m Color

Returns: a new allocated Color with the color values of popplerAnnot, or Nothing. It must be freed with free when done.

Retrieves the color of popplerAnnot.

getContents

annotGetContents Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m Text

Returns: a new allocated string with the contents of popplerAnnot. It must be freed with free when done.

Retrieves the contents of popplerAnnot.

getFlags

annotGetFlags Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m [AnnotFlag]

Returns: the flag field of popplerAnnot.

Retrieves the flag field specifying various characteristics of the popplerAnnot.

getModified

annotGetModified Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m Text

Returns: a new allocated string with the last modification data of popplerAnnot. It must be freed with free when done.

Retrieves the last modification data of popplerAnnot. The returned string will be either a PDF format date or a text string. See also poppler_date_parse()

getName

annotGetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m Text

Returns: a new allocated string with the name of popplerAnnot. It must be freed with free when done.

Retrieves the name of popplerAnnot.

getPageIndex

annotGetPageIndex Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m Int32

Returns: page index or -1

Returns the page index to which popplerAnnot is associated, or -1 if unknown

Since: 0.14

getRectangle

annotGetRectangle Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m Rectangle 

Retrieves the rectangle representing the page coordinates where the annotation popplerAnnot is placed.

Since: 0.26

setColor

annotSetColor Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> Maybe Color

popplerColor: a Color, or Nothing

-> m () 

Sets the color of popplerAnnot.

Since: 0.16

setContents

annotSetContents Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> Text

contents: a text string containing the new contents

-> m () 

Sets the contents of popplerAnnot to the given value, replacing the current contents.

Since: 0.12

setFlags

annotSetFlags Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> [AnnotFlag]

flags: a AnnotFlag

-> m () 

Sets the flag field specifying various characteristics of the popplerAnnot.

Since: 0.22

setRectangle

annotSetRectangle Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> Rectangle

popplerRect: a Rectangle with the new annotation's coordinates

-> m () 

Move the annotation to the rectangle representing the page coordinates where the annotation popplerAnnot should be placed.

Since: 0.26