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.AnnotSquare

Description

No description available in the introspection data.

Synopsis

Exported types

newtype AnnotSquare Source #

Memory-managed wrapper type.

Constructors

AnnotSquare (ManagedPtr AnnotSquare) 

Instances

Instances details
Eq AnnotSquare Source # 
Instance details

Defined in GI.Poppler.Objects.AnnotSquare

GObject AnnotSquare Source # 
Instance details

Defined in GI.Poppler.Objects.AnnotSquare

ManagedPtrNewtype AnnotSquare Source # 
Instance details

Defined in GI.Poppler.Objects.AnnotSquare

Methods

toManagedPtr :: AnnotSquare -> ManagedPtr AnnotSquare

TypedObject AnnotSquare Source # 
Instance details

Defined in GI.Poppler.Objects.AnnotSquare

Methods

glibType :: IO GType

HasParentTypes AnnotSquare Source # 
Instance details

Defined in GI.Poppler.Objects.AnnotSquare

IsGValue (Maybe AnnotSquare) Source #

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

Instance details

Defined in GI.Poppler.Objects.AnnotSquare

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes AnnotSquare Source # 
Instance details

Defined in GI.Poppler.Objects.AnnotSquare

type ParentTypes AnnotSquare = '[AnnotMarkup, Annot, Object]

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

Instances details
(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