pub struct World {
pub update_view: UpdateView,
pub data: DataRaw,
/* private fields */
}Expand description
Everything we need to draw
Fields§
§update_view: UpdateView§data: DataRawImplementations§
source§impl World
impl World
pub fn new(ims_raw: DataRaw, zoom_box: Option<BbF>) -> Self
pub fn request_redraw_annotations( &mut self, tool_name: &str, visibility_active: Visibility, )
pub fn request_redraw_tmp_anno(&mut self, anno: Annotation)
pub fn stop_tmp_anno(&mut self)
pub fn request_redraw_image(&mut self)
sourcepub fn from_real_im(
im: DynamicImage,
tools_data: ToolsDataMap,
file_path: Option<String>,
prj_path: &Path,
file_selected_idx: Option<usize>,
) -> Self
pub fn from_real_im( im: DynamicImage, tools_data: ToolsDataMap, file_path: Option<String>, prj_path: &Path, file_selected_idx: Option<usize>, ) -> Self
real image in contrast to the loading image
pub fn shape_orig(&self) -> ShapeI
pub fn set_zoom_box(&mut self, zoom_box: Option<BbF>)
pub fn zoom_box(&self) -> &Option<BbF>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for World
impl RefUnwindSafe for World
impl Send for World
impl Sync for World
impl Unpin for World
impl UnwindSafe for World
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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> 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().source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§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 moresource§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).source§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.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.