Struct runa_wayland_protocols::stable::xdg_shell::xdg_toplevel::v5::requests::SetMinSize
source · pub struct SetMinSize {
pub width: i32,
pub height: i32,
}
Expand description
set the minimum size
Set a minimum size for the window.
The client can specify a minimum size so that the compositor does not try to configure the window below this size.
The width and height arguments are in window geometry coordinates. See xdg_surface.set_window_geometry.
Values set in this way are double-buffered. They will get applied on the next commit.
The compositor can use this information to allow or disallow different states like maximize or fullscreen and draw accurate animations.
Similarly, a tiling window manager may use this information to place and resize client windows in a more effective way.
The client should not rely on the compositor to obey the minimum size. The compositor may decide to ignore the values set by the client and request a smaller size.
If never set, or a value of zero in the request, means that the client has no expected minimum size in the given dimension. As a result, a client wishing to reset the minimum size to an unspecified state can use zero for width and height in the request.
Requesting a minimum size to be larger than the maximum size of a surface is illegal and will result in an invalid_size error.
The width and height must be greater than or equal to zero. Using strictly negative values for width and height will result in a invalid_size error.
Fields§
§width: i32
§height: i32
Implementations§
Trait Implementations§
source§impl Clone for SetMinSize
impl Clone for SetMinSize
source§fn clone(&self) -> SetMinSize
fn clone(&self) -> SetMinSize
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetMinSize
impl Debug for SetMinSize
source§impl<'a> Deserialize<'a> for SetMinSize
impl<'a> Deserialize<'a> for SetMinSize
source§impl PartialEq<SetMinSize> for SetMinSize
impl PartialEq<SetMinSize> for SetMinSize
source§fn eq(&self, other: &SetMinSize) -> bool
fn eq(&self, other: &SetMinSize) -> bool
self
and other
values to be equal, and is used
by ==
.