rlvgl-platform 0.1.0

A modular, idiomatic Rust reimplementation of the LVGL graphics library for embedded and simulator use.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use rlvgl_core::event::Event;

/// Trait for input devices such as touchscreens or mice.
pub trait InputDevice {
    fn poll(&mut self) -> Option<Event>;
}

/// Dummy input device that yields no events.
pub struct DummyInput;

impl InputDevice for DummyInput {
    fn poll(&mut self) -> Option<Event> {
        None
    }
}

/// Alias used by platform backends for standard events.
pub type InputEvent = Event;