Skip to main content

_lv_display_t

Struct _lv_display_t 

Source
#[repr(C)]
pub struct _lv_display_t {
Show 51 fields pub hor_res: i32, pub ver_res: i32, pub physical_hor_res: i32, pub physical_ver_res: i32, pub offset_x: i32, pub offset_y: i32, pub dpi: u32, pub buf_1: *mut _lv_draw_buf_t, pub buf_2: *mut _lv_draw_buf_t, pub buf_3: *mut _lv_draw_buf_t, pub buf_act: *mut _lv_draw_buf_t, pub flush_cb: Option<unsafe extern "C" fn(*mut _lv_display_t, *const lv_area_t, *mut u8)>, pub flush_wait_cb: Option<unsafe extern "C" fn(*mut _lv_display_t)>, pub flushing: i32, pub flushing_last: i32, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>, pub render_mode: u32, pub _bitfield_align_2: [u8; 0], pub _bitfield_2: __BindgenBitfieldUnit<[u8; 2]>, pub color_format: u32, pub inv_areas: [lv_area_t; 32], pub inv_area_joined: [u8; 32], pub inv_p: u32, pub inv_en_cnt: i32, pub sync_areas: lv_ll_t, pub _static_buf1: _lv_draw_buf_t, pub _static_buf2: _lv_draw_buf_t, pub layer_head: *mut _lv_layer_t, pub layer_init: Option<unsafe extern "C" fn(*mut _lv_display_t, *mut _lv_layer_t)>, pub layer_deinit: Option<unsafe extern "C" fn(*mut _lv_display_t, *mut _lv_layer_t)>, pub screens: *mut *mut _lv_obj_t, pub sys_layer: *mut _lv_obj_t, pub top_layer: *mut _lv_obj_t, pub act_scr: *mut _lv_obj_t, pub bottom_layer: *mut _lv_obj_t, pub prev_scr: *mut _lv_obj_t, pub scr_to_load: *mut _lv_obj_t, pub screen_cnt: u32, pub _bitfield_align_3: [u8; 0], pub _bitfield_3: __BindgenBitfieldUnit<[u8; 1]>, pub driver_data: *mut c_void, pub user_data: *mut c_void, pub event_list: lv_event_list_t, pub _bitfield_align_4: [u8; 0], pub _bitfield_4: __BindgenBitfieldUnit<[u8; 1]>, pub theme: *mut _lv_theme_t, pub refr_timer: *mut _lv_timer_t, pub last_activity_time: u32, pub refreshed_area: lv_area_t, pub vsync_count: u32,
}

Fields§

§hor_res: i32§ver_res: i32§physical_hor_res: i32§physical_ver_res: i32§offset_x: i32§offset_y: i32§dpi: u32§buf_1: *mut _lv_draw_buf_t§buf_2: *mut _lv_draw_buf_t§buf_3: *mut _lv_draw_buf_t§buf_act: *mut _lv_draw_buf_t§flush_cb: Option<unsafe extern "C" fn(*mut _lv_display_t, *const lv_area_t, *mut u8)>§flush_wait_cb: Option<unsafe extern "C" fn(*mut _lv_display_t)>§flushing: i32§flushing_last: i32§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§render_mode: u32§_bitfield_align_2: [u8; 0]§_bitfield_2: __BindgenBitfieldUnit<[u8; 2]>§color_format: u32§inv_areas: [lv_area_t; 32]§inv_area_joined: [u8; 32]§inv_p: u32§inv_en_cnt: i32§sync_areas: lv_ll_t§_static_buf1: _lv_draw_buf_t§_static_buf2: _lv_draw_buf_t§layer_head: *mut _lv_layer_t§layer_init: Option<unsafe extern "C" fn(*mut _lv_display_t, *mut _lv_layer_t)>§layer_deinit: Option<unsafe extern "C" fn(*mut _lv_display_t, *mut _lv_layer_t)>§screens: *mut *mut _lv_obj_t§sys_layer: *mut _lv_obj_t§top_layer: *mut _lv_obj_t§act_scr: *mut _lv_obj_t§bottom_layer: *mut _lv_obj_t§prev_scr: *mut _lv_obj_t§scr_to_load: *mut _lv_obj_t§screen_cnt: u32§_bitfield_align_3: [u8; 0]§_bitfield_3: __BindgenBitfieldUnit<[u8; 1]>§driver_data: *mut c_void§user_data: *mut c_void§event_list: lv_event_list_t§_bitfield_align_4: [u8; 0]§_bitfield_4: __BindgenBitfieldUnit<[u8; 1]>§theme: *mut _lv_theme_t§refr_timer: *mut _lv_timer_t§last_activity_time: u32§refreshed_area: lv_area_t§vsync_count: u32

Implementations§

Source§

impl _lv_display_t

Source

pub fn last_area(&self) -> u32

Source

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

Source

pub fn last_part(&self) -> u32

Source

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

Source

pub fn new_bitfield_1( last_area: u32, last_part: u32, ) -> __BindgenBitfieldUnit<[u8; 1]>

Source

pub fn antialiasing(&self) -> u32

Source

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

Source

pub fn tile_cnt(&self) -> u32

Source

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

Source

pub fn stride_is_auto(&self) -> u32

Source

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

Source

pub fn rendering_in_progress(&self) -> u32

Source

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

Source

pub fn new_bitfield_2( antialiasing: u32, tile_cnt: u32, stride_is_auto: u32, rendering_in_progress: u32, ) -> __BindgenBitfieldUnit<[u8; 2]>

Source

pub fn draw_prev_over_act(&self) -> u8

Source

pub fn set_draw_prev_over_act(&mut self, val: u8)

Source

pub fn del_prev(&self) -> u8

Source

pub fn set_del_prev(&mut self, val: u8)

Source

pub fn new_bitfield_3( draw_prev_over_act: u8, del_prev: u8, ) -> __BindgenBitfieldUnit<[u8; 1]>

Source

pub fn rotation(&self) -> u32

Source

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

Source

pub fn matrix_rotation(&self) -> u32

Source

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

Source

pub fn new_bitfield_4( rotation: u32, matrix_rotation: u32, ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

Source§

impl Clone for _lv_display_t

Source§

fn clone(&self) -> _lv_display_t

Returns a duplicate 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 Debug for _lv_display_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for _lv_display_t

Source§

fn default() -> _lv_display_t

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

impl Copy for _lv_display_t

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.