Function

NM-1.0NMutils_enum_to_strSince 1.2

  • Converts an enum value to its string representation. If the enum is a G_TYPE_FLAGS the function returns a comma-separated list of matching values. If the value has no corresponding string representation, it is converted to a number. For enums it is converted to a decimal number, for flags to an (unsigned) hex number.

    Parameters

    • type: GType

      the %GType of the enum

    • value: number

      the value to be translated

    Returns string

    a newly allocated string or null

    1.2