DirectControlBinding#

class DirectControlBinding(**properties: Any)#

Superclasses: ControlBinding, Object, InitiallyUnowned, 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#

class DirectControlBinding
classmethod new(object: Object, property_name: str, cs: ControlSource) ControlBinding#

Create a new control-binding that attaches the ControlSource to the 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.

Parameters:
  • object – the object of the property

  • property_name – the property-name to attach the control source

  • cs – the control source

classmethod new_absolute(object: Object, property_name: str, cs: ControlSource) ControlBinding#

Create a new control-binding that attaches the ControlSource to the Object property. It will directly map the control source values to the target property range without any transformations.

Added in version 1.6.

Parameters:
  • object – the object of the property

  • property_name – the property-name to attach the control source

  • cs – the control source

Properties#

class DirectControlBinding
props.absolute: bool#

The type of the None singleton.

props.control_source: ControlSource#

The type of the None singleton.

Fields#

class DirectControlBinding
byte_size#
convert_g_value#
convert_value#
cs#
cur_value#
last_value#
parent#