LV2  1.0.13
Data Fields
LV2UI_Port_Map Struct Reference

Port Map Feature (LV2_UI__portMap). More...

Data Fields

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

Detailed Description

Port Map Feature (LV2_UI__portMap).

This feature 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 is a guaranteed stable port identifier while index is not).


Field Documentation

LV2UI_Feature_Handle LV2UI_Port_Map::handle

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

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 LV2_UI_INVALID_PORT_INDEX if no such port is found.

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