JUCE
Public Member Functions | Protected Member Functions | List of all members
juce::SettableTooltipClient Class Reference

An implementation of TooltipClient that stores the tooltip string and a method for changing it. More...

Inheritance diagram for juce::SettableTooltipClient:

Public Member Functions

 ~SettableTooltipClient ()
 Destructor. More...
 
virtual void setTooltip (const String &newTooltip)
 Assigns a new tooltip to this object. More...
 
String getTooltip () override
 Returns the tooltip assigned to this object. More...
 
- Public Member Functions inherited from juce::TooltipClient
virtual ~TooltipClient ()
 Destructor. More...
 

Protected Member Functions

 SettableTooltipClient ()
 

Detailed Description

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 also
TooltipClient, TooltipWindow

Constructor & Destructor Documentation

◆ ~SettableTooltipClient()

juce::SettableTooltipClient::~SettableTooltipClient ( )

Destructor.

◆ SettableTooltipClient()

juce::SettableTooltipClient::SettableTooltipClient ( )
protected

Member Function Documentation

◆ setTooltip()

virtual void juce::SettableTooltipClient::setTooltip ( const String newTooltip)
virtual

Assigns a new tooltip to this object.

Reimplemented in juce::ComboBox, juce::Button, and juce::FilenameComponent.

◆ getTooltip()

String juce::SettableTooltipClient::getTooltip ( )
overridevirtual

Returns the tooltip assigned to this object.

Implements juce::TooltipClient.

Reimplemented in juce::ComboBox.


The documentation for this class was generated from the following file: