pub struct LCDPhidget { /* private fields */ }Implementations§
Source§impl LCDPhidget
impl LCDPhidget
pub fn setup( hub_port: i32, remote: bool, max_wait_millis: u32, ) -> Result<LCDPhidget, u32>
pub fn create() -> Result<LCDPhidget, u32>
pub fn delete(&mut self) -> Result<(), u32>
pub fn close(&self) -> Result<(), u32>
pub fn get_backlight(&self) -> Result<f64, u32>
pub fn set_backlight(&self, backlight: f64) -> Result<&Self, u32>
pub fn get_min_backlight(&self) -> Result<f64, u32>
pub fn get_max_backlight(&self) -> Result<f64, u32>
pub fn clear(&self) -> Result<&Self, u32>
pub fn get_contrast(&self) -> Result<f64, u32>
pub fn get_min_contrast(&self) -> Result<f64, u32>
pub fn get_max_contrast(&self) -> Result<f64, u32>
pub fn draw_line( &self, x1: i32, y1: i32, x2: i32, y2: i32, ) -> Result<&Self, u32>
pub fn draw_pixel( &self, x1: i32, y1: i32, pixel_state: PhidgetLCD_PixelState, ) -> Result<&Self, u32>
Sourcepub fn draw_rect(
&self,
x1: i32,
y1: i32,
x2: i32,
y2: i32,
filled: bool,
inverted: bool,
) -> Result<&Self, u32>
pub fn draw_rect( &self, x1: i32, y1: i32, x2: i32, y2: i32, filled: bool, inverted: bool, ) -> Result<&Self, u32>
Draws a rectangle in the current frame buffer using the specified points.
Changes made to the frame buffer must be flushed to the LCD screen using flush.
pub fn flush(&self) -> Result<(), u32>
pub fn set_font_size( &self, font: PhidgetLCD_Font, width: i32, height: i32, ) -> Result<&Self, u32>
pub fn get_frame_buffer(&self) -> Result<i32, u32>
pub fn set_frame_buffer(&self, frame_buffer: i32) -> Result<&Self, u32>
pub fn get_height(&self) -> Result<i32, u32>
pub fn write_text( &self, font: PhidgetLCD_Font, x_position: i32, y_position: i32, text: &str, ) -> Result<(), u32>
Auto Trait Implementations§
impl Freeze for LCDPhidget
impl RefUnwindSafe for LCDPhidget
impl !Send for LCDPhidget
impl !Sync for LCDPhidget
impl Unpin for LCDPhidget
impl UnwindSafe for LCDPhidget
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