Screen

Struct Screen 

Source
pub struct Screen { /* private fields */ }

Implementations§

Source§

impl Screen

Source

pub fn new() -> Screen

Source

pub fn orientation(&self) -> ScreenOrientation

Source

pub fn setup(&mut self, or: ScreenOrientation)

Source

pub fn setup_info_area(&mut self, x: i32, y: i32, w: i32, h: i32)

Source

pub fn setup_info_area_full(&mut self)

Source

pub fn info_x(&self) -> i32

Source

pub fn info_y(&self) -> i32

Source

pub fn info_w(&self) -> i32

Source

pub fn info_h(&self) -> i32

Source

pub fn set_info_count(&mut self, count: i32)

Source

pub fn reset_info(&mut self, index: usize)

Source

pub fn setup_info( &mut self, index: usize, size: u8, row: i32, rows: i32, column: i32, columns: i32, )

Source

pub fn info_value(&self, index: usize) -> i32

Source

pub fn set_info_value(&mut self, index: usize, value: i32)

Source

pub fn set_info_bold(&mut self, index: usize, bold: bool)

Source

pub fn deselect_infos(&mut self)

Source

pub fn select_info(&mut self, index: usize)

Source

pub fn setup_info_value(&mut self, index: usize, position: u8, digits: u8)

Source

pub fn setup_info_signed_value( &mut self, index: usize, position: u8, digits: u8, positive: Gph, zero: Gph, negative: Gph, )

Source

pub fn setup_info_glyphs(&mut self, index: usize, gphs: &[Gph])

Source

pub fn render_info(&mut self)

Source

pub fn setup_graph(&mut self, x: i32, y: i32, ox: i32, oy: i32)

Source

pub fn info_base(&self) -> (i32, i32)

Source

pub fn graph_base(&self) -> (i32, i32)

Source

pub fn graph_origin(&self) -> (i32, i32)

Source

pub fn info_origin(&self) -> (i32, i32)

Source

pub fn box_in_info(&self, x: i32, y: i32, w: i32, h: i32, color: LcdColor)

Source

pub fn draw_graph_line(&self, x0: i32, y0: i32, x1: i32, y1: i32, bold: bool)

Source

pub fn draw_graph_arc( &self, center_x: i32, center_y: i32, start_angle: i32, arc_angle: i32, radius: i32, bold: bool, )

Source

pub fn draw_glyph(&self, g: Gph, x: i32, y: i32, bold: bool)

Trait Implementations§

Source§

impl Default for Screen

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Screen

§

impl RefUnwindSafe for Screen

§

impl Send for Screen

§

impl Sync for Screen

§

impl Unpin for Screen

§

impl UnwindSafe for Screen

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.