Vala Reference Manual

Enums

Enumerated types represent a set of constant values.

Enum declarations

enum-declaration: [ access-modifier ] enum qualified-identifier { [ enum-members ] } enum-members: enum-values [ ; [ enum-methods ] ] enum-values: enum-value [ , enum-values ] enum-value: identifier [ = expression ] enum-methods: method-declaration [ enum-methods ]