LMMS
Loading...
Searching...
No Matches
LV2UI_Resize Struct Reference

#include <ui.h>

Public Attributes

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

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

Member Data Documentation

◆ handle

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

◆ ui_resize

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.

Returns
0 on success.

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