set_size


Description:

[ CCode ( cname = "gimp_size_entry_set_size" ) ]
public void set_size (int field, double lower, double upper)

Sets the pixel values for field # field of the SizeEntry which will be treated as 0% and 100%.

These values will be used if you specified menu_show_percent as true in SizeEntry and the user has selected GIMP_UNIT_PERCENT in the SizeEntry's UnitComboBox.

This function does nothing if the SizeEntryUpdatePolicy specified in SizeEntry doesn't equal to GIMP_SIZE_ENTRY_UPDATE_SIZE.

Parameters:

this

The sizeentry you want to set a size for.

field

The index of the field you want to set the size for.

lower

The reference value which will be treated as 0%.

upper

The reference value which will be treated as 100%.