[−][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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,