Struct runa_wayland_protocols::stable::xdg_shell::xdg_popup::v5::requests::Reposition
source · pub struct Reposition {
pub positioner: Object,
pub token: u32,
}
Expand description
recalculate the popup’s location
Reposition an already-mapped popup. The popup will be placed given the details in the passed xdg_positioner object, and a xdg_popup.repositioned followed by xdg_popup.configure and xdg_surface.configure will be emitted in response. Any parameters set by the previous positioner will be discarded.
The passed token will be sent in the corresponding xdg_popup.repositioned event. The new popup position will not take effect until the corresponding configure event is acknowledged by the client. See xdg_popup.repositioned for details. The token itself is opaque, and has no other special meaning.
If multiple reposition requests are sent, the compositor may skip all but the last one.
If the popup is repositioned in response to a configure event for its parent, the client should send an xdg_positioner.set_parent_configure and possibly an xdg_positioner.set_parent_size request to allow the compositor to properly constrain the popup.
If the popup is repositioned together with a parent that is being resized, but not in response to a configure event, the client should send an xdg_positioner.set_parent_size request.
Fields§
§positioner: Object
§token: u32
Implementations§
Trait Implementations§
source§impl Clone for Reposition
impl Clone for Reposition
source§fn clone(&self) -> Reposition
fn clone(&self) -> Reposition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Reposition
impl Debug for Reposition
source§impl<'a> Deserialize<'a> for Reposition
impl<'a> Deserialize<'a> for Reposition
source§impl PartialEq<Reposition> for Reposition
impl PartialEq<Reposition> for Reposition
source§fn eq(&self, other: &Reposition) -> bool
fn eq(&self, other: &Reposition) -> bool
self
and other
values to be equal, and is used
by ==
.