enum_to_str


Description:


[ Version ( since = "1.2" ) ]
public string enum_to_str (Type type, int value)

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

the gtype of the enum

value

the value to be translated

Returns:

a newly allocated string or null


Namespace: NM.Utils
Package: libnm



2022 vala-language.org