ParamSpec.internal


Description:

[ CCode ( cname = "g_param_spec_internal" ) ]
public ParamSpec.internal (Type param_type, string name, string nick, string blurb, ParamFlags flags)

Creates a new ParamSpec instance.

See canonical parameter names for details of the rules for name. Names which violate these rules lead to undefined behaviour.

Beyond the name, ParamSpecs have two more descriptive strings, the nick and blurb, which may be used as a localized label and description. For GTK and related libraries these are considered deprecated and may be omitted, while for other libraries such as GStreamer and its plugins they are essential. When in doubt, follow the conventions used in the surrounding code and supporting libraries.

Parameters:

param_type

the Type for the property; must be derived from g_type_param

name

the canonical name of the property

nick

the nickname of the property

blurb

a short description of the property

flags

a combination of ParamFlags

Returns:

(transfer floating): a newly allocated ParamSpec instance, which is initially floating