pub struct Panel {
pub width: u16,
pub height: u16,
pub offset_x: u16,
pub offset_y: u16,
pub memory_width: u16,
pub memory_height: u16,
pub bgr: bool,
pub invert: bool,
}Expand description
How a physical panel sits inside the controller’s frame memory.
Fields§
§width: u16Visible width in native (portrait) orientation.
height: u16Visible height in native orientation.
offset_x: u16Column of the first visible pixel in frame memory.
offset_y: u16Row of the first visible pixel in frame memory.
memory_width: u16Frame memory width (240 for ST7789).
memory_height: u16Frame memory height (320 for ST7789).
bgr: boolPanel wires sub-pixels in BGR order.
invert: boolPanel needs colour inversion (INVON) for correct colours.
Implementations§
Trait Implementations§
impl Copy for Panel
impl Eq for Panel
impl StructuralPartialEq for Panel
Auto Trait Implementations§
impl Freeze for Panel
impl RefUnwindSafe for Panel
impl Send for Panel
impl Sync for Panel
impl Unpin for Panel
impl UnsafeUnpin for Panel
impl UnwindSafe for Panel
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)