Struct lvgl_sys::_lv_gradient_cache_t
source · #[repr(C)]pub struct _lv_gradient_cache_t {
pub key: u32,
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
pub map: *mut lv_color_t,
pub alloc_size: lv_coord_t,
pub size: lv_coord_t,
}
Fields§
§key: u32
§_bitfield_align_1: [u32; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>
§map: *mut lv_color_t
§alloc_size: lv_coord_t
§size: lv_coord_t
Implementations§
source§impl _lv_gradient_cache_t
impl _lv_gradient_cache_t
pub fn life(&self) -> u32
pub fn set_life(&mut self, val: u32)
pub fn filled(&self) -> u32
pub fn set_filled(&mut self, val: u32)
pub fn not_cached(&self) -> u32
pub fn set_not_cached(&mut self, val: u32)
pub fn new_bitfield_1( life: u32, filled: u32, not_cached: u32 ) -> __BindgenBitfieldUnit<[u8; 4]>
Trait Implementations§
source§impl Clone for _lv_gradient_cache_t
impl Clone for _lv_gradient_cache_t
source§fn clone(&self) -> _lv_gradient_cache_t
fn clone(&self) -> _lv_gradient_cache_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more