WPEPlatform.Event.pointer_button_new
Description: Reference for WPEPlatform.Event.pointer_button_new

### Function

# WPEPlatform Eventpointer_button_new

#### Declaration [src]

    WPEEvent*
    wpe_event_pointer_button_new (
      WPEEventType type,
      WPEView* view,
      WPEInputSource source,
      guint32 time,
      WPEModifiers modifiers,
      guint button,
      double x,
      double y,
      guint press_count
    )

#### Description [src]

Create a `WPEEvent` for a pointer button press or release.

#### Parameters

`type`

  Type: `WPEEventType`

  A `WPEEventType` (`WPE_EVENT_POINTER_DOWN` or `WPE_EVENT_POINTER_UP`).

`view`

  Type: `WPEView`

  A `WPEView`.

  The data is owned by the caller of the function.

`source`

  Type: `WPEInputSource`

  A `WPEInputSource`.

`time`

  Type: `guint32`

  The event timestamp.

`modifiers`

  Type: `WPEModifiers`

  A `WPEModifiers`.

`button`

  Type: `guint`

  The button number.

`x`

  Type: `double`

  The x coordinate of the pointer.

`y`

  Type: `double`

  The y coordinate of the pointer.

`press_count`

  Type: `guint`

  The number of button presses.

#### Return value

Type: `WPEEvent`

A new allocated `WPEEvent`.

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