NumberPairEntry


Description:

[ CCode ( cname = "gimp_number_pair_entry_new" , has_construct_function = false , type = "GtkWidget*" ) ]
[ Version ( since = "2.4" ) ]
public NumberPairEntry (string separators, bool allow_simplification, double min_valid_value, double max_valid_value)

Creates a new NumberPairEntry widget, which is a GtkEntry that accepts two numbers separated by a separator.

Typical input example with a 'x' separator: "377x233".

The widget supports simplification of the entered ratio when the input ends in '=', if "allow-simplification" is TRUE.

The "separators" property contains a string of characters valid as separators when parsing input. The first separator is used when displaying the current values.

It is possible to specify what range of values that shall be considered as valid when parsing user input, by changing "min-valid-value" and "max-valid-value".

The first separator of separators is used to display the current value.

Parameters:

separators

The allowed separators.

allow_simplification

Whether to do simplification on the entered term.

min_valid_value

The minimum allowed result value.

max_valid_value

The maximum allowed result value.

Returns:

The new NumberPairEntry widget.