lv_anim_t

Struct lv_anim_t 

Source
#[repr(C)]
pub struct lv_anim_t {
Show 23 fields pub var: *mut c_void, pub exec_cb: lv_anim_exec_xcb_t, pub custom_exec_cb: lv_anim_custom_exec_cb_t, pub start_cb: lv_anim_start_cb_t, pub completed_cb: lv_anim_completed_cb_t, pub deleted_cb: lv_anim_deleted_cb_t, pub get_value_cb: lv_anim_get_value_cb_t, pub user_data: *mut c_void, pub path_cb: lv_anim_path_cb_t, pub start_value: i32, pub current_value: i32, pub end_value: i32, pub duration: i32, pub act_time: i32, pub playback_delay: u32, pub playback_duration: u32, pub repeat_delay: u32, pub repeat_cnt: u32, pub parameter: lv_anim_t_lv_anim_path_para_t, pub last_timer_run: u32, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>, pub __bindgen_padding_0: [u8; 7],
}
Expand description

Describes an animation

Fields§

§var: *mut c_void

< Variable to animate

§exec_cb: lv_anim_exec_xcb_t

< Function to execute to animate

§custom_exec_cb: lv_anim_custom_exec_cb_t

< Function to execute to animate, same purpose as exec_cb but different parameters

§start_cb: lv_anim_start_cb_t

< Call it when the animation is starts (considering delay)

§completed_cb: lv_anim_completed_cb_t

< Call it when the animation is fully completed

§deleted_cb: lv_anim_deleted_cb_t

< Call it when the animation is deleted

§get_value_cb: lv_anim_get_value_cb_t

< Get the current value in relative mode

§user_data: *mut c_void

< Custom user data

§path_cb: lv_anim_path_cb_t

< Describe the path (curve) of animations

§start_value: i32

< Start value

§current_value: i32

< Current value

§end_value: i32

< End value

§duration: i32

< Animation time in ms

§act_time: i32

< Current time in animation. Set to negative to make delay.

§playback_delay: u32

< Wait before play back

§playback_duration: u32

< Duration of playback animation

§repeat_delay: u32

< Wait before repeat

§repeat_cnt: u32

< Repeat count for the animation

§parameter: lv_anim_t_lv_anim_path_para_t§last_timer_run: u32§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§__bindgen_padding_0: [u8; 7]

Implementations§

Source§

impl lv_anim_t

Source

pub fn playback_now(&self) -> u8

Source

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

Source

pub unsafe fn playback_now_raw(this: *const Self) -> u8

Source

pub unsafe fn set_playback_now_raw(this: *mut Self, val: u8)

Source

pub fn run_round(&self) -> u8

Source

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

Source

pub unsafe fn run_round_raw(this: *const Self) -> u8

Source

pub unsafe fn set_run_round_raw(this: *mut Self, val: u8)

Source

pub fn start_cb_called(&self) -> u8

Source

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

Source

pub unsafe fn start_cb_called_raw(this: *const Self) -> u8

Source

pub unsafe fn set_start_cb_called_raw(this: *mut Self, val: u8)

Source

pub fn early_apply(&self) -> u8

Source

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

Source

pub unsafe fn early_apply_raw(this: *const Self) -> u8

Source

pub unsafe fn set_early_apply_raw(this: *mut Self, val: u8)

Source

pub fn new_bitfield_1( playback_now: u8, run_round: u8, start_cb_called: u8, early_apply: u8, ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

Source§

impl Clone for lv_anim_t

Source§

fn clone(&self) -> lv_anim_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 Copy for lv_anim_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, 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.