[−][src]Struct lv2_sys::_LV2UI_Resize
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_Handle
Pointer 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
impl Clone for _LV2UI_Resize
[src]
fn clone(&self) -> _LV2UI_Resize
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for _LV2UI_Resize
[src]
impl Debug for _LV2UI_Resize
[src]
Auto Trait Implementations
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
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>,