diff options
author | Juerg Billeter <j@bitron.ch> | 2007-10-28 19:38:41 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2007-10-28 19:38:41 +0000 |
commit | 700beda284f0df06d0a08d4a24d3b985393297b8 (patch) | |
tree | 645e7b7dedc7ddc418c1cd73edd83159fe8bc99b /vala | |
parent | ef5ebab3ae3e34fb7019f5629de50b131de9525e (diff) | |
download | vala-700beda284f0df06d0a08d4a24d3b985393297b8.tar.gz |
add get_values method
2007-10-28 Juerg Billeter <j@bitron.ch>
* vala/valaenum.vala: add get_values method
svn path=/trunk/; revision=671
Diffstat (limited to 'vala')
-rw-r--r-- | vala/valaenum.vala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vala/valaenum.vala b/vala/valaenum.vala index 2c20e6f6b..1c8b4db4f 100644 --- a/vala/valaenum.vala +++ b/vala/valaenum.vala @@ -87,6 +87,15 @@ public class Vala.Enum : DataType { } /** + * Returns a copy of the list of enum values. + * + * @return list of enum values + */ + public Collection<EnumValue> get_values () { + return new ReadOnlyCollection<EnumValue> (values); + } + + /** * Returns a copy of the list of methods. * * @return list of methods |