Struct avrox_display::drivers::solomon::SolomonDisplay
source · pub struct SolomonDisplay<CONFIG, CLIENT, DPIXEL>{ /* private fields */ }
Implementations§
source§impl<CONFIG, CLIENT, DPIXEL> SolomonDisplay<CONFIG, CLIENT, DPIXEL>
impl<CONFIG, CLIENT, DPIXEL> SolomonDisplay<CONFIG, CLIENT, DPIXEL>
pub fn using_pin_and_client<OP: Into<OwnOrBorrow<'static, dyn Pin>>>( pin: OP, client: CLIENT ) -> Self
pub fn set_brightness(&self, brightness: u8) -> GfxResult<()>
pub fn set_double_buffering(&self, double_buffer: bool) -> GfxResult<()>
Trait Implementations§
source§impl<CONFIG, CLIENT, DPIXEL> DisplayDevice for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
impl<CONFIG, CLIENT, DPIXEL> DisplayDevice for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
source§fn request_power_level(&self, level: PowerLevel) -> GfxResult<()>
fn request_power_level(&self, level: PowerLevel) -> GfxResult<()>
Request the display device moves to the indicated power level.
source§fn render<RPIXEL, RENDERABLE>(&self, scene: &RENDERABLE) -> GfxResult<()>
fn render<RPIXEL, RENDERABLE>(&self, scene: &RENDERABLE) -> GfxResult<()>
Render the given scene in its entirety, replacing whatever is on the
screen already
source§fn render_changed<RPIXEL, RENDERABLE>(
&self,
scene: &RENDERABLE
) -> GfxResult<()>
fn render_changed<RPIXEL, RENDERABLE>( &self, scene: &RENDERABLE ) -> GfxResult<()>
Render only the parts of the display that have - or may have - changed
since the last time it was rendered. The worst-case, always correct,
implementation of this method will just redraw the entire display -
however the driver may be able to make more efficient choices than that.
source§impl<CONFIG, CLIENT, DPIXEL> RenderPlane for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
impl<CONFIG, CLIENT, DPIXEL> RenderPlane for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
impl<CONFIG, CLIENT, DPIXEL> Send for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
impl<CONFIG, CLIENT, DPIXEL> Sync for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
Auto Trait Implementations§
impl<CONFIG, CLIENT, DPIXEL> !Freeze for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
impl<CONFIG, CLIENT, DPIXEL> !RefUnwindSafe for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
impl<CONFIG, CLIENT, DPIXEL> Unpin for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
impl<CONFIG, CLIENT, DPIXEL> !UnwindSafe for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
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