Struct avrox_display::gfx::img::GreyscaleImage
source · pub struct GreyscaleImage<FILE>{ /* private fields */ }
Trait Implementations§
source§impl<FILE> Clone for GreyscaleImage<FILE>
impl<FILE> Clone for GreyscaleImage<FILE>
source§fn clone(&self) -> GreyscaleImage<FILE>
fn clone(&self) -> GreyscaleImage<FILE>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<FILE> From<ImageFile<FILE>> for GreyscaleImage<FILE>
impl<FILE> From<ImageFile<FILE>> for GreyscaleImage<FILE>
source§impl<FILE> OxideTryFrom<ImageFile<FILE>> for GreyscaleImage<FILE>
impl<FILE> OxideTryFrom<ImageFile<FILE>> for GreyscaleImage<FILE>
type Error = GfxError
fn oxide_try_from(file: ImageFile<FILE>) -> OxideResult<Self, Self::Error>where
Self: Sized,
source§impl<FILE> Renderable for GreyscaleImage<FILE>
impl<FILE> Renderable for GreyscaleImage<FILE>
type PIXEL = Grey
source§fn get_pixel_at<P: RenderPlane>(&self, coord: Point) -> GfxResult<Self::PIXEL>
fn get_pixel_at<P: RenderPlane>(&self, coord: Point) -> GfxResult<Self::PIXEL>
Return the value of the pixel at the given X-Y coordinate
source§fn get_dimensions<P: RenderPlane>(&self) -> GfxResult<(XCoord, YCoord)>
fn get_dimensions<P: RenderPlane>(&self) -> GfxResult<(XCoord, YCoord)>
Return the dimensions of this primitive. Other container types may
use this to aid in optimisation or layout.
source§fn has_changes<P: RenderPlane>(&self) -> bool
fn has_changes<P: RenderPlane>(&self) -> bool
Indicate if any of the content of this renderable has (or may have)
changed.
source§fn get_change_area<P: RenderPlane>(&self) -> GfxResult<Option<Area>>
fn get_change_area<P: RenderPlane>(&self) -> GfxResult<Option<Area>>
Return the area of this renderable that has (or may have) changed.
Auto Trait Implementations§
impl<FILE> !Freeze for GreyscaleImage<FILE>
impl<FILE> !RefUnwindSafe for GreyscaleImage<FILE>
impl<FILE> Send for GreyscaleImage<FILE>where
FILE: Send,
impl<FILE> !Sync for GreyscaleImage<FILE>
impl<FILE> Unpin for GreyscaleImage<FILE>where
FILE: Unpin,
impl<FILE> UnwindSafe for GreyscaleImage<FILE>where
FILE: UnwindSafe,
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<X> DisplayAs<X> for Xwhere
X: Clone,
impl<X> DisplayAs<X> for Xwhere
X: Clone,
fn display_value(&self) -> X
source§fn is_mutable(&self) -> bool
fn is_mutable(&self) -> bool
True if this value is mutable (i.e. can change underneath us :-).)