Struct sh1106::mode::graphics::GraphicsMode [−][src]
pub struct GraphicsMode<DI> where
DI: DisplayInterface, { /* fields omitted */ }
Expand description
Graphics mode handler
Implementations
Clear the display buffer. You need to call display.flush()
for any effect on the screen
Reset display
Turn a pixel on or off. A non-zero value
is treated as on, 0
as off. If the X and Y
coordinates are out of the bounds of the display, this method call is a noop.
Display is set up in column mode, i.e. a byte walks down a column of 8 pixels from column 0 on the left, to column n on the right
Get display dimensions, taking into account the current rotation of the display
Set the display rotation
Set the display contrast
Trait Implementations
Create new GraphicsMode instance
Release all resources used by GraphicsMode
type Color = BinaryColor
type Color = BinaryColor
The pixel color type the targetted display supports.
type Error = Infallible
type Error = Infallible
Error type to return when a drawing operation fails. Read more
Draw individual pixels to the display without a defined order. Read more
fn fill_contiguous<I>(
&mut self,
area: &Rectangle,
colors: I
) -> Result<(), Self::Error> where
I: IntoIterator<Item = Self::Color>,
fn fill_contiguous<I>(
&mut self,
area: &Rectangle,
colors: I
) -> Result<(), Self::Error> where
I: IntoIterator<Item = Self::Color>,
Fill a given area with an iterator providing a contiguous stream of pixel colors. Read more
Fill a given area with a solid color. Read more
Auto Trait Implementations
impl<DI> Send for GraphicsMode<DI> where
DI: Send,
impl<DI> Sync for GraphicsMode<DI> where
DI: Sync,
impl<DI> Unpin for GraphicsMode<DI> where
DI: Unpin,
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Returns the bounding box.
Casts the value.
Casts the value.
Casts the value.
Casts the value.