Struct lv2_raw::ui::LV2UIShowInterface [] [src]

#[repr(C)]
pub struct LV2UIShowInterface { pub show: extern "C" fn(_: LV2UIHandle) -> c_int, pub hide: extern "C" fn(_: LV2UIHandle) -> 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 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 the window for this UI.

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