enum_get_values


Description:

[ CCode ( array_length = false , array_null_terminated = true ) ]
[ Version ( since = "1.2" ) ]
public (unowned string)[] enum_get_values (Type type, int from, int to)

Returns the list of possible values for a given enum.

Parameters:

type

the gtype of the enum

from

the first element to be returned

to

the last element to be returned

Returns:

a NULL-terminated dynamically-allocated array of static strings or null on error


Namespace: NM.Utils
Package: libnm



2022 vala-language.org