pub struct ChromeConfig {
pub prefer_custom: bool,
pub provided: bool,
}Expand description
Window chrome (decorations) preference.
Fields§
§prefer_custom: boolWindow manager prefers that the window renders a custom chrome.
This is also called “Client-Side Decorations”, it is true in GNOME+Wayland.
provided: boolIf the Window manager provides a chrome.
When this is false the view-process implementation may provide just a very basic fallback chrome,
if the app-process still requests system chrome.
Implementations§
Source§impl ChromeConfig
impl ChromeConfig
Sourcepub fn needs_custom(&self) -> bool
pub fn needs_custom(&self) -> bool
If system prefers custom and does not provide chrome.
Note that a chromeless window is not forbidden if this is true.
Trait Implementations§
Source§impl Clone for ChromeConfig
impl Clone for ChromeConfig
Source§fn clone(&self) -> ChromeConfig
fn clone(&self) -> ChromeConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChromeConfig
impl Debug for ChromeConfig
Source§impl Default for ChromeConfig
impl Default for ChromeConfig
Source§impl<'de> Deserialize<'de> for ChromeConfig
impl<'de> Deserialize<'de> for ChromeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChromeConfig
impl PartialEq for ChromeConfig
Source§impl Serialize for ChromeConfig
impl Serialize for ChromeConfig
impl Copy for ChromeConfig
impl Eq for ChromeConfig
impl StructuralPartialEq for ChromeConfig
Auto Trait Implementations§
impl Freeze for ChromeConfig
impl RefUnwindSafe for ChromeConfig
impl Send for ChromeConfig
impl Sync for ChromeConfig
impl Unpin for ChromeConfig
impl UnwindSafe for ChromeConfig
Blanket Implementations§
Source§impl<T> AnyVarValue for Twhere
T: VarValue,
impl<T> AnyVarValue for Twhere
T: VarValue,
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Access to mut
dyn Any methods.Source§fn clone_boxed(&self) -> Box<dyn AnyVarValue>
fn clone_boxed(&self) -> Box<dyn AnyVarValue>
Clone the value.
Source§fn clone_boxed_var(&self) -> Box<dyn AnyVar>
fn clone_boxed_var(&self) -> Box<dyn AnyVar>
Clone the value into a new boxed
LocalVar<Self>.Source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
Gets if
self equals other.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more