[][src]Struct card10_l0dable::Display

pub struct Display;

Methods

impl Display[src]

Immediate mode routines

pub const W: u16[src]

pub const H: u16[src]

pub const FONT_W: u16[src]

pub const FONT_H: u16[src]

pub fn open() -> Self[src]

Open the display, return an instance

pub fn update(&self)[src]

Write Epicardium's framebuffer to the display

pub fn clear(&self, color: Color)[src]

Clear everything with a solid color

pub fn print(&self, x: u16, y: u16, s: &[u8], fg: Color, bg: Color)[src]

Print text

s must be 0-terminated

pub fn print_adv(
    &self,
    font: Font,
    x: u16,
    y: u16,
    s: &[u8],
    fg: Color,
    bg: Color
)
[src]

Print text with a selected font

s must be 0-terminated

pub fn pixel(&self, x: u16, y: u16, color: Color)[src]

Set a pixel

pub fn line(
    &self,
    x1: u16,
    y1: u16,
    x2: u16,
    y2: u16,
    color: Color,
    linestyle: LineStyle,
    pixelsize: u16
)
[src]

Draw a line

pub fn rect(
    &self,
    x1: u16,
    y1: u16,
    x2: u16,
    y2: u16,
    color: Color,
    fillstyle: FillStyle,
    pixelsize: u16
)
[src]

pub fn circ(
    &self,
    x: u16,
    y: u16,
    rad: u16,
    color: Color,
    fillstyle: FillStyle,
    pixelsize: u16
)
[src]

Draw a circle

pub fn framebuffer<'d>(&'d mut self) -> FrameBuffer<'d>[src]

Obtain a handle for a framebuffer.

Don't use display.send() but framebuffer.send() as long as it is in use.

Trait Implementations

impl Drop for Display[src]

Auto Trait Implementations

impl Unpin for Display

impl Send for Display

impl Sync for Display

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]