LV2  1.0.13
Data Fields
LV2UI_Resize Struct Reference

Feature/interface for resizable UIs (LV2_UI__resize). More...

Data Fields

LV2UI_Feature_Handle handle
 Pointer to opaque data which must be passed to ui_resize(). More...
 
int(* ui_resize )(LV2UI_Feature_Handle handle, int width, int height)
 Request/advertise a size change. More...
 

Detailed 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()).

Field Documentation

LV2UI_Feature_Handle LV2UI_Resize::handle

Pointer to opaque data which must be passed to ui_resize().

int(* LV2UI_Resize::ui_resize)(LV2UI_Feature_Handle handle, int width, int height)

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.

Returns
0 on success.

The documentation for this struct was generated from the following file: