Enum smithay_client_toolkit::shell::xdg::window::WindowDecorations
source · pub enum WindowDecorations {
ServerDefault,
RequestServer,
RequestClient,
ClientOnly,
None,
}
Expand description
Decorations a window is created with.
Variants§
ServerDefault
The window should use the decoration mode the server asks for.
The server may ask the client to render with or without client side decorations. If server side decorations are not available, client side decorations are drawn instead.
RequestServer
The window should request server side decorations.
The server may ignore this request and ask the client to render with client side decorations. If server side decorations are not available, client side decorations are drawn instead.
RequestClient
The window should request client side decorations.
The server may ignore this request and render server side decorations. If server side decorations are not available, client side decorations are drawn.
ClientOnly
The window should always draw it’s own client side decorations.
None
The window should use server side decorations or draw any client side decorations.
Trait Implementations§
source§impl Clone for WindowDecorations
impl Clone for WindowDecorations
source§fn clone(&self) -> WindowDecorations
fn clone(&self) -> WindowDecorations
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WindowDecorations
impl Debug for WindowDecorations
source§impl PartialEq for WindowDecorations
impl PartialEq for WindowDecorations
impl Copy for WindowDecorations
impl Eq for WindowDecorations
impl StructuralPartialEq for WindowDecorations
Auto Trait Implementations§
impl Freeze for WindowDecorations
impl RefUnwindSafe for WindowDecorations
impl Send for WindowDecorations
impl Sync for WindowDecorations
impl Unpin for WindowDecorations
impl UnwindSafe for WindowDecorations
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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
.§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
.§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.§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.