Function

GObject-2.0GObjectparam_spec_boolean

  • Creates a new GObject.ParamSpecBoolean instance specifying a G_TYPE_BOOLEAN property. In many cases, it may be more appropriate to use an enum with g_param_spec_enum(), both to improve code clarity by using explicitly named values, and to allow for more values to be added in future without breaking API.

    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

    • default_value: boolean

      default value for the property specified

    • flags: ParamFlags

      flags for the property specified

    Returns GObject.ParamSpec

    a newly created parameter specification