GimpUi.NumberPairEntry.prototype.set_ratio

function set_ratio(ratio: Number(gdouble)): void {
    // Gjs wrapper for gimp_number_pair_entry_set_ratio()
}
  

Sets the numbers of the GimpUi.NumberPairEntry to have the desired ratio. If the new ratio is different than the previous ratio, the "ratio-changed" signal is emitted.

An attempt is made to convert the decimal number into a fraction with left_number and right_number < 1000.

Since 2.4

ratio

Ratio to set in the widget.