Go to the documentation of this file.
25 #ifndef JUCE_LABEL_H_INCLUDED
26 #define JUCE_LABEL_H_INCLUDED
71 String getText (
bool returnActiveEditorContents =
false)
const;
104 backgroundColourId = 0x1000280,
105 textColourId = 0x1000281,
106 outlineColourId = 0x1000282,
108 backgroundWhenEditingColourId = 0x1000283,
109 textWhenEditingColourId = 0x1000284,
110 outlineWhenEditingColourId = 0x1000285
140 void attachToComponent (
Component* owner,
bool onLeft);
161 void setMinimumHorizontalScale (
float newScale);
187 virtual void labelTextChanged (
Label* labelThatHasChanged) = 0;
197 void addListener (Listener* listener);
200 void removeListener (Listener* listener);
223 void setEditable (
bool editOnSingleClick,
224 bool editOnDoubleClick =
false,
225 bool lossOfFocusDiscardsChanges =
false);
252 void hideEditor (
bool discardCurrentEditorContents);
255 bool isBeingEdited() const
noexcept;
280 virtual void textWasEdited();
283 virtual void textWasChanged();
289 virtual void editorAboutToBeHidden (
TextEditor*);
295 void resized()
override;
299 void mouseDoubleClick (
const MouseEvent&)
override;
301 void componentMovedOrResized (
Component&,
bool wasMoved,
bool wasResized)
override;
303 void componentParentHierarchyChanged (
Component&)
override;
305 void componentVisibilityChanged (
Component&)
override;
307 void inputAttemptWhenModal()
override;
309 void focusGained (FocusChangeType)
override;
311 void enablementChanged()
override;
315 void textEditorTextChanged (
TextEditor&)
override;
317 void textEditorReturnKeyPressed (
TextEditor&)
override;
319 void textEditorEscapeKeyPressed (
TextEditor&)
override;
321 void textEditorFocusLost (
TextEditor&)
override;
323 void colourChanged()
override;
325 void valueChanged (
Value&)
override;
327 void callChangeListeners();
341 bool editSingleClick;
342 bool editDoubleClick;
343 bool lossOfFocusDiscardsChanges;
344 bool leftOfOwnerComp;
346 bool updateFromTextEditorContents (
TextEditor&);
354 #endif // JUCE_LABEL_H_INCLUDED
float minimumHorizontalScale
Definition: juce_Font.cpp:33
virtual void editorHidden(Label *, TextEditor &)
Definition: juce_Label.h:193
Definition: juce_ListenerList.h:69
virtual void editorShown(Label *, TextEditor &)
Definition: juce_Label.h:190
virtual ~LookAndFeelMethods()
Definition: juce_Label.h:266
Label::Listener LabelListener
Definition: juce_Label.h:352
Definition: juce_String.h:43
Definition: juce_Value.h:44
Definition: juce_ComponentListener.h:40
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_TextEditor.h:280
static const String empty
Definition: juce_String.h:152
Definition: juce_GraphicsContext.h:42
Justification getJustificationType() const noexcept
Definition: juce_Label.h:120
String getText() const
Definition: juce_TextEditor.cpp:2342
#define noexcept
Definition: juce_CompilerSupport.h:141
virtual ~Listener()
Definition: juce_Label.h:184
Definition: juce_Value.h:130
Definition: juce_KeyboardFocusTraverser.h:49
bool isEditableOnDoubleClick() const noexcept
Definition: juce_Label.h:231
Definition: juce_Font.h:39
float getMinimumHorizontalScale() const noexcept
Definition: juce_Label.h:164
void setFont(const Font &newFont)
Definition: juce_TextEditor.cpp:1054
const Font & getFont() const noexcept
Definition: juce_TextEditor.h:248
NotificationType
Definition: juce_NotificationType.h:33
Definition: juce_Component.h:33
Definition: juce_Label.h:34
VirtualKeyboardType
Definition: juce_TextInputTarget.h:78
void setKeyboardType(TextInputTarget::VirtualKeyboardType type) noexcept
Definition: juce_Label.h:167
void setText(const String &newText, bool sendTextChangeMessage=true)
Definition: juce_TextEditor.cpp:1169
bool isAttachedOnLeft() const noexcept
Definition: juce_Label.h:154
Definition: juce_Label.h:264
Definition: juce_TextEditor.h:38
bool isEditableOnSingleClick() const noexcept
Definition: juce_Label.h:228
Definition: juce_Label.h:180
Definition: juce_MouseEvent.h:36
Definition: juce_Justification.h:38
ColourIds
Definition: juce_Label.h:102
BorderSize< int > getBorderSize() const noexcept
Definition: juce_Label.h:129
bool isEditable() const noexcept
Definition: juce_Label.h:237
Value & getTextValue() noexcept
Definition: juce_Label.h:77
bool doesLossOfFocusDiscardChanges() const noexcept
Definition: juce_Label.h:234