Struct runa_wayland_protocols::stable::xdg_shell::xdg_toplevel::v5::requests::SetMaxSize
source · pub struct SetMaxSize {
pub width: i32,
pub height: i32,
}
Expand description
set the maximum size
Set a maximum size for the window.
The client can specify a maximum size so that the compositor does not try to configure the window beyond 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 maximum size. The compositor may decide to ignore the values set by the client and request a larger size.
If never set, or a value of zero in the request, means that the client has no expected maximum size in the given dimension. As a result, a client wishing to reset the maximum size to an unspecified state can use zero for width and height in the request.
Requesting a maximum size to be smaller than the minimum 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 or height will result in a invalid_size error.
Fields§
§width: i32
§height: i32
Implementations§
Trait Implementations§
source§impl Clone for SetMaxSize
impl Clone for SetMaxSize
source§fn clone(&self) -> SetMaxSize
fn clone(&self) -> SetMaxSize
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SetMaxSize
impl Debug for SetMaxSize
source§impl<'a> Deserialize<'a> for SetMaxSize
impl<'a> Deserialize<'a> for SetMaxSize
source§impl PartialEq<SetMaxSize> for SetMaxSize
impl PartialEq<SetMaxSize> for SetMaxSize
source§fn eq(&self, other: &SetMaxSize) -> bool
fn eq(&self, other: &SetMaxSize) -> bool
self
and other
values to be equal, and is used
by ==
.