Function

GObject-2.0GObjectparam_spec_enum

  • Creates a new GObject.ParamSpecEnum instance specifying a G_TYPE_ENUM property.

    See g_param_spec_internal() for details on property names.

    Parameters

    • name: string

      canonical name of the property specified

    • nick: string

      nick name for the property specified

    • blurb: string

      description of the property specified

    • enum_type: GType

      a GObject.GType derived from G_TYPE_ENUM

    • default_value: number

      default value for the property specified

    • flags: ParamFlags

      flags for the property specified

    Returns GObject.ParamSpec

    a newly created parameter specification