pub struct CydDisplayMemory { /* private fields */ }Expand description
Owned display half of CydMemory.
Trait Implementations§
Source§impl Clone for CydDisplayMemory
impl Clone for CydDisplayMemory
Source§fn clone(&self) -> CydDisplayMemory
fn clone(&self) -> CydDisplayMemory
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 moreSource§impl CydDisplay for CydDisplayMemory
impl CydDisplay for CydDisplayMemory
Source§fn screen_size(&self) -> Size
fn screen_size(&self) -> Size
Screen size after applying the configured
Orientation:
320×240 in landscape or 240×320 in portrait. Read moreSource§fn background_color(&self) -> Rgb888
fn background_color(&self) -> Rgb888
The device default background color. Read more
Source§fn foreground_color(&self) -> Rgb888
fn foreground_color(&self) -> Rgb888
The device default foreground/text color. Read more
Source§fn background_565(&self) -> Rgb565
fn background_565(&self) -> Rgb565
The device default background color in the native
Rgb565 format. Read moreSource§fn foreground_565(&self) -> Rgb565
fn foreground_565(&self) -> Rgb565
The device default foreground/text color in the native
Rgb565 format. Read moreSource§fn fill_rectangle(
&mut self,
rectangle: Rectangle,
color: Rgb565,
) -> Result<(), Self::Error>
fn fill_rectangle( &mut self, rectangle: Rectangle, color: Rgb565, ) -> Result<(), Self::Error>
Source§fn fill_contiguous<I>(
&mut self,
rectangle: Rectangle,
pixels: I,
) -> Result<(), Self::Error>where
I: IntoIterator<Item = Rgb565>,
fn fill_contiguous<I>(
&mut self,
rectangle: Rectangle,
pixels: I,
) -> Result<(), Self::Error>where
I: IntoIterator<Item = Rgb565>,
Fill
rectangle immediately from row-major native-color pixels. Read moreSource§fn frame_mut(&mut self, rectangle: Rectangle) -> Self::Frame<'_>
fn frame_mut(&mut self, rectangle: Rectangle) -> Self::Frame<'_>
Borrow a frame covering
rectangle, cleared to the device background color. Read moreSource§fn full_frame_mut(&mut self) -> Self::Frame<'_>
fn full_frame_mut(&mut self) -> Self::Frame<'_>
Borrow a full-screen frame, cleared to the device background color. Read more
Source§fn fill_contiguous_full<I>(&mut self, pixels: I) -> Result<(), Self::Error>where
I: IntoIterator<Item = Rgb565>,
fn fill_contiguous_full<I>(&mut self, pixels: I) -> Result<(), Self::Error>where
I: IntoIterator<Item = Rgb565>,
Fill the complete screen immediately from row-major native-color pixels. Read more
Source§fn draw_items<const DRAW_ITEM_CAPACITY: usize>(
&mut self,
bounds: Rectangle,
background_color: Rgb565,
items: impl IntoIterator<Item = DrawItem>,
) -> Result<(), Self::Error>
fn draw_items<const DRAW_ITEM_CAPACITY: usize>( &mut self, bounds: Rectangle, background_color: Rgb565, items: impl IntoIterator<Item = DrawItem>, ) -> Result<(), Self::Error>
Source§fn clear(&mut self) -> Result<(), Self::Error>
fn clear(&mut self) -> Result<(), Self::Error>
Clear the whole screen to the device default background color. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CydDisplayMemory
impl !Send for CydDisplayMemory
impl !Sync for CydDisplayMemory
impl !UnwindSafe for CydDisplayMemory
impl Freeze for CydDisplayMemory
impl Unpin for CydDisplayMemory
impl UnsafeUnpin for CydDisplayMemory
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<S, T> Upcast<T> for S
impl<S, T> Upcast<T> for S
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.