param_spec_unit


Description:


[ Version ( since = "2.4" ) ]
public ParamSpec param_spec_unit (string name, string nick, string blurb, bool allow_pixel, bool allow_percent, Unit default_value, ParamFlags flags)

Creates a param spec to hold a units param.

See ParamSpec.internal for more information.

Parameters:

name

Canonical name of the param

nick

Nickname of the param

blurb

Brief description of param.

allow_pixel

Whether "pixels" is an allowed unit.

allow_percent

Whether "percent" is an allowed unit.

default_value

Unit to use if none is assigned.

flags

a combination of ParamFlags

Returns:

a newly allocated ParamSpec instance


Namespace: Gimp
Package: gimp-3.0