pub struct ThemePickerState { /* private fields */ }Implementations§
Source§impl ThemePickerState
impl ThemePickerState
pub fn new() -> ThemePickerState
Available on crate feature
theme-picker only.pub fn show(&mut self)
Available on crate feature
theme-picker only.pub fn hide(&mut self)
Available on crate feature
theme-picker only.pub fn is_visible(&self) -> bool
Available on crate feature
theme-picker only.pub fn index(&self) -> usize
Available on crate feature
theme-picker only.pub fn set_index(&mut self, index: usize)
Available on crate feature
theme-picker only.pub fn filter(&self) -> &str
Available on crate feature
theme-picker only.pub fn push_filter(&mut self, c: char)
Available on crate feature
theme-picker only.pub fn pop_filter(&mut self)
Available on crate feature
theme-picker only.pub fn clear_filter(&mut self)
Available on crate feature
theme-picker only.pub fn current_preview(&self) -> &ThemeColors
Available on crate feature
theme-picker only.pub fn set_current_preview(&mut self, theme: ThemeColors)
Available on crate feature
theme-picker only.pub fn saved_index(&self) -> usize
Available on crate feature
theme-picker only.pub fn set_saved_index(&mut self, index: usize)
Available on crate feature
theme-picker only.pub fn restore_original(&mut self)
Available on crate feature
theme-picker only.Trait Implementations§
Source§impl Clone for ThemePickerState
impl Clone for ThemePickerState
Source§fn clone(&self) -> ThemePickerState
fn clone(&self) -> ThemePickerState
Returns a duplicate 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 ThemePickerState
impl Debug for ThemePickerState
Source§impl From<&ThemePickerState> for ThemePickerStateSnapshot
impl From<&ThemePickerState> for ThemePickerStateSnapshot
Source§fn from(state: &ThemePickerState) -> ThemePickerStateSnapshot
fn from(state: &ThemePickerState) -> ThemePickerStateSnapshot
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ThemePickerState
impl RefUnwindSafe for ThemePickerState
impl Send for ThemePickerState
impl Sync for ThemePickerState
impl Unpin for ThemePickerState
impl UnsafeUnpin for ThemePickerState
impl UnwindSafe for ThemePickerState
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<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