lv_layer_t

Type Alias lv_layer_t 

Source
pub type lv_layer_t = _lv_layer_t;

Aliased Type§

#[repr(C)]
pub struct lv_layer_t {
Show 13 fields pub draw_buf: *mut _lv_draw_buf_t, pub draw_task_head: *mut _lv_draw_task_t, pub parent: *mut _lv_layer_t, pub next: *mut _lv_layer_t, pub user_data: *mut c_void, pub buf_area: lv_area_t, pub phy_clip_area: lv_area_t, pub _clip_area: lv_area_t, pub partial_y_offset: i32, pub recolor: lv_color32_t, pub color_format: u32, pub all_tasks_added: bool, pub opa: u8,
}

Fields§

§draw_buf: *mut _lv_draw_buf_t

Target draw buffer of the layer

§draw_task_head: *mut _lv_draw_task_t

Linked list of draw tasks

§parent: *mut _lv_layer_t

Parent layer

§next: *mut _lv_layer_t

Next layer

§user_data: *mut c_void

User data

§buf_area: lv_area_t

The absolute coordinates of the buffer

§phy_clip_area: lv_area_t

The physical clipping area relative to the display

§_clip_area: lv_area_t

NEVER USE IT DRAW UNITS. USED INTERNALLY DURING DRAW TASK CREATION. The current clip area with absolute coordinates, always the same or smaller than buf_area Can be set before new draw tasks are added to indicate the clip area of the draw tasks. Therefore lv_draw_add_task() always saves it in the new draw task to know the clip area when the draw task was added. During drawing the draw units also sees the saved clip_area and should use it during drawing. During drawing the layer’s clip area shouldn’t be used as it might be already changed for other draw tasks.

§partial_y_offset: i32

Partial y offset

§recolor: lv_color32_t

Recolor of the layer

§color_format: u32

The color format of the layer. LV_COLOR_FORMAT_…

§all_tasks_added: bool

Flag indicating all tasks are added

§opa: u8

Opacity of the layer