[−][src]Struct lv2_sys::_LV2UI_Show_Interface
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]
fn clone(&self) -> _LV2UI_Show_Interface
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for _LV2UI_Show_Interface
[src]
impl Debug for _LV2UI_Show_Interface
[src]
Auto Trait Implementations
impl RefUnwindSafe for _LV2UI_Show_Interface
impl Send for _LV2UI_Show_Interface
impl Sync for _LV2UI_Show_Interface
impl Unpin for _LV2UI_Show_Interface
impl UnwindSafe for _LV2UI_Show_Interface
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,