Struct runa_wayland_protocols::unstable::xdg_shell_unstable_v5::xdg_surface::v1::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 window 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.
Once the window geometry of the surface is set once, 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 mode is meant for extremely simple clients.
If responding to a configure event, the window geometry in here must respect the sizing negotiations specified by the states in the configure event.
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.
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 ==
.