Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Dimensions of an SVG image from handleGetDimensions
, or an
individual element from handleGetDimensionsSub
. Please see
the deprecation documentation for those functions.
Synopsis
- newtype DimensionData = DimensionData (ManagedPtr DimensionData)
- newZeroDimensionData :: MonadIO m => m DimensionData
- getDimensionDataEm :: MonadIO m => DimensionData -> m Double
- setDimensionDataEm :: MonadIO m => DimensionData -> Double -> m ()
- getDimensionDataEx :: MonadIO m => DimensionData -> m Double
- setDimensionDataEx :: MonadIO m => DimensionData -> Double -> m ()
- getDimensionDataHeight :: MonadIO m => DimensionData -> m Int32
- setDimensionDataHeight :: MonadIO m => DimensionData -> Int32 -> m ()
- getDimensionDataWidth :: MonadIO m => DimensionData -> m Int32
- setDimensionDataWidth :: MonadIO m => DimensionData -> Int32 -> m ()
Exported types
newtype DimensionData Source #
Memory-managed wrapper type.
DimensionData (ManagedPtr DimensionData) |
Instances
Eq DimensionData Source # | |
Defined in GI.Rsvg.Structs.DimensionData (==) :: DimensionData -> DimensionData -> Bool # (/=) :: DimensionData -> DimensionData -> Bool # | |
BoxedPtr DimensionData Source # | |
Defined in GI.Rsvg.Structs.DimensionData boxedPtrCopy :: DimensionData -> IO DimensionData boxedPtrFree :: DimensionData -> IO () | |
CallocPtr DimensionData Source # | |
Defined in GI.Rsvg.Structs.DimensionData boxedPtrCalloc :: IO (Ptr DimensionData) | |
ManagedPtrNewtype DimensionData Source # | |
Defined in GI.Rsvg.Structs.DimensionData toManagedPtr :: DimensionData -> ManagedPtr DimensionData | |
tag ~ 'AttrSet => Constructible DimensionData tag Source # | |
Defined in GI.Rsvg.Structs.DimensionData 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 ]