#[repr(C)]pub struct LV2UI_Resize {
pub handle: LV2UI_Feature_Handle,
pub ui_resize: Option<unsafe extern "C" fn(handle: LV2UI_Feature_Handle, width: c_int, height: c_int) -> c_int>,
}Expand description
Feature/interface for resizable UIs (LV2_UI__resize).
This structure is used in two ways: as a feature passed by the host via LV2UI_Descriptor::instantiate(), or as an interface provided by a UI via LV2UI_Descriptor::extension_data()).
Fields§
§handle: LV2UI_Feature_HandlePointer to opaque data which must be passed to ui_resize().
ui_resize: Option<unsafe extern "C" fn(handle: LV2UI_Feature_Handle, width: c_int, height: c_int) -> c_int>Request/advertise a size change.
When provided by the host, the UI may call this function to inform the host about the size of the UI.
When provided by the UI, the host may call this function to notify the UI that it should change its size accordingly. In this case, the host must pass the LV2UI_Handle to provide access to the UI instance.
@return 0 on success.
Trait Implementations§
Source§impl Clone for LV2UI_Resize
impl Clone for LV2UI_Resize
Source§fn clone(&self) -> LV2UI_Resize
fn clone(&self) -> LV2UI_Resize
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_Resize
impl Debug for LV2UI_Resize
impl Copy for LV2UI_Resize
Auto Trait Implementations§
impl Freeze for LV2UI_Resize
impl RefUnwindSafe for LV2UI_Resize
impl !Send for LV2UI_Resize
impl !Sync for LV2UI_Resize
impl Unpin for LV2UI_Resize
impl UnwindSafe for LV2UI_Resize
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