LMMS
Loading...
Searching...
No Matches
juce_GroupComponent.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce
27{
28
29//==============================================================================
38{
39public:
40 //==============================================================================
47 const String& labelText = {});
48
50 ~GroupComponent() override;
51
52 //==============================================================================
54 void setText (const String& newText);
55
57 String getText() const;
58
64
69
70 //==============================================================================
79 {
80 outlineColourId = 0x1005400,
81 textColourId = 0x1005410
82 };
83
84 //==============================================================================
87 {
88 virtual ~LookAndFeelMethods() = default;
89
90 virtual void drawGroupComponentOutline (Graphics&, int w, int h, const String& text,
91 const Justification&, GroupComponent&) = 0;
92 };
93
94 //==============================================================================
96 void paint (Graphics&) override;
98 void enablementChanged() override;
100 void colourChanged() override;
101
102private:
103 std::unique_ptr<AccessibilityHandler> createAccessibilityHandler() override;
104
107
109};
110
111} // namespace juce
#define noexcept
Definition DistrhoDefines.h:72
String componentName
Definition juce_Component.h:2534
Component() noexcept
Definition juce_Component.cpp:517
Definition juce_GraphicsContext.h:45
Justification getTextLabelPosition() const noexcept
Definition juce_GroupComponent.h:68
void setTextLabelPosition(Justification justification)
Definition juce_GroupComponent.cpp:54
ColourIds
Definition juce_GroupComponent.h:79
@ textColourId
Definition juce_GroupComponent.h:81
@ outlineColourId
Definition juce_GroupComponent.h:80
String getText() const
Definition juce_GroupComponent.cpp:49
std::unique_ptr< AccessibilityHandler > createAccessibilityHandler() override
Definition juce_GroupComponent.cpp:73
void setText(const String &newText)
Definition juce_GroupComponent.cpp:40
String text
Definition juce_GroupComponent.h:105
Justification justification
Definition juce_GroupComponent.h:106
void paint(Graphics &) override
Definition juce_GroupComponent.cpp:63
void enablementChanged() override
Definition juce_GroupComponent.cpp:69
void colourChanged() override
Definition juce_GroupComponent.cpp:70
GroupComponent(const String &componentName={}, const String &labelText={})
Definition juce_GroupComponent.cpp:29
Definition juce_Justification.h:41
Definition juce_String.h:53
UINT_D64 w
Definition inflate.c:942
#define JUCE_DECLARE_NON_COPYABLE(className)
#define JUCE_API
Definition juce_StandardHeader.h:152
Definition carla_juce.cpp:31
Definition juce_GroupComponent.h:87
virtual void drawGroupComponentOutline(Graphics &, int w, int h, const String &text, const Justification &, GroupComponent &)=0
uch h[RAND_HEAD_LEN]
Definition crypt.c:459
#define const
Definition zconf.h:137