#[repr(C)]pub struct lv_draw_task_t {
pub next: *mut lv_draw_task_t,
pub type_: lv_draw_task_type_t,
pub area: lv_area_t,
pub _real_area: lv_area_t,
pub clip_area_original: lv_area_t,
pub clip_area: lv_area_t,
pub state: c_int,
pub draw_dsc: *mut c_void,
pub preferred_draw_unit_id: u8,
pub preference_score: u8,
}Expand description
TYPEDEFS
Fields§
§next: *mut lv_draw_task_t§type_: lv_draw_task_type_t§area: lv_area_tThe area where to draw
_real_area: lv_area_tThe real draw area. E.g. for shadow, outline, or transformed images it’s different from area
clip_area_original: lv_area_tThe original area which is updated
clip_area: lv_area_tThe clip area of the layer is saved here when the draw task is created. As the clip area of the layer can be changed as new draw tasks are added its current value needs to be saved. Therefore during drawing the layer’s clip area shouldn’t be used as it might be already changed for other draw tasks.
state: c_int§draw_dsc: *mut c_voidint instead of lv_draw_task_state_t to be sure its atomic
preferred_draw_unit_id: u8The ID of the draw_unit which should take this task
preference_score: u8Set to which extent preferred_draw_unit_id is good at this task.
80: means 20% better (faster) than software rendering
100: the default value
110: means 10% worse (slower) than software rendering
Trait Implementations§
Source§impl Clone for lv_draw_task_t
impl Clone for lv_draw_task_t
Source§fn clone(&self) -> lv_draw_task_t
fn clone(&self) -> lv_draw_task_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more