| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gst.Structs.TimedValue
Description
Structure for saving a timestamp and a value.
- newtype TimedValue = TimedValue (ForeignPtr TimedValue)
- newZeroTimedValue :: MonadIO m => m TimedValue
- noTimedValue :: Maybe TimedValue
- timedValueReadTimestamp :: MonadIO m => TimedValue -> m Word64
- timedValueTimestamp :: AttrLabelProxy "timestamp"
- timedValueWriteTimestamp :: MonadIO m => TimedValue -> Word64 -> m ()
- timedValueReadValue :: MonadIO m => TimedValue -> m Double
- timedValueValue :: AttrLabelProxy "value"
- timedValueWriteValue :: MonadIO m => TimedValue -> Double -> m ()
Exported types
newtype TimedValue Source
Constructors
| TimedValue (ForeignPtr TimedValue) |
Instances
| WrappedPtr TimedValue Source | |
| (~) AttrOpTag tag AttrSet => Constructible TimedValue tag Source | |
| ((~) * info (ResolveTimedValueMethod t TimedValue), MethodInfo * info TimedValue p) => IsLabelProxy t (TimedValue -> p) Source | |
| type AttributeList TimedValue Source |
newZeroTimedValue :: MonadIO m => m TimedValue Source
Construct a TimedValue struct initialized to zero.
Properties
Timestamp
timedValueReadTimestamp :: MonadIO m => TimedValue -> m Word64 Source
timedValueTimestamp :: AttrLabelProxy "timestamp" Source
timedValueWriteTimestamp :: MonadIO m => TimedValue -> Word64 -> m () Source
Value
timedValueReadValue :: MonadIO m => TimedValue -> m Double Source
timedValueValue :: AttrLabelProxy "value" Source
timedValueWriteValue :: MonadIO m => TimedValue -> Double -> m () Source