[][src]Struct lv2_sys::LV2UI_Idle_Interface

#[repr(C)]pub struct LV2UI_Idle_Interface {
    pub idle: Option<unsafe extern "C" fn(ui: LV2UI_Handle) -> c_int>,
}

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

impl Clone for LV2UI_Idle_Interface[src]

impl Copy for LV2UI_Idle_Interface[src]

impl Debug for LV2UI_Idle_Interface[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.