gi-poppler-0.18.21: Poppler bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Poppler.Structs.Quadrilateral

Description

A Quadrilateral is used to describe rectangle-like polygon with arbitrary inclination on a page.

Since: 0.26

Synopsis

Exported types

newZeroQuadrilateral :: MonadIO m => m Quadrilateral Source #

Construct a Quadrilateral struct initialized to zero.

Methods

Overloaded methods

copy

quadrilateralCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Quadrilateral

quad: a Quadrilateral to copy

-> m Quadrilateral

Returns: a new allocated copy of quad

Creates a copy of quad. The copy must be freed with quadrilateralFree after use.

Since: 0.26

free

quadrilateralFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Quadrilateral

quad: a Quadrilateral

-> m () 

Frees the memory used by quad

Since: 0.26

new

quadrilateralNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Quadrilateral

Returns: a new Quadrilateral.

Creates a new Quadrilateral. It must be freed with quadrilateralFree after use.

Since: 0.26

Properties

p1

a Point with the first vertex coordinates

getQuadrilateralP1 :: MonadIO m => Quadrilateral -> m Point Source #

Get the value of the “p1” field. When overloading is enabled, this is equivalent to

get quadrilateral #p1

p2

a Point with the second vertex coordinates

getQuadrilateralP2 :: MonadIO m => Quadrilateral -> m Point Source #

Get the value of the “p2” field. When overloading is enabled, this is equivalent to

get quadrilateral #p2

p3

a Point with the third vertex coordinates

getQuadrilateralP3 :: MonadIO m => Quadrilateral -> m Point Source #

Get the value of the “p3” field. When overloading is enabled, this is equivalent to

get quadrilateral #p3

p4

a Point with the fourth vertex coordinates

getQuadrilateralP4 :: MonadIO m => Quadrilateral -> m Point Source #

Get the value of the “p4” field. When overloading is enabled, this is equivalent to

get quadrilateral #p4