pub struct FilesPlugin { /* private fields */ }Expand description
The plugin.
Implementations§
Source§impl FilesPlugin
impl FilesPlugin
Sourcepub fn in_app() -> Self
pub fn in_app() -> Self
The in-app picker: the same as FilesPlugin::default, which no
longer turns to the system’s chooser by itself.
Sourcepub fn file_system(self, fs: SharedFs) -> Self
pub fn file_system(self, fs: SharedFs) -> Self
The in-app picker reads from fs (a fs::MemoryFs, say), not
from the system’s file system.
Sourcepub fn without_builtin_previews(self) -> Self
pub fn without_builtin_previews(self) -> Self
Without the built-in preview providers (providers::builtin):
only those plugins register.
Sourcepub fn grouping(self, grouping: Arc<dyn FileGrouping>) -> Self
pub fn grouping(self, grouping: Arc<dyn FileGrouping>) -> Self
Files that go together are one entry of the in-app picker, by this
grouping of the application’s (groups). egui-pop declares none of its
own. Several apply in the order given.
Sourcepub fn places(self, provider: Arc<dyn PlaceProvider>) -> Self
pub fn places(self, provider: Arc<dyn PlaceProvider>) -> Self
Sections of places of the application’s, listed by the in-app picker
under its own and by a places::PlacesPanel (places).
Several come in the order given.
Sourcepub fn grid_resize(self, resize: GridResize) -> Self
pub fn grid_resize(self, resize: GridResize) -> Self
What the in-app picker’s thumbnail zoom means when its grid is
resized (browser::GridResize::PerRow by default): a count per
row (THUMBNAILS_PER_ROW), or a size that keeps the thumbnails’
size and adds columns (THUMBNAIL_POINTS).
Trait Implementations§
Source§impl Clone for FilesPlugin
impl Clone for FilesPlugin
Source§fn clone(&self) -> FilesPlugin
fn clone(&self) -> FilesPlugin
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FilesPlugin
impl Debug for FilesPlugin
Source§impl Default for FilesPlugin
impl Default for FilesPlugin
Source§impl Plugin for FilesPlugin
impl Plugin for FilesPlugin
fn id(&self) -> PluginId
Source§fn title(&self) -> String
fn title(&self) -> String
Source§fn enabled(&self, _ctx: &Ctx<'_>) -> bool
fn enabled(&self, _ctx: &Ctx<'_>) -> bool
Source§fn disconnect(&mut self, _ctx: &mut Ctx<'_>)
fn disconnect(&mut self, _ctx: &mut Ctx<'_>)
Auto Trait Implementations§
impl Freeze for FilesPlugin
impl !RefUnwindSafe for FilesPlugin
impl Send for FilesPlugin
impl Sync for FilesPlugin
impl Unpin for FilesPlugin
impl UnsafeUnpin for FilesPlugin
impl !UnwindSafe for FilesPlugin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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> 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>
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>
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