mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Renamed and refactored the LookAndFeel classes. The LookAndFeel class is now an abstract base-class, and there are 3 concrete subclasses you can use. These are LookAndFeel_V1 (replaces OldSchoolLookAndFeel), LookAndFeel_V2 (replaces what was the normal LookAndFeel class) and LookAndFeel_V3 (this is a new style, taken from the Introjucer's L+F).
This commit is contained in:
parent
56ec1d1400
commit
bea7b83cb8
80 changed files with 5177 additions and 4075 deletions
|
|
@ -31,11 +31,8 @@ GroupComponent::GroupComponent (const String& name,
|
|||
setInterceptsMouseClicks (false, true);
|
||||
}
|
||||
|
||||
GroupComponent::~GroupComponent()
|
||||
{
|
||||
}
|
||||
GroupComponent::~GroupComponent() {}
|
||||
|
||||
//==============================================================================
|
||||
void GroupComponent::setText (const String& newText)
|
||||
{
|
||||
if (text != newText)
|
||||
|
|
@ -50,7 +47,6 @@ String GroupComponent::getText() const
|
|||
return text;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
void GroupComponent::setTextLabelPosition (Justification newJustification)
|
||||
{
|
||||
if (justification != newJustification)
|
||||
|
|
@ -62,18 +58,9 @@ void GroupComponent::setTextLabelPosition (Justification newJustification)
|
|||
|
||||
void GroupComponent::paint (Graphics& g)
|
||||
{
|
||||
getLookAndFeel()
|
||||
.drawGroupComponentOutline (g, getWidth(), getHeight(),
|
||||
text, justification,
|
||||
*this);
|
||||
getLookAndFeel().drawGroupComponentOutline (g, getWidth(), getHeight(),
|
||||
text, justification, *this);
|
||||
}
|
||||
|
||||
void GroupComponent::enablementChanged()
|
||||
{
|
||||
repaint();
|
||||
}
|
||||
|
||||
void GroupComponent::colourChanged()
|
||||
{
|
||||
repaint();
|
||||
}
|
||||
void GroupComponent::enablementChanged() { repaint(); }
|
||||
void GroupComponent::colourChanged() { repaint(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue