pub struct Control {
pub reader: Option<ReaderFromCfg>,
pub info: Info,
pub paths_navigator: PathsNavigator,
pub opened_folder: Option<String>,
pub cfg: Cfg,
pub file_loaded: Option<usize>,
pub file_selected_idx: Option<usize>,
pub file_info_selected: Option<String>,
pub loading_screen_animation_counter: u128,
/* private fields */
}Fields§
§reader: Option<ReaderFromCfg>§info: Info§opened_folder: Option<String>§cfg: Cfg§file_loaded: Option<usize>§file_selected_idx: Option<usize>§file_info_selected: Option<String>§loading_screen_animation_counter: u128Implementations§
source§impl Control
impl Control
pub fn flags(&self) -> &ControlFlags
pub fn reload(&mut self, sort_type: SortType) -> RvResult<()>
pub fn load(&mut self, file_name: &str) -> RvResult<ToolsDataMap>
pub fn sort( &mut self, sort_type: SortType, filter_str: &str, tools_data_map: &ToolsDataMap, active_tool_name: Option<&str> ) -> RvResult<()>
pub fn save(&self, tools_data_map: &ToolsDataMap) -> RvResult<PathBuf>
pub fn new(cfg: Cfg) -> Self
pub fn reader(&self) -> Option<&ReaderFromCfg>
pub fn read_image( &mut self, file_label_selected_idx: usize, reload: bool ) -> RvResult<Option<ImageInfoPair>>
pub fn open_folder(&mut self, new_folder: String) -> RvResult<()>
pub fn load_opened_folder_content( &mut self, sort_type: SortType ) -> RvResult<()>
pub fn check_if_connected(&mut self, sort_type: SortType) -> RvResult<bool>
pub fn opened_folder_label(&self) -> Option<&str>
pub fn file_label(&self, idx: usize) -> &str
pub fn cfg_of_opened_folder(&self) -> Option<&Cfg>
pub fn connection_data(&self) -> RvResult<ConnectionData>
pub fn meta_data( &self, file_selected_idx: Option<usize>, is_loading_screen_active: Option<bool> ) -> MetaData
pub fn redo( &mut self, history: &mut History ) -> Option<(DataRaw, Option<usize>)>
pub fn undo( &mut self, history: &mut History ) -> Option<(DataRaw, Option<usize>)>
pub fn load_new_image_if_triggered( &mut self, world: &mut World, history: &mut History ) -> RvResult<Option<(DataRaw, Option<usize>)>>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Control
impl Send for Control
impl !Sync for Control
impl Unpin for Control
impl !UnwindSafe for Control
Blanket Implementations§
source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.
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>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().§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.