[−][src]Struct wayland_protocols::unstable::xdg_shell::v6::client::zxdg_popup_v6::ZxdgPopupV6
Implementations
impl ZxdgPopupV6
[src]
pub fn destroy(&self)
[src]
remove xdg_popup interface
This destroys the popup. Explicitly destroying the xdg_popup object will also dismiss the popup, and unmap the surface.
If this xdg_popup is not the "topmost" popup, a protocol error will be sent.
This is a destructor, you cannot send requests to this object any longer once this method is called.
pub fn grab(&self, seat: &WlSeat, serial: u32)
[src]
make the popup take an explicit grab
This request makes the created popup take an explicit grab. An explicit grab will be dismissed when the user dismisses the popup, or when the client destroys the xdg_popup. This can be done by the user clicking outside the surface, using the keyboard, or even locking the screen through closing the lid or a timeout.
If the compositor denies the grab, the popup will be immediately dismissed.
This request must be used in response to some sort of user action like a button press, key press, or touch down event. The serial number of the event should be passed as 'serial'.
The parent of a grabbing popup must either be an xdg_toplevel surface or another xdg_popup with an explicit grab. If the parent is another xdg_popup it means that the popups are nested, with this popup now being the topmost popup.
Nested popups must be destroyed in the reverse order they were created in, e.g. the only popup you are allowed to destroy at all times is the topmost one.
When compositors choose to dismiss a popup, they may dismiss every nested grabbing popup as well. When a compositor dismisses popups, it will follow the same dismissing order as required from the client.
The parent of a grabbing popup must either be another xdg_popup with an active explicit grab, or an xdg_popup or xdg_toplevel, if there are no explicit grabs already taken.
If the topmost grabbing popup is destroyed, the grab will be returned to the parent of the popup, if that parent previously had an explicit grab.
If the parent is a grabbing popup which has already been dismissed, this popup will be immediately dismissed. If the parent is a popup that did not take an explicit grab, an error will be raised.
During a popup grab, the client owning the grab will receive pointer and touch events for all their surfaces as normal (similar to an "owner-events" grab in X11 parlance), while the top most grabbing popup will always have keyboard focus.
Trait Implementations
impl AsRef<Proxy<ZxdgPopupV6>> for ZxdgPopupV6
[src]
impl Clone for ZxdgPopupV6
[src]
fn clone(&self) -> ZxdgPopupV6
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for ZxdgPopupV6
[src]
impl From<Proxy<ZxdgPopupV6>> for ZxdgPopupV6
[src]
impl From<ZxdgPopupV6> for Proxy<ZxdgPopupV6>
[src]
fn from(value: ZxdgPopupV6) -> Self
[src]
impl<T: EventHandler> HandledBy<T> for ZxdgPopupV6
[src]
impl Interface for ZxdgPopupV6
[src]
type Request = Request
Set of requests associated to this interface Read more
type Event = Event
Set of events associated to this interface Read more
const NAME: &'static str
[src]
const VERSION: u32
[src]
fn c_interface() -> *const wl_interface
[src]
impl PartialEq<ZxdgPopupV6> for ZxdgPopupV6
[src]
fn eq(&self, other: &ZxdgPopupV6) -> bool
[src]
fn ne(&self, other: &ZxdgPopupV6) -> bool
[src]
impl StructuralEq for ZxdgPopupV6
[src]
impl StructuralPartialEq for ZxdgPopupV6
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ZxdgPopupV6
impl Send for ZxdgPopupV6
impl Sync for ZxdgPopupV6
impl Unpin for ZxdgPopupV6
impl !UnwindSafe for ZxdgPopupV6
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<M, I> HandledBy<Sink<M>> for I where
I: Interface,
M: From<(<I as Interface>::Event, I)>,
[src]
I: Interface,
M: From<(<I as Interface>::Event, I)>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,