LV2  1.0.13
Data Fields
LV2UI_Port_Map Struct Reference

Feature to map port symbols to UIs. More...

Data Fields

LV2UI_Feature_Handle handle
 Pointer to opaque data which must be passed to port_index().
uint32_t(* port_index )(LV2UI_Feature_Handle handle, const char *symbol)
 Get the index for the port with the given `symbol`.

Detailed Description

Feature to map port symbols to UIs.

This can be used by the UI to get the index for a port with the given symbol. This makes it possible to implement and distribute a UI separately from the plugin (since symbol, unlike index, is a stable port identifier).


Field Documentation

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

uint32_t(* LV2UI_Port_Map::port_index)(LV2UI_Feature_Handle handle, const char *symbol)

Get the index for the port with the given `symbol`.

Returns:
The index of the port, or LV2UI_INVALID_PORT_INDEX if no such port is found.

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