pub struct RestoreOptions {
pub unminimize: bool,
pub show: bool,
pub focus: bool,
pub restore_minimized: bool,
}Expand description
What WindowStateStore::restore_with does besides positioning. The default does nothing else,
which is what restore and the full plugin have always done.
Fields§
§unminimize: boolUnminimise the window.
show: boolShow the window.
focus: boolGive the window focus (raises it; leave off for a window that must not steal focus).
restore_minimized: boolMinimise again a window that was saved minimised. Applied last, after show.
Implementations§
Source§impl RestoreOptions
impl RestoreOptions
Sourcepub fn constrained(self, mode: RevealMode) -> Self
pub fn constrained(self, mode: RevealMode) -> Self
These options as the visibility guard allows them: Forbidden strips unminimise, show,
focus and re-minimise; Background strips unminimise and focus (QA never raises a window).
Trait Implementations§
Source§impl Clone for RestoreOptions
impl Clone for RestoreOptions
impl Copy for RestoreOptions
Source§impl Debug for RestoreOptions
impl Debug for RestoreOptions
Source§impl Default for RestoreOptions
impl Default for RestoreOptions
impl Eq for RestoreOptions
Source§impl PartialEq for RestoreOptions
impl PartialEq for RestoreOptions
impl StructuralPartialEq for RestoreOptions
Auto Trait Implementations§
impl Freeze for RestoreOptions
impl RefUnwindSafe for RestoreOptions
impl Send for RestoreOptions
impl Sync for RestoreOptions
impl Unpin for RestoreOptions
impl UnsafeUnpin for RestoreOptions
impl UnwindSafe for RestoreOptions
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
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§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.