An implementation of TooltipClient that stores the tooltip string and a method for changing it. More...
Public Member Functions | |
~SettableTooltipClient () override=default | |
Destructor. | |
virtual void | setTooltip (const String &newTooltip) |
Assigns a new tooltip to this object. | |
String | getTooltip () override |
Returns the tooltip assigned to this object. | |
![]() | |
virtual | ~TooltipClient ()=default |
Destructor. | |
virtual String | getTooltip ()=0 |
Returns the string that this object wants to show as its tooltip. | |
Protected Member Functions | |
SettableTooltipClient ()=default | |
An implementation of TooltipClient that stores the tooltip string and a method for changing it.
This makes it easy to add a tooltip to a custom component, by simply adding this as a base class and calling setTooltip().
Many of the JUCE widgets already use this as a base class to implement their tooltips. See the TooltipWindow docs for more information about implementing tooltips.
|
overridedefault |
Destructor.
|
protecteddefault |
|
virtual |
Assigns a new tooltip to this object.
Reimplemented in Button, FilenameComponent, and ComboBox.
|
overridevirtual |