value_set_fraction
function value_set_fraction(value:GObject.Value, numerator:Number, denominator:Number):void { // Gjs wrapper for gst_value_set_fraction() }
Sets value to the fraction specified by numerator over denominator. The fraction gets reduced to the smallest numerator and denominator, and if necessary the sign is moved to the numerator.
- value
a GValue initialized to #GST_TYPE_FRACTION
- numerator
the numerator of the fraction
- denominator
the denominator of the fraction