Event.this

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

  1. this(GdkEvent* gdkEvent, bool ownedRef)
  2. this(GdkEventType type)
    class Event

Parameters

type GdkEventType

a #GdkEventType

Return: a newly-allocated #GdkEvent. The returned #GdkEvent should be freed with gdk_event_free().

Throws

ConstructionException GTK+ fails to create the object.

Meta