#[repr(C)]pub struct LV2UI_Idle_Interface {
pub idle: Option<unsafe extern "C" fn(ui: LV2UI_Handle) -> c_int>,
}Expand description
UI Idle Interface (LV2_UI__idleInterface)
UIs can provide this interface to have an idle() callback called by the host rapidly to update the UI.
Fields§
§idle: Option<unsafe extern "C" fn(ui: LV2UI_Handle) -> c_int>Run a single iteration of the UI’s idle loop.
This will be called rapidly in the UI thread at a rate appropriate for a toolkit main loop. There are no precise timing guarantees, but the host should attempt to call idle() at a high enough rate for smooth animation, at least 30Hz.
@return non-zero if the UI has been closed, in which case the host should stop calling idle(), and can either completely destroy the UI, or re-show it and resume calling idle().
Trait Implementations§
Source§impl Clone for LV2UI_Idle_Interface
impl Clone for LV2UI_Idle_Interface
Source§fn clone(&self) -> LV2UI_Idle_Interface
fn clone(&self) -> LV2UI_Idle_Interface
Returns a duplicate 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 moreSource§impl Debug for LV2UI_Idle_Interface
impl Debug for LV2UI_Idle_Interface
impl Copy for LV2UI_Idle_Interface
Auto Trait Implementations§
impl Freeze for LV2UI_Idle_Interface
impl RefUnwindSafe for LV2UI_Idle_Interface
impl Send for LV2UI_Idle_Interface
impl Sync for LV2UI_Idle_Interface
impl Unpin for LV2UI_Idle_Interface
impl UnwindSafe for LV2UI_Idle_Interface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more