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.Objects.ControlSource
Description
The ControlSource
is a base class for control value sources that could
be used to get timestamp-value pairs. A control source essentially is a
function over time.
A ControlSource
is used by first getting an instance of a specific
control-source, creating a binding for the control-source to the target property
of the element and then adding the binding to the element. The binding will
convert the data types and value range to fit to the bound property.
For implementing a new ControlSource
one has to implement
ControlSourceGetValue
and ControlSourceGetValueArray
functions.
These are then used by controlSourceControlSourceGetValue
and
controlSourceControlSourceGetValueArray
to get values for specific timestamps.
- newtype ControlSource = ControlSource (ManagedPtr ControlSource)
- class GObject o => IsControlSource o
- toControlSource :: IsControlSource o => o -> IO ControlSource
- noControlSource :: Maybe ControlSource
- data ControlSourceControlSourceGetValueMethodInfo
- controlSourceControlSourceGetValue :: (HasCallStack, MonadIO m, IsControlSource a) => a -> Word64 -> m (Bool, Double)
- data ControlSourceControlSourceGetValueArrayMethodInfo
- controlSourceControlSourceGetValueArray :: (HasCallStack, MonadIO m, IsControlSource a) => a -> Word64 -> Word64 -> [Double] -> m Bool
Exported types
newtype ControlSource Source #
Constructors
ControlSource (ManagedPtr ControlSource) |
Instances
GObject ControlSource Source # | |
IsObject ControlSource Source # | |
IsObject ControlSource Source # | |
IsControlSource ControlSource Source # | |
((~) * info (ResolveControlSourceMethod t ControlSource), MethodInfo * info ControlSource p) => IsLabel t (ControlSource -> p) Source # | |
((~) * info (ResolveControlSourceMethod t ControlSource), MethodInfo * info ControlSource p) => IsLabelProxy t (ControlSource -> p) Source # | |
HasAttributeList * ControlSource Source # | |
type AttributeList ControlSource Source # | |
type SignalList ControlSource Source # | |
class GObject o => IsControlSource o Source #
Instances
toControlSource :: IsControlSource o => o -> IO ControlSource Source #
Methods
controlSourceGetValue
data ControlSourceControlSourceGetValueMethodInfo Source #
Instances
((~) * signature (Word64 -> m (Bool, Double)), MonadIO m, IsControlSource a) => MethodInfo * ControlSourceControlSourceGetValueMethodInfo a signature Source # | |
controlSourceControlSourceGetValue Source #
Arguments
:: (HasCallStack, MonadIO m, IsControlSource a) | |
=> a |
|
-> Word64 |
|
-> m (Bool, Double) | Returns: |
Gets the value for this ControlSource
at a given timestamp.
controlSourceGetValueArray
data ControlSourceControlSourceGetValueArrayMethodInfo Source #
Instances
((~) * signature (Word64 -> Word64 -> [Double] -> m Bool), MonadIO m, IsControlSource a) => MethodInfo * ControlSourceControlSourceGetValueArrayMethodInfo a signature Source # | |
controlSourceControlSourceGetValueArray Source #
Arguments
:: (HasCallStack, MonadIO m, IsControlSource a) | |
=> a |
|
-> Word64 |
|
-> Word64 |
|
-> [Double] |
|
-> m Bool | Returns: |
Gets an array of values for for this ControlSource
. Values that are
undefined contain NANs.