mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Moved all "namespace juce" declarations from module headers to the individual .h and .cpp source files. This makes life a lot easier for Intellisense and other IDE autocompletion tools
This commit is contained in:
parent
b58a0f4be7
commit
eda613c6db
1069 changed files with 5367 additions and 1845 deletions
|
|
@ -24,7 +24,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
//==============================================================================
|
||||
namespace juce
|
||||
{
|
||||
|
||||
static Typeface::Ptr getTypefaceForFontFromLookAndFeel (const Font& font)
|
||||
{
|
||||
return LookAndFeel::getDefaultLookAndFeel().getTypefaceForFont (font);
|
||||
|
|
@ -150,3 +152,5 @@ bool LookAndFeel::isUsingNativeAlertWindows()
|
|||
return useNativeAlertWindows;
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
namespace juce
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
/** This class is used to hold a few look and feel base classes which are associated
|
||||
|
|
@ -229,3 +230,5 @@ private:
|
|||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LookAndFeel)
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
LookAndFeel_V1::LookAndFeel_V1()
|
||||
{
|
||||
setColour (TextButton::buttonColourId, Colour (0xffbbbbff));
|
||||
|
|
@ -567,3 +570,5 @@ void LookAndFeel_V1::positionDocumentWindowButtons (DocumentWindow&,
|
|||
if (minimiseButton != nullptr)
|
||||
minimiseButton->setBounds (x, titleBarY - 2, buttonW, titleBarH);
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
namespace juce
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
/**
|
||||
|
|
@ -97,3 +98,5 @@ private:
|
|||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LookAndFeel_V1)
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
namespace LookAndFeelHelpers
|
||||
{
|
||||
static Colour createBaseColour (Colour buttonColour,
|
||||
|
|
@ -3018,3 +3021,5 @@ void LookAndFeel_V2::drawGlassLozenge (Graphics& g,
|
|||
g.setColour (colour.darker().withMultipliedAlpha (1.5f));
|
||||
g.strokePath (outline, PathStrokeType (outlineThickness));
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
/**
|
||||
|
|
@ -373,3 +373,5 @@ private:
|
|||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LookAndFeel_V2)
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
LookAndFeel_V3::LookAndFeel_V3()
|
||||
{
|
||||
setColour (TreeView::selectedItemBackgroundColourId, Colour (0x301111ee));
|
||||
|
|
@ -637,3 +640,5 @@ Path LookAndFeel_V3::getCrossShape (const float height)
|
|||
p.scaleToFit (0, 0, height * 2.0f, height, true);
|
||||
return p;
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
namespace juce
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
/**
|
||||
|
|
@ -92,3 +93,5 @@ private:
|
|||
Image backgroundTexture;
|
||||
Colour backgroundTextureBaseColour;
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
Colour LookAndFeel_V4::ColourScheme::getUIColour (UIColour index) const noexcept
|
||||
{
|
||||
|
|
@ -1429,3 +1431,5 @@ void LookAndFeel_V4::initialiseColours()
|
|||
for (int i = 0; i < numElementsInArray (coloursToUse); i += 2)
|
||||
setColour ((int) coloursToUse [i], Colour ((uint32) coloursToUse [i + 1]));
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
class JUCE_API LookAndFeel_V4 : public LookAndFeel_V3
|
||||
{
|
||||
|
|
@ -238,3 +238,5 @@ private:
|
|||
//==============================================================================
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LookAndFeel_V4)
|
||||
};
|
||||
|
||||
} // namespace juce
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue