Public Member Functions | List of all members
PopupLabel Class Reference

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

Inherits Label.

Public Member Functions

void addOption (const String &newOption, const String &toolTip=String())
 Adds an option to the popup menu. More...
 
void clearOptions ()
 Clears all options. More...
 
int getCurrentIndex () const noexcept
 Returns the currently selected Index. More...
 
void setItemIndex (int index, NotificationType notify=sendNotification)
 Sets the label text value using the index. More...
 

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.