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

#include <ui.h>

Public Attributes

LV2UI_Feature_Handle handle
uint32_t(* port_index )(LV2UI_Feature_Handle handle, const char *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).

Member Data Documentation

◆ handle

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

◆ port_index

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: