pub struct Tab {Show 37 fields
pub location: Location,
pub location_ancestors: Vec<(Location, String)>,
pub location_title: String,
pub location_context_menu_point: Option<Point>,
pub location_context_menu_index: Option<usize>,
pub context_menu: Option<Point>,
pub mode: Mode,
pub scroll_opt: Option<AbsoluteOffset>,
pub size_opt: Cell<Option<Size>>,
pub content_height_opt: Cell<Option<f32>>,
pub viewport_opt: Option<Rectangle>,
pub item_view_size_opt: Cell<Option<Size>>,
pub edit_location: Option<EditLocation>,
pub edit_location_id: Id,
pub history_i: usize,
pub history: Vec<Location>,
pub config: TabConfig,
pub tb_config: TBConfig,
pub thumb_config: ThumbCfg,
pub sort_name: HeadingOptions,
pub sort_direction: bool,
pub gallery: bool,
pub(crate) parent_item_opt: Option<Box<Item>>,
pub(crate) items_opt: Option<Vec<Item>>,
pub dnd_hovered: Option<(Location, Instant)>,
pub(crate) scrollable_id: Id,
select_focus: Option<usize>,
select_range: Option<(usize, usize)>,
clicked: Option<usize>,
selected_clicked: bool,
last_right_click: Option<usize>,
search_context: Option<SearchContext>,
date_time_formatter: DateTimeFormatter<YMDT>,
time_formatter: DateTimeFormatter<T>,
watch_drag: bool,
window_id: Option<Id>,
large_image_manager: LargeImageManager,
}Fields§
§location: Location§location_ancestors: Vec<(Location, String)>§location_title: String§mode: Mode§scroll_opt: Option<AbsoluteOffset>§size_opt: Cell<Option<Size>>§content_height_opt: Cell<Option<f32>>§viewport_opt: Option<Rectangle>§item_view_size_opt: Cell<Option<Size>>§edit_location: Option<EditLocation>§edit_location_id: Id§history_i: usize§history: Vec<Location>§config: TabConfig§tb_config: TBConfig§thumb_config: ThumbCfg§sort_name: HeadingOptions§sort_direction: bool§gallery: bool§parent_item_opt: Option<Box<Item>>§items_opt: Option<Vec<Item>>§dnd_hovered: Option<(Location, Instant)>§scrollable_id: Id§select_focus: Option<usize>§select_range: Option<(usize, usize)>§clicked: Option<usize>§selected_clicked: bool§last_right_click: Option<usize>§search_context: Option<SearchContext>§date_time_formatter: DateTimeFormatter<YMDT>§time_formatter: DateTimeFormatter<T>§watch_drag: bool§window_id: Option<Id>§large_image_manager: LargeImageManagerImplementations§
Source§impl Tab
impl Tab
pub fn new( location: Location, config: TabConfig, tb_config: TBConfig, thumb_config: ThumbCfg, sorting_options: Option<&OrderMap<String, (HeadingOptions, bool), FxBuildHasher>>, scrollable_id: Id, window_id: Option<Id>, ) -> Self
pub fn title(&self) -> String
pub const fn items_opt(&self) -> Option<&Vec<Item>>
pub const fn items_opt_mut(&mut self) -> Option<&mut Vec<Item>>
pub fn set_items(&mut self, items: Vec<Item>)
pub fn cut_selected(&mut self)
pub fn refresh_cut(&mut self, locations: &[PathBuf])
pub fn selected_locations(&self) -> Vec<Location>
Sourcepub fn selected_delete_paths(&self) -> Vec<PathBuf>
pub fn selected_delete_paths(&self) -> Vec<PathBuf>
Returns the actual file paths to delete for selected items. TB result items are virtual groupings — expand them to their component files.
pub fn select_all(&mut self)
pub fn select_none(&mut self) -> bool
pub fn select_name(&mut self, name: &str)
Sourcepub fn select_by_prefix(&mut self, prefix: &str) -> bool
pub fn select_by_prefix(&mut self, prefix: &str) -> bool
Selects the first item whose name starts with the given prefix (case-insensitive). Returns true if an item was selected.
fn index_before_focus(current_focus: Option<usize>, forward: bool) -> usize
fn index_after_focus(current_focus: Option<usize>, forward: bool) -> usize
fn select_first_prefix_from_index( prefix_lower: &str, items: &mut [Item], start: usize, forward: bool, ) -> Option<usize>
Sourcefn select_first_prefix_match<'a>(
prefix: &str,
items: impl Iterator<Item = (usize, &'a mut Item)>,
) -> Option<usize>
fn select_first_prefix_match<'a>( prefix: &str, items: impl Iterator<Item = (usize, &'a mut Item)>, ) -> Option<usize>
Selects the first item in the given iterator whose name starts with the given prefix.
The prefix must be lowercase.
pub fn select_paths(&mut self, paths: Vec<PathBuf>)
fn select_position(&mut self, row: usize, col: usize, mod_shift: bool) -> bool
pub fn select_rect(&mut self, rect: Rectangle, mod_ctrl: bool, mod_shift: bool)
pub fn select_focus_id(&self) -> Option<Id>
fn select_focus_pos_opt(&self) -> Option<(usize, usize)>
fn dehighlight_all(&mut self)
pub(crate) fn select_focus_scroll(&mut self) -> Option<AbsoluteOffset>
fn rows_per_page(&self) -> usize
fn select_range_start_pos_opt(&self) -> Option<(usize, usize)>
fn select_first_pos_opt(&self) -> Option<(usize, usize)>
fn select_last_pos_opt(&self) -> Option<(usize, usize)>
fn trigger_async_decode(&mut self) -> Vec<Command>
pub fn change_location( &mut self, location: &Location, history_i_opt: Option<usize>, )
pub fn update(&mut self, message: Message, modifiers: Modifiers) -> Vec<Command>
pub(crate) const fn sort_options(&self) -> (HeadingOptions, bool, bool)
fn column_sort(&self) -> Option<Vec<(usize, &Item)>>
fn dnd_dest<'a>( &self, location: &Location, element: impl Into<Element<'a, Message>>, ) -> Element<'a, Message>
pub fn gallery_view(&self) -> Element<'_, Message>
pub fn location_view(&self) -> Element<'_, Message>
pub fn empty_view( &self, has_hidden: bool, susceptible_hidden: bool, ) -> Element<'_, Message>
pub fn grid_view( &self, ) -> (Option<Element<'static, Message>>, Element<'_, Message>, bool)
pub fn list_view( &self, ) -> (Option<Element<'static, Message>>, Element<'_, Message>, bool)
pub fn view_responsive<'a>( &'a self, key_binds: &'a HashMap<KeyBind, Action>, modifiers: &'a Modifiers, size: Size, clipboard_paste_available: bool, context_actions: &'a [ContextActionPreset], ) -> Element<'a, Message>
pub fn multi_preview_view<'a>( &'a self, mime_app_cache_opt: Option<&'a MimeAppCache>, ) -> Element<'a, Message>
pub fn view<'a>( &'a self, key_binds: &'a HashMap<KeyBind, Action>, modifiers: &'a Modifiers, clipboard_paste_available: bool, context_actions: &'a [ContextActionPreset], ) -> Element<'a, Message>
pub fn subscription(&self, preview: bool) -> Subscription<Message>
const fn format_time(&self, time: SystemTime) -> FormatTime<'_>
Auto Trait Implementations§
impl !Freeze for Tab
impl !RefUnwindSafe for Tab
impl !Send for Tab
impl !Sync for Tab
impl Unpin for Tab
impl !UnwindSafe for Tab
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
Convert the source color to the destination color using the specified
method.
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default.
§impl<T> Also for T
impl<T> Also for T
§impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
Source§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
Source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
Cast a collection of colors into a collection of arrays.
Source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
Source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
Cast this collection of arrays into a collection of colors.
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<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
Source§type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
The number type that’s used in
parameters when converting.Source§fn cam16_into_unclamped(
self,
parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>,
) -> T
fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T
Converts
self into C, using the provided parameters.§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
Source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
Cast a collection of colors into a collection of color components.
§impl<F, T> ConvertInto<T> for Fwhere
T: ConvertFrom<F>,
impl<F, T> ConvertInto<T> for Fwhere
T: ConvertFrom<F>,
§fn convert_into(self) -> T
fn convert_into(self) -> T
Infallibly converts a value of type
Self to a value of type T.§impl<F, T> ConvertTryFrom<F> for Twhere
F: ConvertInto<T>,
impl<F, T> ConvertTryFrom<F> for Twhere
F: ConvertInto<T>,
§type Error = Infallible
type Error = Infallible
The type of an error that can occur during a conversion. Read more
§fn convert_try_from(value: F) -> Result<T, Infallible>
fn convert_try_from(value: F) -> Result<T, Infallible>
Fallibly converts a value of type
F to a value of type Self.§impl<F, T> ConvertTryInto<T> for Fwhere
T: ConvertTryFrom<F>,
impl<F, T> ConvertTryInto<T> for Fwhere
T: ConvertTryFrom<F>,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
Source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
Performs a conversion from
angle.Source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
Source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
Converts
other into Self, while performing the appropriate scaling,
rounding and clamping.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
Performs a conversion into
T.§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
Source§type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
The number type that’s used in
parameters when converting.Source§fn into_cam16_unclamped(
self,
parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>,
) -> T
fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T
Converts
self into C, using the provided parameters.Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
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 moreSource§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
Converts
self into T, while performing the appropriate scaling,
rounding and clamping.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
Source§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
The error for when
try_into_colors fails to cast.Source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
Try to cast this collection of color components into a collection of
colors. Read more
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds error is returned which contains
the unclamped color. Read moreSource§impl<C, U> UintsFrom<C> for Uwhere
C: IntoUints<U>,
impl<C, U> UintsFrom<C> for Uwhere
C: IntoUints<U>,
Source§fn uints_from(colors: C) -> U
fn uints_from(colors: C) -> U
Cast a collection of colors into a collection of unsigned integers.
Source§impl<C, U> UintsInto<C> for Uwhere
C: FromUints<U>,
impl<C, U> UintsInto<C> for Uwhere
C: FromUints<U>,
Source§fn uints_into(self) -> C
fn uints_into(self) -> C
Cast this collection of unsigned integers into a collection of colors.