param_spec_resource


Description:


[ Version ( since = "3.0" ) ]
public unowned ParamSpec param_spec_resource (string name, string nick, string blurb, Type resource_type, bool none_ok, Resource? default_value, bool default_to_context, ParamFlags flags)

Creates a new GimpParamSpecResource specifying a [type@Resource] property.

See [func@GObject.ParamSpec.internal] for details on property names.

default_to_context cannot be true for a resource_type of value [ class@Gimp.Resource], but only for specific subtypes. If it is true, default_value must be null. Instead of a fixed default, whatever is the context's resource for the given type at run time will be used as dynamic default.

Parameters:

name

Canonical name of the property specified.

nick

Nick name of the property specified.

blurb

Description of the property specified.

resource_type

a gtype, subtype of [class@Gimp.Resource].

none_ok

Whether null is a valid value.

default_value

Default resource.

default_to_context

Whether the context is the context's resource for the given resource_type.

flags

Flags for the property specified.

Returns:

The newly created GimpParamSpecResource.


Namespace: Gimp
Package: gimp-3.0