pub struct Viewport { /* private fields */ }Implementations§
Source§impl Viewport
impl Viewport
pub fn open(id_salt: impl Hash + Debug, path: impl Into<PathBuf>) -> Viewport
pub fn id(&self) -> Id
pub fn path(&self) -> &Path
pub fn scene(&self) -> Option<&Scene>
pub fn shown(&self) -> Option<&Scene>
pub fn error(&self) -> Option<&str>
pub fn failure(&self) -> Option<&str>
pub fn refusal(&self) -> Option<&str>
pub fn files(&self) -> Vec<PathBuf>
pub fn reloads(&self) -> u64
pub fn set_wake(&mut self, wake: Wake)
pub fn set_pgpu(&mut self, pgpu: Pgpu)
pub fn set_grid(&mut self, grid: bool)
pub fn timing(&self) -> Timing
pub fn texture(&self) -> Option<TextureId>
pub fn live(&self) -> Option<&Live>
pub fn selection(&self) -> Option<&Selection>
pub fn hovered(&self) -> Option<usize>
pub fn gizmo(&self) -> &Gizmo
pub fn gizmo_mut(&mut self) -> &mut Gizmo
pub fn look(&self) -> Look
pub fn image(&self) -> Option<Rect>
pub fn take_events(&mut self) -> Vec<Event>
pub fn select(&mut self, name: Option<&str>) -> bool
pub fn eye(&self) -> Option<Eye>
pub fn set_frame_aspect(&mut self, aspect: Option<f32>)
pub fn frame_aspect(&self) -> Option<f32>
pub fn passepartout(&self) -> Option<Rect>
pub fn view(&self) -> Option<Eye>
pub fn lens(&self) -> Option<Lens>
pub fn set_eye(&mut self, eye: Eye)
pub fn look_through_scene(&mut self)
pub fn camera(&self) -> Option<Camera>
pub fn frame_selection(&mut self)
pub fn poll(&mut self)
pub fn check(&mut self)
pub fn wanted(&self) -> BTreeMap<String, Override>
pub fn show( &mut self, ui: &mut Ui, files: &mut Files, history: &mut History, ) -> Response
pub fn pick_at(&mut self, at: Pos2) -> Option<Selection>
pub fn frame( &mut self, gpu: &Gpu, egui: &mut Renderer, pixels_per_point: f32, ) -> bool
pub fn forget(&mut self)
Auto Trait Implementations§
impl !Freeze for Viewport
impl !RefUnwindSafe for Viewport
impl !Send for Viewport
impl !Sync for Viewport
impl Unpin for Viewport
impl UnsafeUnpin for Viewport
impl !UnwindSafe for Viewport
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
§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.§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>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn 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>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which 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)
Converts
&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)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§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>
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§impl<F, T, S> SimdInto<T, S> for Fwhere
T: SimdFrom<F, S>,
S: Simd,
impl<F, T, S> SimdInto<T, S> for Fwhere
T: SimdFrom<F, S>,
S: Simd,
§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.