: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` A value mapping object that attaches control sources to gobject properties. It will map the control values directly to the target property range. If a non-absolute direct control binding is used, the value range [0.0 ... 1.0] is mapped to full target property range, and all values outside the range will be clipped. An absolute control binding will not do any value transformations. 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 The type of the None singleton. .. attribute:: props.control_source :type: ~gi.repository.Gst.ControlSource The type of the None singleton. 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