gi-poppler-0.18.14: 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.AnnotText

Contents

Description

 

Synopsis

Exported types

Methods

getIcon

annotTextGetIcon Source #

Arguments

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

popplerAnnot: a AnnotText

-> m Text

Returns: a new allocated string containing the icon name

Gets name of the icon of popplerAnnot.

getIsOpen

annotTextGetIsOpen Source #

Arguments

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

popplerAnnot: a AnnotText

-> m Bool

Returns: the state of popplerAnnot. True if it's open, False in other case.

Retrieves the state of popplerAnnot.

getState

annotTextGetState Source #

Arguments

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

popplerAnnot: a AnnotText

-> m AnnotTextState

Returns: AnnotTextState of popplerAnnot.

Retrieves the state of popplerAnnot.

new

annotTextNew Source #

Arguments

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

doc: a Document

-> Rectangle

rect: a Rectangle

-> m AnnotText

Returns: A newly created AnnotText annotation

Creates a new Text annotation that will be located on rect when added to a page. See pageAddAnnot

Since: 0.16

setIcon

annotTextSetIcon Source #

Arguments

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

popplerAnnot: a AnnotText

-> Text

icon: the name of an icon

-> m () 

Sets the icon of popplerAnnot. The following predefined icons are currently supported: <variablelist> <varlistentry> <term>ANNOT_TEXT_ICON_NOTE</term> </varlistentry> <varlistentry> <term>ANNOT_TEXT_ICON_COMMENT</term> </varlistentry> <varlistentry> <term>ANNOT_TEXT_ICON_KEY</term> </varlistentry> <varlistentry> <term>ANNOT_TEXT_ICON_HELP</term> </varlistentry> <varlistentry> <term>ANNOT_TEXT_ICON_NEW_PARAGRAPH</term> </varlistentry> <varlistentry> <term>ANNOT_TEXT_ICON_PARAGRAPH</term> </varlistentry> <varlistentry> <term>ANNOT_TEXT_ICON_INSERT</term> </varlistentry> <varlistentry> <term>ANNOT_TEXT_ICON_CROSS</term> </varlistentry> <varlistentry> <term>ANNOT_TEXT_ICON_CIRCLE</term> </varlistentry> </variablelist>

Since: 0.16

setIsOpen

annotTextSetIsOpen Source #

Arguments

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

popplerAnnot: a AnnotText

-> Bool

isOpen: whether annotation should initially be displayed open

-> m () 

Sets whether popplerAnnot should initially be displayed open

Since: 0.16