set_constrain_drag


Description:

[ CCode ( cname = "gimp_spin_scale_set_constrain_drag" ) ]
public void set_constrain_drag (bool constrain)

If constrain_drag is TRUE, dragging the scale with the pointer will only result into integer values.

It will still possible to set the scale to fractional values (if the spin scale "digits" is above 0) for instance with keyboard edit.

Parameters:

this

the SpinScale.

constrain

whether constraining to integer values when dragging with pointer.