set_aspect


Description:

[ CCode ( cname = "gimp_number_pair_entry_set_aspect" ) ]
[ Version ( since = "2.4" ) ]
public void set_aspect (AspectType aspect)

Sets the aspect of the ratio by swapping the left_number and right_number if necessary (or setting them to 1.0 in case that aspect is gimp_aspect_square).

Parameters:

this

A NumberPairEntry widget.

aspect

The new aspect.