#[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>,
}Expand description
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§
Source§impl Clone for LV2UI_Show_Interface
impl Clone for LV2UI_Show_Interface
Source§fn clone(&self) -> LV2UI_Show_Interface
fn clone(&self) -> LV2UI_Show_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_Show_Interface
impl Debug for LV2UI_Show_Interface
impl Copy for LV2UI_Show_Interface
Auto Trait Implementations§
impl Freeze for LV2UI_Show_Interface
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§
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