Struct runa_wayland_protocols::wayland::wl_subsurface::v1::requests::SetPosition
source · pub struct SetPosition {
pub x: i32,
pub y: i32,
}
Expand description
reposition the sub-surface
This schedules a sub-surface position change. The sub-surface will be moved so that its origin (top left corner pixel) will be at the location x, y of the parent surface coordinate system. The coordinates are not restricted to the parent surface area. Negative values are allowed.
The scheduled coordinates will take effect whenever the state of the parent surface is applied. When this happens depends on whether the parent surface is in synchronized mode or not. See wl_subsurface.set_sync and wl_subsurface.set_desync for details.
If more than one set_position request is invoked by the client before the commit of the parent surface, the position of a new request always replaces the scheduled position from any previous request.
The initial position is 0, 0.
Fields§
§x: i32
§y: i32
Implementations§
Trait Implementations§
source§impl Clone for SetPosition
impl Clone for SetPosition
source§fn clone(&self) -> SetPosition
fn clone(&self) -> SetPosition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetPosition
impl Debug for SetPosition
source§impl<'a> Deserialize<'a> for SetPosition
impl<'a> Deserialize<'a> for SetPosition
source§impl PartialEq<SetPosition> for SetPosition
impl PartialEq<SetPosition> for SetPosition
source§fn eq(&self, other: &SetPosition) -> bool
fn eq(&self, other: &SetPosition) -> bool
self
and other
values to be equal, and is used
by ==
.