pub struct ResolvedScreenImage { /* private fields */ }Expand description
One immutable screen-image description in a published CPU snapshot.
Positions are current logical pixels, independent of camera interpolation. The registry owns its source pixels; this record never holds a GPU handle.
Implementations§
Source§impl ResolvedScreenImage
impl ResolvedScreenImage
Sourcepub const fn rotation(self) -> f32
pub const fn rotation(self) -> f32
Returns clockwise center rotation in radians, independent of the World camera.
Sourcepub const fn clip(self) -> ScreenClip
pub const fn clip(self) -> ScreenClip
Returns the sampled fixed-screen clip, including an explicit empty scope.
Sourcepub const fn source(self) -> LogicEntity
pub const fn source(self) -> LogicEntity
Returns the managed entity that produced this image.
Sourcepub const fn image(self) -> ImageAssetId
pub const fn image(self) -> ImageAssetId
Returns the immutable application-registered image identity.
Sourcepub const fn position(self) -> LogicalScreenPosition
pub const fn position(self) -> LogicalScreenPosition
Returns logical screen top-left, with y increasing downward.
Sourcepub const fn size(self) -> LogicalScreenVector
pub const fn size(self) -> LogicalScreenVector
Returns strictly positive logical width and height.
Sourcepub const fn tint(self) -> Color
pub const fn tint(self) -> Color
Returns normalized straight-linear RGBA multiplied with decoded pixels.
Sourcepub const fn source_region(self) -> Option<ImageRegion>
pub const fn source_region(self) -> Option<ImageRegion>
Returns the optional source texel region; None means the complete image.
Sourcepub const fn filter(self) -> ImageFilter
pub const fn filter(self) -> ImageFilter
Returns nearest or linear texture sampling.
Sourcepub const fn draw_order_depth(self) -> f32
pub const fn draw_order_depth(self) -> f32
Returns finite mixed-screen ordering depth, not geometric camera depth.
Trait Implementations§
Source§impl Clone for ResolvedScreenImage
impl Clone for ResolvedScreenImage
impl Copy for ResolvedScreenImage
Source§impl Debug for ResolvedScreenImage
impl Debug for ResolvedScreenImage
Source§impl PartialEq for ResolvedScreenImage
impl PartialEq for ResolvedScreenImage
impl StructuralPartialEq for ResolvedScreenImage
Auto Trait Implementations§
impl Freeze for ResolvedScreenImage
impl RefUnwindSafe for ResolvedScreenImage
impl Send for ResolvedScreenImage
impl Sync for ResolvedScreenImage
impl Unpin for ResolvedScreenImage
impl UnsafeUnpin for ResolvedScreenImage
impl UnwindSafe for ResolvedScreenImage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
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>
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>
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)
&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)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.