[−][src]Struct card10_l0dable::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]
&self,
font: Font,
x: u16,
y: u16,
s: &[u8],
fg: Color,
bg: Color
)
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]
&self,
x1: u16,
y1: u16,
x2: u16,
y2: u16,
color: Color,
linestyle: LineStyle,
pixelsize: u16
)
Draw a line
pub fn rect(
&self,
x1: u16,
y1: u16,
x2: u16,
y2: u16,
color: Color,
fillstyle: FillStyle,
pixelsize: u16
)
[src]
&self,
x1: u16,
y1: u16,
x2: u16,
y2: u16,
color: Color,
fillstyle: FillStyle,
pixelsize: u16
)
pub fn circ(
&self,
x: u16,
y: u16,
rad: u16,
color: Color,
fillstyle: FillStyle,
pixelsize: u16
)
[src]
&self,
x: u16,
y: u16,
rad: u16,
color: Color,
fillstyle: FillStyle,
pixelsize: u16
)
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
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,