pub struct FrameInspector { /* private fields */ }Expand description
Frame inspector for detailed pixel-level debugging
Implementations§
Source§impl FrameInspector
impl FrameInspector
pub fn new() -> Self
pub fn load_frame(&mut self, frame: Frame)
pub fn move_cursor(&mut self, dx: i32, dy: i32)
pub fn set_cursor(&mut self, x: u32, y: u32)
pub fn get_pixel_at_cursor(&self) -> Option<PixelInfo>
pub fn get_pixel_at(&self, x: u32, y: u32) -> Option<PixelInfo>
pub fn get_region(&self, x: u32, y: u32, width: u32, height: u32) -> RegionInfo
pub fn find_non_transparent_bounds(&self) -> Option<BoundsInfo>
pub fn scan_line(&self, y: u32) -> Vec<LineScanSegment>
pub fn compare_pixels( &self, x1: u32, y1: u32, x2: u32, y2: u32, ) -> Option<PixelComparison>
pub fn print_cursor_info(&self)
pub fn print_ascii_preview(&self, width: u32, height: u32)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameInspector
impl RefUnwindSafe for FrameInspector
impl Send for FrameInspector
impl Sync for FrameInspector
impl Unpin for FrameInspector
impl UnsafeUnpin for FrameInspector
impl UnwindSafe for FrameInspector
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> 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 moreSource§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().