Function PopupMenu.getItemMetadata

Returns the metadata of the specified item, which might be of any type. You can set it with setItemMetadata, which provides a simple way of assigning context data to items.

Variant getItemMetadata (
  const(long) idx
) nothrow @nogc const;