[][src]Struct lv2_sys::_LV2UI_Show_Interface

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

UI Show Interface (LV2_UI__showInterface)

UIs can provide this interface to show and hide a window, which allows them to function in hosts unable to embed their widget. This allows any UI to provide a fallback for embedding that works in any host.

If used:

  • The host MUST use LV2UI_Idle_Interface to drive the UI.
  • The UI MUST return non-zero from LV2UI_Idle_Interface::idle() when it has been closed.
  • If idle() returns non-zero, the host MUST call hide() and stop calling idle(). It MAY later call show() then resume calling idle().

Fields

show: Option<unsafe extern "C" fn(ui: LV2UI_Handle) -> c_int>

Show a window for this UI.

The window title MAY have been passed by the host to LV2UI_Descriptor::instantiate() as an LV2_Options_Option with key LV2_UI__windowTitle.

@return 0 on success, or anything else to stop being called.

hide: Option<unsafe extern "C" fn(ui: LV2UI_Handle) -> c_int>

Hide the window for this UI.

@return 0 on success, or anything else to stop being called.

Trait Implementations

impl Clone for _LV2UI_Show_Interface[src]

impl Copy for _LV2UI_Show_Interface[src]

impl Debug for _LV2UI_Show_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.