pub struct VirtualCanvas<'a> {
pub width: u64,
pub height: u64,
pub data: &'a mut [u32],
pub o_width: u64,
pub o_height: u64,
pub overlay: &'a mut [char],
}
Expand description
Here plugins do their changes.
Fields§
§width: u64
§height: u64
§data: &'a mut [u32]
ARGB data; access pixels with [y * width + x]
.
o_width: u64
§o_height: u64
§overlay: &'a mut [char]
Overlay as visible on the screen; access pixels with [y * o_width + x]
.
Auto Trait Implementations§
impl<'a> Freeze for VirtualCanvas<'a>
impl<'a> RefUnwindSafe for VirtualCanvas<'a>
impl<'a> Send for VirtualCanvas<'a>
impl<'a> Sync for VirtualCanvas<'a>
impl<'a> Unpin for VirtualCanvas<'a>
impl<'a> !UnwindSafe for VirtualCanvas<'a>
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