gi-poppler-0.18.27: Poppler bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
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

newtype Quadrilateral Source #

Memory-managed wrapper type.

Constructors

Quadrilateral (ManagedPtr Quadrilateral) 

Instances

Instances details
Eq Quadrilateral Source # 
Instance details

Defined in GI.Poppler.Structs.Quadrilateral

GBoxed Quadrilateral Source # 
Instance details

Defined in GI.Poppler.Structs.Quadrilateral

ManagedPtrNewtype Quadrilateral Source # 
Instance details

Defined in GI.Poppler.Structs.Quadrilateral

Methods

toManagedPtr :: Quadrilateral -> ManagedPtr Quadrilateral

TypedObject Quadrilateral Source # 
Instance details

Defined in GI.Poppler.Structs.Quadrilateral

Methods

glibType :: IO GType

HasParentTypes Quadrilateral Source # 
Instance details

Defined in GI.Poppler.Structs.Quadrilateral

tag ~ 'AttrSet => Constructible Quadrilateral tag Source # 
Instance details

Defined in GI.Poppler.Structs.Quadrilateral

Methods

new :: MonadIO m => (ManagedPtr Quadrilateral -> Quadrilateral) -> [AttrOp Quadrilateral tag] -> m Quadrilateral

IsGValue (Maybe Quadrilateral) Source #

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

Instance details

Defined in GI.Poppler.Structs.Quadrilateral

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes Quadrilateral Source # 
Instance details

Defined in GI.Poppler.Structs.Quadrilateral

type ParentTypes Quadrilateral = '[] :: [Type]

newZeroQuadrilateral :: MonadIO m => m Quadrilateral Source #

Construct a Quadrilateral struct initialized to zero.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

copy, free.

Getters

None.

Setters

None.

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