Event.custom


Description:

[ CCode ( has_construct_function = false ) ]
public Event.custom (EventType type, owned Structure structure)

Create a new custom-typed event.

This can be used for anything not handled by other event-specific functions to pass an event to another element.

Make sure to allocate an event type with the GST_EVENT_MAKE_TYPE macro, assigning a free number and filling in the correct direction and serialization flags.

New custom events can also be created by subclassing the event type if needed.

Parameters:

type

The type of the new event

structure

the structure for the event. The event will take ownership of the structure.

Returns:

the new custom event.