Event


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.2" ) ]
public Event (EventType type)

Creates a new event of the given type.

All fields are set to 0.

Parameters:

type

a EventType

Returns:

a newly-allocated Event. The returned Event should be freed with free .