Struct runa_wayland_protocols::stable::xdg_shell::xdg_surface::v5::requests::SetWindowGeometry
source · pub struct SetWindowGeometry {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}
Expand description
set the new window geometry
The window geometry of a surface is its “visible bounds” from the user’s perspective. Client-side decorations often have invisible portions like drop-shadows which should be ignored for the purposes of aligning, placing and constraining windows.
The window geometry is double buffered, and will be applied at the time wl_surface.commit of the corresponding wl_surface is called.
When maintaining a position, the compositor should treat the (x, y) coordinate of the window geometry as the top left corner of the window. A client changing the (x, y) window geometry coordinate should in general not alter the position of the window.
Once the window geometry of the surface is set, it is not possible to unset it, and it will remain the same until set_window_geometry is called again, even if a new subsurface or buffer is attached.
If never set, the value is the full bounds of the surface, including any subsurfaces. This updates dynamically on every commit. This unset is meant for extremely simple clients.
The arguments are given in the surface-local coordinate space of the wl_surface associated with this xdg_surface.
The width and height must be greater than zero. Setting an invalid size will raise an invalid_size error. When applied, the effective window geometry will be the set window geometry clamped to the bounding rectangle of the combined geometry of the surface of the xdg_surface and the associated subsurfaces.
Fields§
§x: i32
§y: i32
§width: i32
§height: i32
Implementations§
Trait Implementations§
source§impl Clone for SetWindowGeometry
impl Clone for SetWindowGeometry
source§fn clone(&self) -> SetWindowGeometry
fn clone(&self) -> SetWindowGeometry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetWindowGeometry
impl Debug for SetWindowGeometry
source§impl<'a> Deserialize<'a> for SetWindowGeometry
impl<'a> Deserialize<'a> for SetWindowGeometry
source§impl PartialEq<SetWindowGeometry> for SetWindowGeometry
impl PartialEq<SetWindowGeometry> for SetWindowGeometry
source§fn eq(&self, other: &SetWindowGeometry) -> bool
fn eq(&self, other: &SetWindowGeometry) -> bool
self
and other
values to be equal, and is used
by ==
.