#[repr(C)]
pub struct _lv_disp_drv_t {
Show 24 fields pub hor_res: lv_coord_t, pub ver_res: lv_coord_t, pub physical_hor_res: lv_coord_t, pub physical_ver_res: lv_coord_t, pub offset_x: lv_coord_t, pub offset_y: lv_coord_t, pub draw_buf: *mut lv_disp_draw_buf_t, pub _bitfield_align_1: [u16; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 3]>, pub flush_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, area: *const lv_area_t, color_p: *mut lv_color_t)>, pub rounder_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, area: *mut lv_area_t)>, pub set_px_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, buf: *mut u8, buf_w: lv_coord_t, x: lv_coord_t, y: lv_coord_t, color: lv_color_t, opa: lv_opa_t)>, pub clear_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, buf: *mut u8, size: u32)>, pub monitor_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, time: u32, px: u32)>, pub wait_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t)>, pub clean_dcache_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t)>, pub drv_update_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t)>, pub render_start_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t)>, pub color_chroma_key: lv_color_t, pub draw_ctx: *mut lv_draw_ctx_t, pub draw_ctx_init: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, draw_ctx: *mut lv_draw_ctx_t)>, pub draw_ctx_deinit: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, draw_ctx: *mut lv_draw_ctx_t)>, pub draw_ctx_size: usize, pub user_data: *mut c_void,
}

Fields§

§hor_res: lv_coord_t§ver_res: lv_coord_t§physical_hor_res: lv_coord_t§physical_ver_res: lv_coord_t§offset_x: lv_coord_t§offset_y: lv_coord_t§draw_buf: *mut lv_disp_draw_buf_t§_bitfield_align_1: [u16; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 3]>§flush_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, area: *const lv_area_t, color_p: *mut lv_color_t)>§rounder_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, area: *mut lv_area_t)>§set_px_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, buf: *mut u8, buf_w: lv_coord_t, x: lv_coord_t, y: lv_coord_t, color: lv_color_t, opa: lv_opa_t)>§clear_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, buf: *mut u8, size: u32)>§monitor_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, time: u32, px: u32)>§wait_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t)>§clean_dcache_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t)>§drv_update_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t)>§render_start_cb: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t)>§color_chroma_key: lv_color_t§draw_ctx: *mut lv_draw_ctx_t§draw_ctx_init: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, draw_ctx: *mut lv_draw_ctx_t)>§draw_ctx_deinit: Option<unsafe extern "C" fn(disp_drv: *mut _lv_disp_drv_t, draw_ctx: *mut lv_draw_ctx_t)>§draw_ctx_size: usize§user_data: *mut c_void

Implementations§

source§

impl _lv_disp_drv_t

source

pub fn direct_mode(&self) -> u32

source

pub fn set_direct_mode(&mut self, val: u32)

source

pub fn full_refresh(&self) -> u32

source

pub fn set_full_refresh(&mut self, val: u32)

source

pub fn sw_rotate(&self) -> u32

source

pub fn set_sw_rotate(&mut self, val: u32)

source

pub fn antialiasing(&self) -> u32

source

pub fn set_antialiasing(&mut self, val: u32)

source

pub fn rotated(&self) -> u32

source

pub fn set_rotated(&mut self, val: u32)

source

pub fn screen_transp(&self) -> u32

source

pub fn set_screen_transp(&mut self, val: u32)

source

pub fn dpi(&self) -> u32

source

pub fn set_dpi(&mut self, val: u32)

source

pub fn new_bitfield_1( direct_mode: u32, full_refresh: u32, sw_rotate: u32, antialiasing: u32, rotated: u32, screen_transp: u32, dpi: u32 ) -> __BindgenBitfieldUnit<[u8; 3]>

Trait Implementations§

source§

impl Clone for _lv_disp_drv_t

source§

fn clone(&self) -> _lv_disp_drv_t

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for _lv_disp_drv_t

source§

fn default() -> Self

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

impl Copy for _lv_disp_drv_t

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.