| Top |  |  |  |  | 
| void | xdp_portal_create_remote_desktop_session () | 
| XdpSession * | xdp_portal_create_remote_desktop_session_finish () | 
| void | xdp_session_pointer_motion () | 
| void | xdp_session_pointer_position () | 
| void | xdp_session_pointer_button () | 
| void | xdp_session_pointer_axis () | 
| void | xdp_session_pointer_axis_discrete () | 
| void | xdp_session_keyboard_key () | 
| void | xdp_session_touch_down () | 
| void | xdp_session_touch_position () | 
| void | xdp_session_touch_up () | 
| enum | XdpDeviceType | 
| enum | XdpRemoteDesktopFlags | 
| enum | XdpButtonState | 
| enum | XdpDiscreteAxis | 
| enum | XdpKeyState | 
A remote desktop session allows to inject events into the input stream.
The underlying portal is org.freedesktop.portal.RemoteDesktop.
void xdp_portal_create_remote_desktop_session (XdpPortal *portal,XdpDeviceType devices,XdpOutputType outputs,XdpRemoteDesktopFlags flags,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer data);
Creates a session for remote desktop.
When the request is done, callback
 will be called. You can then
call xdp_portal_create_remote_desktop_session_finish() to get the results.
| portal | ||
| devices | which kinds of input devices to ofer in the new dialog | |
| outputs | which kinds of source to offer in the dialog | |
| flags | options for this call | |
| cancellable | optional GCancellable. | [nullable] | 
| callback | a callback to call when the request is done. | [scope async] | 
| data | data to pass to  | [closure] | 
XdpSession * xdp_portal_create_remote_desktop_session_finish (XdpPortal *portal,GAsyncResult *result,GError **error);
Finishes the create-remote-desktop request, and returns an XdpSession.
void xdp_session_pointer_motion (XdpSession *session,double dx,double dy);
Moves the pointer from its current position.
May only be called on a remote desktop session
with XDP_DEVICE_POINTER access.
void xdp_session_pointer_position (XdpSession *session,guint stream,double x,double y);
Moves the pointer to a new position in the given streams logical coordinate space.
May only be called on a remote desktop session
with XDP_DEVICE_POINTER access.
void xdp_session_pointer_button (XdpSession *session,int button,XdpButtonState state);
Changes the state of the button to state
.
May only be called on a remote desktop session
with XDP_DEVICE_POINTER access.
void xdp_session_pointer_axis (XdpSession *session,gboolean finish,double dx,double dy);
The axis movement from a smooth scroll device, such as a touchpad. When applicable, the size of the motion delta should be equivalent to the motion vector of a pointer motion done using the same advice.
May only be called on a remote desktop session
with XDP_DEVICE_POINTER access.
void xdp_session_pointer_axis_discrete (XdpSession *session,XdpDiscreteAxis axis,int steps);
The axis movement from a discrete scroll device.
May only be called on a remote desktop session
with XDP_DEVICE_POINTER access.
void xdp_session_keyboard_key (XdpSession *session,gboolean keysym,int key,XdpKeyState state);
Changes the state of the key to state
.
May only be called on a remote desktop session
with XDP_DEVICE_KEYBOARD access.
| session | a remote desktop XdpSession | |
| keysym | whether to interpret  | |
| key | the keysym or keycode to change | |
| state | the new state | 
void xdp_session_touch_down (XdpSession *session,guint stream,guint slot,double x,double y);
Notify about a new touch down event. The (x, y) position represents the new touch point position in the streams logical coordinate space.
May only be called on a remote desktop session
with XDP_DEVICE_TOUCHSCREEN access.
void xdp_session_touch_position (XdpSession *session,guint stream,guint slot,double x,double y);
Notify about a new touch motion event. The (x, y) position represents where the touch point position in the streams logical coordinate space moved.
May only be called on a remote desktop session
with XDP_DEVICE_TOUCHSCREEN access.
void xdp_session_touch_up (XdpSession *session,guint slot);
Notify about a new touch up event.
May only be called on a remote desktop session
with XDP_DEVICE_TOUCHSCREEN access.