Event.this

Creates a new event of the given type. All fields are set to 0.

  1. this(void* ptr, Flag!"Take" take)
  2. this(gdk.types.EventType type)
    class Event

Parameters

type gdk.types.EventType

a #GdkEventType

Return Value

a newly-allocated #GdkEvent. The returned #GdkEvent should be freed with gdk.event.Event.free.