Graphics/Input/
Type.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::LVGL;

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Input_type_type {
    Pointer,
    Keypad,
}

impl From<Input_type_type> for LVGL::lv_indev_type_t {
    fn from(Value: Input_type_type) -> Self {
        match Value {
            Input_type_type::Pointer => LVGL::lv_indev_type_t_LV_INDEV_TYPE_POINTER,
            Input_type_type::Keypad => LVGL::lv_indev_type_t_LV_INDEV_TYPE_KEYPAD,
        }
    }
}