Struct ashpd::desktop::remote_desktop::RemoteDesktopProxy[][src]

pub struct RemoteDesktopProxy<'a>(_);
Expand description

The interface lets sandboxed applications create remote desktop sessions.

Implementations

Create a new instance of RemoteDesktopProxy.

Get a reference to the underlying Proxy.

Create a remote desktop session. A remote desktop session is used to allow remote controlling a desktop session. It can also be used together with a screen cast session.

Select input devices to remote control.

Arguments

  • session - A SessionProxy.
  • types - The device types to request remote controlling of.

Start the remote desktop session.

This will typically result in the portal presenting a dialog letting the user select what to share, including devices and optionally screen content if screen cast sources was selected.

Arguments

  • session - A SessionProxy.
  • identifier - The application window identifier.

Notify keyboard code. May only be called if KEYBOARD access was provided after starting the session.

Arguments

  • session - A SessionProxy.
  • keycode - Keyboard code that was pressed or released.
  • state - The new state of the keyboard code.

Notify keyboard symbol. May only be called if KEYBOARD access was provided after starting the session.

Arguments

  • session - A SessionProxy.
  • keysym - Keyboard symbol that was pressed or released.
  • state - The new state of the keyboard code.

Notify about a new touch up event.

May only be called if TOUCHSCREEN access was provided after starting the session.

Arguments

  • session - A SessionProxy.
  • slot - Touch slot where touch point appeared.

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 if TOUCHSCREEN access was provided after starting the session.

Arguments

  • session - A SessionProxy.
  • stream - The PipeWire stream node the coordinate is relative to.
  • slot - Touch slot where touch point appeared.
  • x - Touch down x coordinate.
  • y - Touch down y coordinate.

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 if TOUCHSCREEN access was provided after starting the session.

Arguments

  • session - A SessionProxy.
  • stream - The PipeWire stream node the coordinate is relative to.
  • slot - Touch slot where touch point appeared.
  • x - Touch motion x coordinate.
  • y - Touch motion y coordinate.

Notify about a new absolute pointer motion event. The (x, y) position represents the new pointer position in the streams logical coordinate space.

Arguments

  • session - A SessionProxy.
  • stream - The PipeWire stream node the coordinate is relative to.
  • x - Pointer motion x coordinate.
  • y - Pointer motion y coordinate.

Notify about a new relative pointer motion event. The (dx, dy) vector represents the new pointer position in the streams logical coordinate space.

Arguments

  • session - A SessionProxy.
  • dx - Relative movement on the x axis.
  • dy - Relative movement on the y axis.

Notify pointer button. The pointer button is encoded according to Linux Evdev button codes.

May only be called if POINTER access was provided after starting the session.

Arguments

  • session - A SessionProxy.
  • button - The pointer button was pressed or released.
  • state - The new state of the keyboard code.

Notify pointer axis discrete. May only be called if POINTER access was provided after starting the session.

Arguments

  • session - A SessionProxy.
  • axis - The axis that was scrolled.

Notify pointer axis. 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 if POINTER access was provided after starting the session.

Arguments

  • session - A SessionProxy.
  • dx - Relative axis movement on the x axis.
  • dy - Relative axis movement on the y axis.

Available source types.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.