Function

PhocEventnew

Declaration [src]

PhocEvent*
phoc_event_new (
  PhocEventType type,
  const gpointer wlr_event,
  gsize size
)

Description [src]

Creates a new PhocEvent of the specified type.

Parameters

type

Type: PhocEventType

The type of event.

wlr_event

Type: const gpointer

No description available.

size

Type: gsize

No description available.

Return value

Type: PhocEvent

A newly allocated PhocEvent.

The caller of the function takes ownership of the data, and is responsible for freeing it.