JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::Label::Listener Class Referenceabstract

A class for receiving events from a Label. More...

#include <juce_Label.h>

Public Member Functions

virtual ~Listener ()=default
 Destructor. More...
 
virtual void editorHidden (Label *, TextEditor &)
 Called when a Label is about to delete its TextEditor and exit editing mode. More...
 
virtual void editorShown (Label *, TextEditor &)
 Called when a Label goes into editing mode and displays a TextEditor. More...
 
virtual void labelTextChanged (Label *labelThatHasChanged)=0
 Called when a Label's text has changed. More...
 

Detailed Description

A class for receiving events from a Label.

You can register a Label::Listener with a Label using the Label::addListener() method, and it will be called when the text of the label changes, either because of a call to Label::setText() or by the user editing the text (if the label is editable).

See also
Label::addListener, Label::removeListener

Constructor & Destructor Documentation

◆ ~Listener()

virtual juce::Label::Listener::~Listener ( )
virtualdefault

Destructor.

Member Function Documentation

◆ editorHidden()

virtual void juce::Label::Listener::editorHidden ( Label ,
TextEditor  
)
inlinevirtual

Called when a Label is about to delete its TextEditor and exit editing mode.

◆ editorShown()

virtual void juce::Label::Listener::editorShown ( Label ,
TextEditor  
)
inlinevirtual

Called when a Label goes into editing mode and displays a TextEditor.

◆ labelTextChanged()

virtual void juce::Label::Listener::labelTextChanged ( Label labelThatHasChanged)
pure virtual

Called when a Label's text has changed.


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