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

Description

Dimensions of an SVG image from handleGetDimensions, or an individual element from handleGetDimensionsSub. Please see the deprecation documentation for those functions.

Synopsis

Exported types

newtype DimensionData Source #

Memory-managed wrapper type.

Constructors

DimensionData (ManagedPtr DimensionData) 

Instances

Instances details
Eq DimensionData Source # 
Instance details

Defined in GI.Rsvg.Structs.DimensionData

BoxedPtr DimensionData Source # 
Instance details

Defined in GI.Rsvg.Structs.DimensionData

CallocPtr DimensionData Source # 
Instance details

Defined in GI.Rsvg.Structs.DimensionData

ManagedPtrNewtype DimensionData Source # 
Instance details

Defined in GI.Rsvg.Structs.DimensionData

Methods

toManagedPtr :: DimensionData -> ManagedPtr DimensionData

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

Defined in GI.Rsvg.Structs.DimensionData

Methods

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

newZeroDimensionData :: MonadIO m => m DimensionData Source #

Construct a DimensionData struct initialized to zero.

Methods

Properties

em

SVG's original width, unmodified by RsvgSizeFunc

getDimensionDataEm :: MonadIO m => DimensionData -> m Double Source #

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

get dimensionData #em

setDimensionDataEm :: MonadIO m => DimensionData -> Double -> m () Source #

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

set dimensionData [ #em := value ]

ex

SVG's original height, unmodified by RsvgSizeFunc

getDimensionDataEx :: MonadIO m => DimensionData -> m Double Source #

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

get dimensionData #ex

setDimensionDataEx :: MonadIO m => DimensionData -> Double -> m () Source #

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

set dimensionData [ #ex := value ]

height

SVG's height, in pixels

getDimensionDataHeight :: MonadIO m => DimensionData -> m Int32 Source #

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

get dimensionData #height

setDimensionDataHeight :: MonadIO m => DimensionData -> Int32 -> m () Source #

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

set dimensionData [ #height := value ]

width

SVG's width, in pixels

getDimensionDataWidth :: MonadIO m => DimensionData -> m Int32 Source #

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

get dimensionData #width

setDimensionDataWidth :: MonadIO m => DimensionData -> Int32 -> m () Source #

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

set dimensionData [ #width := value ]