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);
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
bool isEditableOnSingleClick() const noexcept
Definition: juce_Label.h:228
Definition: juce_TextEditor.h:280
Definition: juce_ComponentListener.h:40
void setKeyboardType(TextInputTarget::VirtualKeyboardType type) noexcept
Definition: juce_Label.h:167
bool isAttachedOnLeft() const noexcept
Definition: juce_Label.h:154
static const String empty
Definition: juce_String.h:152
Definition: juce_Font.h:39
Definition: juce_Label.h:264
#define noexcept
Definition: juce_CompilerSupport.h:141
BorderSize< int > getBorderSize() const noexcept
Definition: juce_Label.h:129
Definition: juce_Justification.h:38
Definition: juce_Value.h:130
Label::Listener LabelListener
Definition: juce_Label.h:352
Definition: juce_String.h:43
float getMinimumHorizontalScale() const noexcept
Definition: juce_Label.h:164
#define JUCE_API
Definition: juce_StandardHeader.h:139
float minimumHorizontalScale
Definition: juce_Font.cpp:33
Definition: juce_Label.h:34
NotificationType
Definition: juce_NotificationType.h:33
Justification getJustificationType() const noexcept
Definition: juce_Label.h:120
virtual ~Listener()
Definition: juce_Label.h:184
Definition: juce_ListenerList.h:69
String getText() const
Definition: juce_TextEditor.cpp:2342
Definition: juce_KeyboardFocusTraverser.h:49
Definition: juce_Component.h:33
Definition: juce_TextEditor.h:38
VirtualKeyboardType
Definition: juce_TextInputTarget.h:78
ColourIds
Definition: juce_Label.h:102
Value & getTextValue() noexcept
Definition: juce_Label.h:77
Definition: juce_BorderSize.h:39
bool doesLossOfFocusDiscardChanges() const noexcept
Definition: juce_Label.h:234
const Font & getFont() const noexcept
Definition: juce_TextEditor.h:248
virtual ~LookAndFeelMethods()
Definition: juce_Label.h:266
Definition: juce_Value.h:44
virtual void editorHidden(Label *, TextEditor &)
Definition: juce_Label.h:193
Definition: juce_GraphicsContext.h:42
Definition: juce_Label.h:180
bool isEditable() const noexcept
Definition: juce_Label.h:237
bool isEditableOnDoubleClick() const noexcept
Definition: juce_Label.h:231
virtual void editorShown(Label *, TextEditor &)
Definition: juce_Label.h:190
void setText(const String &newText, bool sendTextChangeMessage=true)
Definition: juce_TextEditor.cpp:1169
void setFont(const Font &newFont)
Definition: juce_TextEditor.cpp:1054
Definition: juce_MouseEvent.h:36