JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::SettableTooltipClient Class Reference

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

#include <juce_TooltipClient.h>

Inheritance diagram for juce::SettableTooltipClient:
Collaboration diagram for juce::SettableTooltipClient:

Public Member Functions

 ~SettableTooltipClient () override
 Destructor. More...
 
String getTooltip () override
 Returns the tooltip assigned to this object. More...
 
virtual void setTooltip (const String &newTooltip)
 Assigns a new tooltip to this object. More...
 

Protected Member Functions

 SettableTooltipClient ()
 

Private Attributes

String tooltipString
 

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

{GUI}

Constructor & Destructor Documentation

◆ ~SettableTooltipClient()

juce::SettableTooltipClient::~SettableTooltipClient ( )
inlineoverride

Destructor.

◆ SettableTooltipClient()

juce::SettableTooltipClient::SettableTooltipClient ( )
inlineprotected

Member Function Documentation

◆ getTooltip()

String juce::SettableTooltipClient::getTooltip ( )
inlineoverridevirtual

Returns the tooltip assigned to this object.

Implements juce::TooltipClient.

Reimplemented in juce::ComboBox.

◆ setTooltip()

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

Assigns a new tooltip to this object.

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

Member Data Documentation

◆ tooltipString

String juce::SettableTooltipClient::tooltipString
private

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