Struct wayland_protocols::staging::xdg_activation::v1::generated::client::xdg_activation_v1::XdgActivationV1
source · pub struct XdgActivationV1(Proxy<XdgActivationV1>);
Tuple Fields§
§0: Proxy<XdgActivationV1>
Implementations§
source§impl XdgActivationV1
impl XdgActivationV1
sourcepub fn destroy(&self)
pub fn destroy(&self)
destroy the xdg_activation object
Notify the compositor that the xdg_activation object will no longer be used.
The child objects created via this interface are unaffected and should be destroyed separately.
This is a destructor, you cannot send requests to this object any longer once this method is called.
sourcepub fn get_activation_token(&self) -> Main<XdgActivationTokenV1>
pub fn get_activation_token(&self) -> Main<XdgActivationTokenV1>
requests a token
Creates an xdg_activation_token_v1 object that will provide the initiating client with a unique token for this activation. This token should be offered to the clients to be activated.
sourcepub fn activate(&self, token: String, surface: &WlSurface)
pub fn activate(&self, token: String, surface: &WlSurface)
notify new interaction being available
Requests surface activation. It’s up to the compositor to display this information as desired, for example by placing the surface above the rest.
The compositor may know who requested this by checking the activation token and might decide not to follow through with the activation if it’s considered unwanted.
Compositors can ignore unknown presentation tokens when an invalid token is passed.
Trait Implementations§
source§impl AsRef<Proxy<XdgActivationV1>> for XdgActivationV1
impl AsRef<Proxy<XdgActivationV1>> for XdgActivationV1
source§impl Clone for XdgActivationV1
impl Clone for XdgActivationV1
source§fn clone(&self) -> XdgActivationV1
fn clone(&self) -> XdgActivationV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for XdgActivationV1
impl Debug for XdgActivationV1
source§impl From<Proxy<XdgActivationV1>> for XdgActivationV1
impl From<Proxy<XdgActivationV1>> for XdgActivationV1
source§impl From<XdgActivationV1> for Proxy<XdgActivationV1>
impl From<XdgActivationV1> for Proxy<XdgActivationV1>
source§fn from(value: XdgActivationV1) -> Self
fn from(value: XdgActivationV1) -> Self
source§impl Interface for XdgActivationV1
impl Interface for XdgActivationV1
source§fn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
source§impl PartialEq<XdgActivationV1> for XdgActivationV1
impl PartialEq<XdgActivationV1> for XdgActivationV1
source§fn eq(&self, other: &XdgActivationV1) -> bool
fn eq(&self, other: &XdgActivationV1) -> bool
self
and other
values to be equal, and is used
by ==
.