pub enum Decorations {
ServerSide,
ClientSide,
FollowServer,
None,
}
Expand description
Possible decoration modes for a Window
This represents what your application requests from the server.
In any case, the compositor may override your requests. In that case SCTK will follow its decision.
If you don’t care about it, you should use FollowServer
(which is the
SCTK default). It’d be the most ergonomic for your users.
Variants§
ServerSide
Request server-side decorations
ClientSide
Force using the client-side Frame
FollowServer
Follow the preference of the compositor
None
Don’t decorate the Window
Trait Implementations§
source§impl Debug for Decorations
impl Debug for Decorations
source§impl PartialEq for Decorations
impl PartialEq for Decorations
source§fn eq(&self, other: &Decorations) -> bool
fn eq(&self, other: &Decorations) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Decorations
impl StructuralEq for Decorations
impl StructuralPartialEq for Decorations
Auto Trait Implementations§
impl RefUnwindSafe for Decorations
impl Send for Decorations
impl Sync for Decorations
impl Unpin for Decorations
impl UnwindSafe for Decorations
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
Mutably borrows from an owned value. Read more