Method

MksDisplayget_event_position_in_guest

Declaration [src]

gboolean
mks_display_get_event_position_in_guest (
  MksDisplay* self,
  GdkEvent* event,
  double* guest_x,
  double* guest_y
)

Description [src]

Retrieve the (guest_x, guest_y) position where the event happened.

Could be useful for implementing touch support emulation.

Parameters

event

Type: GdkEvent

A GdkEvent.

The data is owned by the caller of the method.
guest_x

Type: double*

Guest’s X position.

The argument will be set by the function.
guest_y

Type: double*

Guest’s Y position.

The argument will be set by the function.

Return value

Type: gboolean

Whether the event has an associated position.