### Struct

# WPEPlatform Event

#### Description

    struct WPEEvent {
      /* No available fields */
    }

No description available.

#### Constructors

###### wpe_event_keyboard_new

Create a `WPEEvent` for a keyboard key press or release.

###### wpe_event_pointer_button_new

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

###### wpe_event_pointer_move_new

Create a `WPEEvent` for a pointer move.

###### wpe_event_scroll_new

Create a `WPEEvent` for a scroll.

###### wpe_event_touch_new

Create a `WPEEvent` for a touch.

#### Instance methods

###### wpe_event_get_event_type

Get the `WPEEventType` of `event`.

###### wpe_event_get_input_source

Get the device input source of `event`.

###### wpe_event_get_modifiers

Get the modifiers of `event`. If the `WPEEvent` doesn’t have modifiers state 0 is returned.

###### wpe_event_get_position

Get the position of `event`. If the `WPEEvent` doesn’t have a position, `FALSE` is returned.

###### wpe_event_get_time

Get the time stamp of `event`.

###### wpe_event_get_user_data

Get user data previously set with wpe_event_set_user_data().

###### wpe_event_get_view

Get the `WPEView` associated to `event`.

###### wpe_event_keyboard_get_keycode

Get the hardware key code of `event` Note that `event` must be a keyboard event (`WPE_EVENT_KEYBOARD_KEY_DOWN` or `WPE_EVENT_KEYBOARD_KEY_UP`).

###### wpe_event_keyboard_get_keyval

Get the translated key value of `event` Note that `event` must be a keyboard event (`WPE_EVENT_KEYBOARD_KEY_DOWN` or `WPE_EVENT_KEYBOARD_KEY_UP`).

###### wpe_event_pointer_button_get_button

Get the button number of `event`. Note that `event` must be a pointer button event (`WPE_EVENT_POINTER_DOWN` or `WPE_EVENT_POINTER_UP`).

###### wpe_event_pointer_button_get_press_count

Get the numbbr of button presses for `event` Note that `event` must be a pointer button press event (`WPE_EVENT_POINTER_DOWN`).

###### wpe_event_pointer_move_get_delta

Get the movement delta of `event` Note that `event` must be a pointer move event (`WPE_EVENT_POINTER_MOVE`, `WPE_EVENT_POINTER_ENTER` or `WPE_EVENT_POINTER_LEAVE`).

###### wpe_event_ref

Atomically increments the reference count of `event` by one.

###### wpe_event_scroll_get_deltas

Get the scroll deltas of `event` Note that `event` must be a scroll event (`WPE_EVENT_SCROLL`).

###### wpe_event_scroll_has_precise_deltas

Get whether `event` has precise scroll deltas. Note that `event` must be a scroll event (`WPE_EVENT_SCROLL`).

###### wpe_event_scroll_is_stop

Get whether `event` is a stop scroll event.

###### wpe_event_set_user_data

Set `user_data` to `event` When `event` is destroyed `destroy_func` is called with `user_data`.

###### wpe_event_touch_get_sequence_id

Get the sequence identifier of `event`. Note that `event` must be a touch event (`WPE_EVENT_TOUCH_DOWN`, `WPE_EVENT_TOUCH_UP`, `WPE_EVENT_TOUCH_MOVER` or `WPE_EVENT_TOUCH_CANCEL`).

###### wpe_event_unref

Atomically decrements the reference count of `event` by one.