:right-sidebar: True DirectControlBinding =================================================================== .. currentmodule:: gi.repository.GstController .. class:: DirectControlBinding(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gst.ControlBinding`, :class:`~gi.repository.Gst.Object`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` :Constructors: :: DirectControlBinding(**properties) new(object:Gst.Object, property_name:str, cs:Gst.ControlSource) -> Gst.ControlBinding new_absolute(object:Gst.Object, property_name:str, cs:Gst.ControlSource) -> Gst.ControlBinding Constructors ------------ .. rst-class:: interim-class .. class:: DirectControlBinding :no-index: .. classmethod:: new(object: ~gi.repository.Gst.Object, property_name: str, cs: ~gi.repository.Gst.ControlSource) -> ~gi.repository.Gst.ControlBinding Create a new control-binding that attaches the :obj:`~gi.repository.Gst.ControlSource` to the :obj:`~gi.repository.GObject.Object` property. It will map the control source range [0.0 ... 1.0] to the full target property range, and clip all values outside this range. :param object: the object of the property :param property_name: the property-name to attach the control source :param cs: the control source .. classmethod:: new_absolute(object: ~gi.repository.Gst.Object, property_name: str, cs: ~gi.repository.Gst.ControlSource) -> ~gi.repository.Gst.ControlBinding Create a new control-binding that attaches the :obj:`~gi.repository.Gst.ControlSource` to the :obj:`~gi.repository.GObject.Object` property. It will directly map the control source values to the target property range without any transformations. .. versionadded:: 1.6 :param object: the object of the property :param property_name: the property-name to attach the control source :param cs: the control source Properties ---------- .. rst-class:: interim-class .. class:: DirectControlBinding :no-index: .. attribute:: props.absolute :type: bool .. attribute:: props.control_source :type: ~gi.repository.Gst.ControlSource Fields ------ .. rst-class:: interim-class .. class:: DirectControlBinding :no-index: .. attribute:: byte_size .. attribute:: convert_g_value .. attribute:: convert_value .. attribute:: cs .. attribute:: cur_value .. attribute:: last_value .. attribute:: parent