gi-poppler-0.18.11: Poppler bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Poppler.Objects.Annot

Contents

Description

 

Synopsis

Exported types

newtype Annot Source #

Constructors

Annot (ManagedPtr Annot) 

Instances

GObject Annot Source # 

Methods

gobjectType :: Annot -> IO GType #

IsObject Annot Source # 
IsAnnot Annot Source # 
((~) * info (ResolveAnnotMethod t Annot), MethodInfo * info Annot p) => IsLabel t (Annot -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Annot -> p #

((~) * info (ResolveAnnotMethod t Annot), MethodInfo * info Annot p) => IsLabelProxy t (Annot -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Annot -> p #

HasAttributeList * Annot Source # 
type AttributeList Annot Source # 
type SignalList Annot Source # 

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

data AnnotGetColorMethodInfo Source #

Instances

((~) * signature (m Color), MonadIO m, IsAnnot a) => MethodInfo * AnnotGetColorMethodInfo a signature Source # 

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

data AnnotGetContentsMethodInfo Source #

Instances

((~) * signature (m Text), MonadIO m, IsAnnot a) => MethodInfo * AnnotGetContentsMethodInfo a signature Source # 

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

data AnnotGetFlagsMethodInfo Source #

Instances

((~) * signature (m [AnnotFlag]), MonadIO m, IsAnnot a) => MethodInfo * AnnotGetFlagsMethodInfo a signature Source # 

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

data AnnotGetModifiedMethodInfo Source #

Instances

((~) * signature (m Text), MonadIO m, IsAnnot a) => MethodInfo * AnnotGetModifiedMethodInfo a signature Source # 

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

data AnnotGetNameMethodInfo Source #

Instances

((~) * signature (m Text), MonadIO m, IsAnnot a) => MethodInfo * AnnotGetNameMethodInfo a signature Source # 

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

data AnnotSetColorMethodInfo Source #

Instances

((~) * signature (Maybe Color -> m ()), MonadIO m, IsAnnot a) => MethodInfo * AnnotSetColorMethodInfo a signature Source # 

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

data AnnotSetContentsMethodInfo Source #

Instances

((~) * signature (Text -> m ()), MonadIO m, IsAnnot a) => MethodInfo * AnnotSetContentsMethodInfo a signature Source # 

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

data AnnotSetFlagsMethodInfo Source #

Instances

((~) * signature ([AnnotFlag] -> m ()), MonadIO m, IsAnnot a) => MethodInfo * AnnotSetFlagsMethodInfo a signature Source # 

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

data AnnotSetRectangleMethodInfo Source #

Instances

((~) * signature (Rectangle -> m ()), MonadIO m, IsAnnot a) => MethodInfo * AnnotSetRectangleMethodInfo a signature Source # 

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