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 |
Structure for storing a timestamp and a value.
Synopsis
- newtype TimedValue = TimedValue (ManagedPtr TimedValue)
- newZeroTimedValue :: MonadIO m => m TimedValue
- getTimedValueTimestamp :: MonadIO m => TimedValue -> m Word64
- setTimedValueTimestamp :: MonadIO m => TimedValue -> Word64 -> m ()
- getTimedValueValue :: MonadIO m => TimedValue -> m Double
- setTimedValueValue :: MonadIO m => TimedValue -> Double -> m ()
Exported types
newtype TimedValue Source #
Memory-managed wrapper type.
Instances
Eq TimedValue Source # | |
Defined in GI.Gst.Structs.TimedValue (==) :: TimedValue -> TimedValue -> Bool # (/=) :: TimedValue -> TimedValue -> Bool # | |
BoxedPtr TimedValue Source # | |
Defined in GI.Gst.Structs.TimedValue boxedPtrCopy :: TimedValue -> IO TimedValue # boxedPtrFree :: TimedValue -> IO () # | |
CallocPtr TimedValue Source # | |
Defined in GI.Gst.Structs.TimedValue boxedPtrCalloc :: IO (Ptr TimedValue) # | |
ManagedPtrNewtype TimedValue Source # | |
Defined in GI.Gst.Structs.TimedValue | |
tag ~ 'AttrSet => Constructible TimedValue tag Source # | |
Defined in GI.Gst.Structs.TimedValue new :: MonadIO m => (ManagedPtr TimedValue -> TimedValue) -> [AttrOp TimedValue tag] -> m TimedValue # |
newZeroTimedValue :: MonadIO m => m TimedValue Source #
Construct a TimedValue
struct initialized to zero.
Methods
Properties
timestamp
timestamp of the value change
getTimedValueTimestamp :: MonadIO m => TimedValue -> m Word64 Source #
Get the value of the “timestamp
” field.
When overloading is enabled, this is equivalent to
get
timedValue #timestamp
setTimedValueTimestamp :: MonadIO m => TimedValue -> Word64 -> m () Source #
Set the value of the “timestamp
” field.
When overloading is enabled, this is equivalent to
set
timedValue [ #timestamp:=
value ]
value
the corresponding value
getTimedValueValue :: MonadIO m => TimedValue -> m Double Source #
Get the value of the “value
” field.
When overloading is enabled, this is equivalent to
get
timedValue #value
setTimedValueValue :: MonadIO m => TimedValue -> Double -> m () Source #
Set the value of the “value
” field.
When overloading is enabled, this is equivalent to
set
timedValue [ #value:=
value ]