gi-poppler-0.18.18: Poppler bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
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.

Instances
GObject AnnotSquare Source # 
Instance details

Defined in GI.Poppler.Objects.AnnotSquare

Methods

gobjectType :: IO GType #

HasParentTypes AnnotSquare Source # 
Instance details

Defined in GI.Poppler.Objects.AnnotSquare

type ParentTypes AnnotSquare Source # 
Instance details

Defined in GI.Poppler.Objects.AnnotSquare

type ParentTypes AnnotSquare = AnnotMarkup ': (Annot ': (Object ': ([] :: [Type])))

class (GObject o, IsDescendantOf AnnotSquare o) => IsAnnotSquare o Source #

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

Instances
(GObject o, IsDescendantOf AnnotSquare o) => IsAnnotSquare o Source # 
Instance details

Defined in GI.Poppler.Objects.AnnotSquare

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