pub struct ImageView {
pub selected_img_index: usize,
/* private fields */
}Fields§
§selected_img_index: usizeImplementations§
Source§impl ImageView
impl ImageView
pub fn new( image_paths: &[PathBuf], selected_image_path: &Option<PathBuf>, config: ImageViewConfig, output_profile: &String, ) -> ImageView
pub fn set_images( &mut self, image_paths: &[PathBuf], selected_image_path: &Option<PathBuf>, )
pub fn load(&mut self)
pub fn select_by_name(&mut self, img_name: String)
pub fn next_image(&mut self)
pub fn previous_image(&mut self)
pub fn toggle_frame(&mut self)
pub fn reset_zoom(&mut self)
pub fn double_zoom(&mut self)
pub fn multiply_zoom(&mut self, zoom_delta: f32)
Sourcepub fn set_zoom_factor_from_percentage(&mut self, percentage: &f32)
pub fn set_zoom_factor_from_percentage(&mut self, percentage: &f32)
Sets zoom factor based on percentage and opened image size
pub fn fit_vertical(&mut self)
pub fn fit_horizontal(&mut self)
pub fn fit_maximize(&mut self)
pub fn latch_fit_maximize(&mut self)
pub fn get_active_img_nr(&mut self) -> usize
pub fn get_active_img_mut(&mut self) -> Option<&mut GalleryImage>
pub fn get_active_img(&self) -> Option<&GalleryImage>
pub fn get_active_img_name(&mut self) -> String
pub fn get_active_img_path(&self) -> Option<PathBuf>
pub fn active_img_is_loading(&self) -> bool
pub fn jump_to_image(&mut self)
pub fn reload_at(&mut self, path: &Path)
pub fn is_valid_for_preload(preload_nr: usize, image_count: usize) -> bool
pub fn ui(&mut self, ctx: &Context, flattened: bool, watcher_enabled: bool)
pub fn handle_input(&mut self, ctx: &Context)
pub fn take_callback(&mut self) -> Option<Callback>
Auto Trait Implementations§
impl Freeze for ImageView
impl !RefUnwindSafe for ImageView
impl Send for ImageView
impl Sync for ImageView
impl Unpin for ImageView
impl !UnwindSafe for ImageView
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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> DowncastSync for T
impl<T> DowncastSync for T
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