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 |
A base class for value mapping objects that attaches control sources to Object
properties. Such an object is taking one or more ControlSource
instances,
combines them and maps the resulting value to the type and value range of the
bound property.
Synopsis
- newtype ControlBinding = ControlBinding (ManagedPtr ControlBinding)
- class (GObject o, IsDescendantOf ControlBinding o) => IsControlBinding o
- toControlBinding :: (MonadIO m, IsControlBinding o) => o -> m ControlBinding
- controlBindingGetGValueArray :: (HasCallStack, MonadIO m, IsControlBinding a) => a -> Word64 -> Word64 -> [GValue] -> m Bool
- controlBindingGetValue :: (HasCallStack, MonadIO m, IsControlBinding a) => a -> Word64 -> m (Maybe GValue)
- controlBindingIsDisabled :: (HasCallStack, MonadIO m, IsControlBinding a) => a -> m Bool
- controlBindingSetDisabled :: (HasCallStack, MonadIO m, IsControlBinding a) => a -> Bool -> m ()
- controlBindingSyncValues :: (HasCallStack, MonadIO m, IsControlBinding a, IsObject b) => a -> b -> Word64 -> Word64 -> m Bool
- constructControlBindingName :: (IsControlBinding o, MonadIO m) => Text -> m (GValueConstruct o)
- getControlBindingName :: (MonadIO m, IsControlBinding o) => o -> m (Maybe Text)
- constructControlBindingObject :: (IsControlBinding o, MonadIO m, IsObject a) => a -> m (GValueConstruct o)
- getControlBindingObject :: (MonadIO m, IsControlBinding o) => o -> m (Maybe Object)
Exported types
newtype ControlBinding Source #
Memory-managed wrapper type.
ControlBinding (ManagedPtr ControlBinding) |
Instances
Eq ControlBinding Source # | |
Defined in GI.Gst.Objects.ControlBinding (==) :: ControlBinding -> ControlBinding -> Bool # (/=) :: ControlBinding -> ControlBinding -> Bool # | |
GObject ControlBinding Source # | |
Defined in GI.Gst.Objects.ControlBinding | |
ManagedPtrNewtype ControlBinding Source # | |
Defined in GI.Gst.Objects.ControlBinding toManagedPtr :: ControlBinding -> ManagedPtr ControlBinding | |
TypedObject ControlBinding Source # | |
Defined in GI.Gst.Objects.ControlBinding | |
HasParentTypes ControlBinding Source # | |
Defined in GI.Gst.Objects.ControlBinding | |
IsGValue (Maybe ControlBinding) Source # | Convert |
Defined in GI.Gst.Objects.ControlBinding gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe ControlBinding -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe ControlBinding) | |
type ParentTypes ControlBinding Source # | |
Defined in GI.Gst.Objects.ControlBinding |
class (GObject o, IsDescendantOf ControlBinding o) => IsControlBinding o Source #
Type class for types which can be safely cast to ControlBinding
, for instance with toControlBinding
.
Instances
(GObject o, IsDescendantOf ControlBinding o) => IsControlBinding o Source # | |
Defined in GI.Gst.Objects.ControlBinding |
toControlBinding :: (MonadIO m, IsControlBinding o) => o -> m ControlBinding Source #
Cast to ControlBinding
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
addControlBinding, bindProperty, bindPropertyFull, defaultError, forceFloating, freezeNotify, getv, hasActiveControlBindings, hasAncestor, hasAsAncestor, hasAsParent, isDisabled, isFloating, notify, notifyByPspec, ref, refSink, removeControlBinding, runDispose, stealData, stealQdata, suggestNextSync, syncValues, thawNotify, unparent, unref, watchClosure.
Getters
getControlBinding, getControlRate, getData, getGValueArray, getName, getParent, getPathString, getProperty, getQdata, getValue.
Setters
setControlBindingDisabled, setControlBindingsDisabled, setControlRate, setData, setDataFull, setDisabled, setName, setParent, setProperty.
getGValueArray
controlBindingGetGValueArray Source #
:: (HasCallStack, MonadIO m, IsControlBinding a) | |
=> a |
|
-> Word64 |
|
-> Word64 |
|
-> [GValue] |
|
-> m Bool | Returns: |
Gets a number of GValues
for the given controlled property starting at the
requested time. The array values
need to hold enough space for nValues
of
Value
.
This function is useful if one wants to e.g. draw a graph of the control curve or apply a control curve sample by sample.
getValue
controlBindingGetValue Source #
:: (HasCallStack, MonadIO m, IsControlBinding a) | |
=> a |
|
-> Word64 |
|
-> m (Maybe GValue) | Returns: the GValue of the property at the given time,
or |
Gets the value for the given controlled property at the requested time.
isDisabled
controlBindingIsDisabled Source #
:: (HasCallStack, MonadIO m, IsControlBinding a) | |
=> a |
|
-> m Bool | Returns: |
Checks if the control binding is disabled.
setDisabled
controlBindingSetDisabled Source #
:: (HasCallStack, MonadIO m, IsControlBinding a) | |
=> a |
|
-> Bool |
|
-> m () |
This function is used to disable a control binding for some time, i.e.
objectSyncValues
will do nothing.
syncValues
controlBindingSyncValues Source #
:: (HasCallStack, MonadIO m, IsControlBinding a, IsObject b) | |
=> a |
|
-> b |
|
-> Word64 |
|
-> Word64 |
|
-> m Bool | Returns: |
Sets the property of the object
, according to the GstControlSources
that
handles it and for the given timestamp.
If this function fails, it is most likely the application developers fault. Most probably the control sources are not setup correctly.
Properties
name
No description available in the introspection data.
constructControlBindingName :: (IsControlBinding o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “name
” property. This is rarely needed directly, but it is used by new
.
getControlBindingName :: (MonadIO m, IsControlBinding o) => o -> m (Maybe Text) Source #
Get the value of the “name
” property.
When overloading is enabled, this is equivalent to
get
controlBinding #name
object
No description available in the introspection data.
constructControlBindingObject :: (IsControlBinding o, MonadIO m, IsObject a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “object
” property. This is rarely needed directly, but it is used by new
.
getControlBindingObject :: (MonadIO m, IsControlBinding o) => o -> m (Maybe Object) Source #
Get the value of the “object
” property.
When overloading is enabled, this is equivalent to
get
controlBinding #object