Gimp.param_spec_resource

function param_spec_resource(name: String, nick: String, blurb: String, resource_type: GObject.Type, none_ok: Boolean, default_value: Gimp.Resource, default_to_context: Boolean, flags: GObject.ParamFlags): GObject.ParamSpec {
    // Gjs wrapper for gimp_param_spec_resource()
}
  

Creates a new Gimp.ParamSpecResource 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.

Since 3.0

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 Gimp.ParamSpecResource.