[][src]Struct lv2_sys::LV2UI_Resize

#[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>,
}

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]

impl Copy for LV2UI_Resize[src]

impl Debug for LV2UI_Resize[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.