gi-rsvg-2.0.3: librsvg bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Rsvg.Structs.PositionData

Description

Position of an SVG fragment from handleGetPositionSub. Please the deprecation documentation for that function.

Synopsis

Exported types

newtype PositionData Source #

Memory-managed wrapper type.

Constructors

PositionData (ManagedPtr PositionData) 

Instances

Instances details
Eq PositionData Source # 
Instance details

Defined in GI.Rsvg.Structs.PositionData

BoxedPtr PositionData Source # 
Instance details

Defined in GI.Rsvg.Structs.PositionData

CallocPtr PositionData Source # 
Instance details

Defined in GI.Rsvg.Structs.PositionData

ManagedPtrNewtype PositionData Source # 
Instance details

Defined in GI.Rsvg.Structs.PositionData

Methods

toManagedPtr :: PositionData -> ManagedPtr PositionData

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

Defined in GI.Rsvg.Structs.PositionData

Methods

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

newZeroPositionData :: MonadIO m => m PositionData Source #

Construct a PositionData struct initialized to zero.

Methods

Properties

x

position on the x axis

getPositionDataX :: MonadIO m => PositionData -> m Int32 Source #

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

get positionData #x

setPositionDataX :: MonadIO m => PositionData -> Int32 -> m () Source #

Set the value of the “x” field. When overloading is enabled, this is equivalent to

set positionData [ #x := value ]

y

position on the y axis

getPositionDataY :: MonadIO m => PositionData -> m Int32 Source #

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

get positionData #y

setPositionDataY :: MonadIO m => PositionData -> Int32 -> m () Source #

Set the value of the “y” field. When overloading is enabled, this is equivalent to

set positionData [ #y := value ]