Vala Reference Manual
Vala Reference Manual
Overview
Getting started
Documentation conventions
Vala source files
Vala conventions
Vala syntax
GType and GObject
Memory management
Vala compilation
Application entry point
Concepts
Variables, fields and parameters
Scope and naming
Object oriented programming
References and ownership
Types
Value types
Reference types
Parameterised types
Nullable types
Pointer types
Type conversions
Expressions
Literal expressions
Member access
Element access
Arithmetic operations
Relational operations
Increment/decrement operations
Logical operations
Bitwise operations
Assignment operations
Invocation expressions
Class instantiation
Struct instantiation
Array instantiation
Conditional expressions
Coalescing expressions
Flag operations
Type operations
Ownership transfer expressions
Lambda expressions
Pointer expressions
Statements
Simple statements
Variable declaration
Selection statements
Iteration statements
Jump Statements
Try Statement
Lock Statement
Namespaces
The global namespace
Namespace declaration
Members
Fields
Constants
The "using" statement
Methods
Parameter directions
Method declaration
Invocation
Scope
Lambdas
Contract programming
Examples
Delegates
Types of delegate
Delegate declaration
Using delegates
Examples
Errors
Error throwing
Error catching
Examples
Classes
Types of class
Types of class members
Class scope
Class member visibility
Class declaration
Controlling instantiation
Construction
Class fields
Class constants
Class methods
Properties
Signals
Class enums
Class delegates
Examples
Interfaces
Interface declaration
Interface fields
Interface methods
Interface properties
Interface signals
Other interface members
Examples
Generics
Generics declaration
Instantiation
Examples
Structs
Struct declaration
Controlling instantiation
Struct fields
Struct constants
Struct methods
Examples
Enumerated types (Enums)
Enum declaration
Enum members
Methods
Flag types
Error domains
Examples
Attributes
Applying attributes
CCode Attribute
Version attribute
SimpleType attribute
BooleanType Attribute
IntegerType Attribute
FloatingType Attribute
Signal Attribute
Description Attribute
DBus Attribute
Gtk attributes
Other attributes
Deprecated Attributes
Examples
Preprocessor
Directives syntax
Defining symbols
Built-in defines
Examples
GIDL metadata format
Comments
Other Lines
Specifiers
Specifying Different Things
Properties Reference
Examples
GIR metadata format
Locating metadata
Comments
Syntax
Valid arguments
Examples