GObject.param_spec_variant

function param_spec_variant(name: String, nick: String, blurb: String, type: GLib.VariantType, default_value: GLib.Variant, flags: GObject.ParamFlags): GObject.ParamSpec {
    // Gjs wrapper for g_param_spec_variant()
}
  

Creates a new GObject.ParamSpecVariant instance specifying a GLib.Variant property.

If default_value is floating, it is consumed.

See GObject.ParamSpec.internal for details on property names.

Since 2.26

name

canonical name of the property specified

nick

nick name for the property specified

blurb

description of the property specified

type

a GLib.VariantType

default_value

a GLib.Variant of type type to use as the default value, or null

flags

flags for the property specified

Returns

the newly created GObject.ParamSpec