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 associated with them, the nick, which should be suitable for use as a label for the property in a property editor, and the blurb, which should be a somewhat longer description, suitable for e.g. a tooltip. The nick and blurb should ideally be localized.

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




2022 vala-language.org