pub struct LogitechLcd {Show 14 fields
pub LogiLcdInit: unsafe extern "C" fn(friendlyName: *const u16, lcdType: c_uint) -> bool,
pub LogiLcdIsConnected: unsafe extern "C" fn(lcdType: c_uint) -> bool,
pub LogiLcdIsButtonPressed: unsafe extern "C" fn(button: c_uint) -> bool,
pub LogiLcdUpdate: unsafe extern "C" fn(),
pub LogiLcdShutdown: unsafe extern "C" fn(),
pub LogiLcdMonoSetBackground: unsafe extern "C" fn(monoBitmap: *const u8) -> bool,
pub LogiLcdMonoSetText: unsafe extern "C" fn(lineNumber: c_int, text: *const u16) -> bool,
pub LogiLcdColorSetBackground: unsafe extern "C" fn(colorBitmap: *const u8) -> bool,
pub LogiLcdColorSetTitle: unsafe extern "C" fn(text: *const u16, red: c_int, green: c_int, blue: c_int) -> bool,
pub LogiLcdColorSetText: unsafe extern "C" fn(lineNumber: c_int, text: *const u16, red: c_int, green: c_int, blue: c_int) -> bool,
pub LogiLcdColorSetBackgroundUDK: unsafe extern "C" fn(partialBitmap: *const u8, arraySize: c_int) -> c_int,
pub LogiLcdColorResetBackgroundUDK: unsafe extern "C" fn() -> c_int,
pub LogiLcdMonoSetBackgroundUDK: unsafe extern "C" fn(partialBitmap: *const u8, arraySize: c_int) -> c_int,
pub LogiLcdMonoResetBackgroundUDK: unsafe extern "C" fn() -> c_int,
/* private fields */
}Expand description
LogitechLcd library.
Contains library symbols/functions as fields. Will unload library when dropped.
Fields§
§LogiLcdInit: unsafe extern "C" fn(friendlyName: *const u16, lcdType: c_uint) -> bool§LogiLcdIsConnected: unsafe extern "C" fn(lcdType: c_uint) -> bool§LogiLcdIsButtonPressed: unsafe extern "C" fn(button: c_uint) -> bool§LogiLcdUpdate: unsafe extern "C" fn()§LogiLcdShutdown: unsafe extern "C" fn()§LogiLcdMonoSetBackground: unsafe extern "C" fn(monoBitmap: *const u8) -> bool§LogiLcdMonoSetText: unsafe extern "C" fn(lineNumber: c_int, text: *const u16) -> bool§LogiLcdColorSetBackground: unsafe extern "C" fn(colorBitmap: *const u8) -> bool§LogiLcdColorSetTitle: unsafe extern "C" fn(text: *const u16, red: c_int, green: c_int, blue: c_int) -> bool§LogiLcdColorSetText: unsafe extern "C" fn(lineNumber: c_int, text: *const u16, red: c_int, green: c_int, blue: c_int) -> bool§LogiLcdColorSetBackgroundUDK: unsafe extern "C" fn(partialBitmap: *const u8, arraySize: c_int) -> c_int§LogiLcdColorResetBackgroundUDK: unsafe extern "C" fn() -> c_int§LogiLcdMonoSetBackgroundUDK: unsafe extern "C" fn(partialBitmap: *const u8, arraySize: c_int) -> c_int§LogiLcdMonoResetBackgroundUDK: unsafe extern "C" fn() -> c_intImplementations§
Source§impl LogitechLcd
impl LogitechLcd
pub fn load() -> Result<LogitechLcd, Error>
Trait Implementations§
impl Send for LogitechLcd
Auto Trait Implementations§
impl Freeze for LogitechLcd
impl RefUnwindSafe for LogitechLcd
impl Sync for LogitechLcd
impl Unpin for LogitechLcd
impl UnwindSafe for LogitechLcd
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