All Classes Namespaces Functions Variables Enumerations Enumerator Modules Pages
Public Member Functions | List of all members
PopupLabel Class Reference

Inherits Label.

Public Member Functions

void addOption (const String &newOption, const String &toolTip=String())
 
void clearOptions ()
 
void setItemIndex (int index, NotificationType notify=sendNotification)
 
int getCurrentIndex () const noexcept
 

Detailed Description

A Label component that displays a popup menu when right clicked.

Member Function Documentation

void addOption ( const String &  newOption,
const String &  toolTip = String() 
)
inline

Adds an option to the popup menu.

void clearOptions ( )
inline

Clears all options.

int getCurrentIndex ( ) const
inlinenoexcept

Returns the currently selected Index.

void setItemIndex ( int  index,
NotificationType  notify = sendNotification 
)

Sets the label text value using the index.

It triggeres a labelChanged notification

©2017 HISE. This documentation is autogenerated from the HISE source code using Doxygen.