Commit 700beda2 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

add get_values method

2007-10-28  Juerg Billeter  <j@bitron.ch>

	* vala/valaenum.vala: add get_values method

svn path=/trunk/; revision=671
parent ef5ebab3
2007-10-28 Jürg Billeter <j@bitron.ch>
* vala/valaenum.vala: add get_values method
2007-10-27 Jürg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: use pointer indirection to access
......
......@@ -86,6 +86,15 @@ public class Vala.Enum : DataType {
scope.add (m.name, m);
}
/**
* 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.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment