prop_scale_entry_new


Description:

[ CCode ( cname = "gimp_prop_scale_entry_new" ) ]
[ Version ( since = "2.4" ) ]
public Widget prop_scale_entry_new (Object config, string property_name, string? label, double factor, bool limit_scale, double lower_limit, double upper_limit)

Creates a ScaleEntry (slider and spin button) to set and display the value of a specified int or double property with sensible default settings depending on the range (decimal places, increments, etc.

). These settings can be overridden by the relevant widget methods.

If label is null, the property_name's nick will be used as label of the returned object.

If factor is not 1.0, the widget's range will be computed based of property_name's range multiplied by factor. A typical usage would be to display a [0.0, 1.0] range as [0.0, 100.0] by setting 100.0 as factor.

See set_bounds for more information on limit_scale, lower_limit and upper_limit.

Parameters:

config

Object to which property is attached.

property_name

Name of integer or double property controlled by the scale.

label

The text for the Label which will appear left of the Scale.

factor

Optional multiplier to convert property_name's range into the ScaleEntry's range. The common usage is to set 1.0. For non-double properties, no other values than 1.0 are acceptable.

limit_scale

false if the range of possible values of the GtkScale should be the same as of the GtkSpinButton.

lower_limit

The scale's lower boundary if scale_limits is true.

upper_limit

The scale's upper boundary if scale_limits is true.

Returns:

The newly allocated ScaleEntry.


Namespace: GimpUi
Package: gimp-ui-3.0