JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public 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...

#include "juce_TooltipClient.h"

Inheritance diagram for juce::SettableTooltipClient:
juce::TooltipClient juce::Button juce::ComboBox juce::FileSearchPathListComponent juce::FilenameComponent juce::ImageComponent juce::Label juce::ListBox juce::ProgressBar juce::PropertyComponent juce::Slider juce::TextEditor juce::TreeView

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.
 
- Public Member Functions inherited from juce::TooltipClient
virtual ~TooltipClient ()=default
 Destructor.
 

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 the TooltipWindow docs for more information about implementing tooltips.

See also
TooltipClient, TooltipWindow

@tags{GUI}

Definition at line 68 of file juce_TooltipClient.h.

Member Function Documentation

◆ getTooltip()

String juce::SettableTooltipClient::getTooltip ( )
overridevirtual

Returns the tooltip assigned to this object.

Implements juce::TooltipClient.

Definition at line 80 of file juce_TooltipClient.h.

◆ setTooltip()

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

Assigns a new tooltip to this object.

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

Definition at line 77 of file juce_TooltipClient.h.


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