#[non_exhaustive]pub struct PaintedSprite {
pub picture: PaintedId,
pub src: PxRect,
pub dest: PxRect,
pub clip: PxRect,
pub layer: Layer,
pub brightness: u8,
}Expand description
Where a painted picture is drawn (ADR-0078): part of it, src,
stretched to dest with nearest-pixel sampling, never smoothed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.picture: PaintedIdWhich picture of the frame’s table.
src: PxRectThe part of the picture shown, in its pixels. It must lie inside the picture.
dest: PxRectWhere src is stretched to, in console pixels.
clip: PxRectThe part of dest that is drawn; clipping only ever shrinks it,
as a sprite’s.
layer: LayerUnder or over the glyphs.
brightness: u8How bright its pixels are drawn: 255 = as painted, lower = that
much darker (GlyphBuffer::fade lowers it).
Implementations§
Source§impl PaintedSprite
impl PaintedSprite
Trait Implementations§
Source§impl Clone for PaintedSprite
impl Clone for PaintedSprite
Source§fn clone(&self) -> PaintedSprite
fn clone(&self) -> PaintedSprite
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PaintedSprite
Source§impl Debug for PaintedSprite
impl Debug for PaintedSprite
impl Eq for PaintedSprite
Source§impl Hash for PaintedSprite
impl Hash for PaintedSprite
Source§impl PartialEq for PaintedSprite
impl PartialEq for PaintedSprite
impl StructuralPartialEq for PaintedSprite
Auto Trait Implementations§
impl Freeze for PaintedSprite
impl RefUnwindSafe for PaintedSprite
impl Send for PaintedSprite
impl Sync for PaintedSprite
impl Unpin for PaintedSprite
impl UnsafeUnpin for PaintedSprite
impl UnwindSafe for PaintedSprite
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