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 |
Position of an SVG fragment from handleGetPositionSub
. Please
the deprecation documentation for that function.
Synopsis
- newtype PositionData = PositionData (ManagedPtr PositionData)
- newZeroPositionData :: MonadIO m => m PositionData
- getPositionDataX :: MonadIO m => PositionData -> m Int32
- setPositionDataX :: MonadIO m => PositionData -> Int32 -> m ()
- getPositionDataY :: MonadIO m => PositionData -> m Int32
- setPositionDataY :: MonadIO m => PositionData -> Int32 -> m ()
Exported types
newtype PositionData Source #
Memory-managed wrapper type.
PositionData (ManagedPtr PositionData) |
Instances
Eq PositionData Source # | |
Defined in GI.Rsvg.Structs.PositionData (==) :: PositionData -> PositionData -> Bool # (/=) :: PositionData -> PositionData -> Bool # | |
BoxedPtr PositionData Source # | |
Defined in GI.Rsvg.Structs.PositionData boxedPtrCopy :: PositionData -> IO PositionData boxedPtrFree :: PositionData -> IO () | |
CallocPtr PositionData Source # | |
Defined in GI.Rsvg.Structs.PositionData boxedPtrCalloc :: IO (Ptr PositionData) | |
ManagedPtrNewtype PositionData Source # | |
Defined in GI.Rsvg.Structs.PositionData toManagedPtr :: PositionData -> ManagedPtr PositionData | |
tag ~ 'AttrSet => Constructible PositionData tag Source # | |
Defined in GI.Rsvg.Structs.PositionData 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 ]