gi-poppler-0.18.15: 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.AnnotSquare

Contents

Description

No description available in the introspection data.

Synopsis

Exported types

newtype AnnotSquare Source #

Memory-managed wrapper type.

class GObject o => IsAnnotSquare o Source #

Type class for types which can be safely cast to AnnotSquare, for instance with toAnnotSquare.

toAnnotSquare :: (MonadIO m, IsAnnotSquare o) => o -> m AnnotSquare Source #

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

Methods

getInteriorColor

annotSquareGetInteriorColor Source #

Arguments

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

popplerAnnot: a AnnotSquare

-> 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 interior color of popplerAnnot.

Since: 0.26

new

annotSquareNew Source #

Arguments

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

doc: a Document

-> Rectangle

rect: a Rectangle

-> m AnnotSquare

Returns: a newly created AnnotSquare annotation

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

Since: 0.26

setInteriorColor

annotSquareSetInteriorColor Source #

Arguments

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

popplerAnnot: a AnnotSquare

-> Maybe Color

popplerColor: a Color, or Nothing

-> m () 

Sets the interior color of popplerAnnot.

Since: 0.26