Enum ashpd::WindowIdentifier [−][src]
pub enum WindowIdentifier { // some variants omitted }
Expand description
Most portals interact with the user by showing dialogs.
These dialogs should generally be placed on top of the application window
that triggered them. To arrange this, the compositor needs to know about the
application window. Many portal requests expect a WindowIdentifier
for
this reason.
Under X11, the WindowIdentifier
should have the form x11:XID
, where
XID is the XID of the application window. Under Wayland, it should have the
form wayland:HANDLE
, where HANDLE is a surface handle obtained with the
xdg-foreign protocol.
For other windowing systems, or if you don’t have a suitable handle, just
use the Default
implementation.
We would love merge requests that adds other From<T> for WindowIdentifier
implementations for other toolkits.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for WindowIdentifier
impl Send for WindowIdentifier
impl Sync for WindowIdentifier
impl Unpin for WindowIdentifier
impl UnwindSafe for WindowIdentifier
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V