Struct smithay_client_toolkit::shell::xdg::window::WindowConfigure
source · #[non_exhaustive]pub struct WindowConfigure {
pub new_size: (Option<NonZeroU32>, Option<NonZeroU32>),
pub suggested_bounds: Option<(u32, u32)>,
pub decoration_mode: DecorationMode,
pub state: WindowState,
pub capabilities: WindowManagerCapabilities,
}
Expand description
A window configure.
A configure describes a compositor request to resize the window or change it’s state.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.new_size: (Option<NonZeroU32>, Option<NonZeroU32>)
The compositor suggested new size of the window in window geometry coordinates.
If this value is None
, you may set the size of the window as you wish.
suggested_bounds: Option<(u32, u32)>
Compositor suggested maximum bounds for a window.
This may be used to ensure a window is not created in a way where it will not fit.
If xdg-shell is version 3 or lower, this will always be None
.
decoration_mode: DecorationMode
The compositor set decoration mode of the window.
This will always be DecorationMode::Client
if server side decorations are not enabled or
supported.
state: WindowState
The current state of the window.
For more see WindowState
documentation on the flag values.
capabilities: WindowManagerCapabilities
The capabilities supported by the compositor.
For more see WindowManagerCapabilities
documentation on the flag values.
Implementations§
source§impl WindowConfigure
impl WindowConfigure
sourcepub fn is_maximized(&self) -> bool
pub fn is_maximized(&self) -> bool
Is WindowState::MAXIMIZED
state is set.
sourcepub fn is_fullscreen(&self) -> bool
pub fn is_fullscreen(&self) -> bool
Is WindowState::FULLSCREEN
state is set.
sourcepub fn is_resizing(&self) -> bool
pub fn is_resizing(&self) -> bool
Is WindowState::RESIZING
state is set.
sourcepub fn is_tiled(&self) -> bool
pub fn is_tiled(&self) -> bool
Is WindowState::TILED
state is set.
sourcepub fn is_activated(&self) -> bool
pub fn is_activated(&self) -> bool
Is WindowState::ACTIVATED
state is set.
sourcepub fn is_tiled_left(&self) -> bool
pub fn is_tiled_left(&self) -> bool
Is WindowState::TILED_LEFT
state is set.
sourcepub fn is_tiled_right(&self) -> bool
pub fn is_tiled_right(&self) -> bool
Is WindowState::TILED_RIGHT
state is set.
sourcepub fn is_tiled_top(&self) -> bool
pub fn is_tiled_top(&self) -> bool
Is WindowState::TILED_TOP
state is set.
sourcepub fn is_tiled_bottom(&self) -> bool
pub fn is_tiled_bottom(&self) -> bool
Is WindowState::TILED_BOTTOM
state is set.
Trait Implementations§
source§impl Clone for WindowConfigure
impl Clone for WindowConfigure
source§fn clone(&self) -> WindowConfigure
fn clone(&self) -> WindowConfigure
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for WindowConfigure
impl Send for WindowConfigure
impl Sync for WindowConfigure
impl Unpin for WindowConfigure
impl UnwindSafe for WindowConfigure
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.