mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
Made linux getMillisecondCounter() run monotonically. Added a new class Decibels, with some decibel conversion methods. Minor updates to AudioThumbnail and FileInputSource.
This commit is contained in:
parent
c4029bc86d
commit
897c3e1fa7
28 changed files with 396 additions and 178 deletions
|
|
@ -307,19 +307,13 @@ public:
|
|||
|
||||
//==============================================================================
|
||||
/** Adds a rectangle to the path.
|
||||
|
||||
The rectangle is added as a new sub-path. (Any currently open paths will be
|
||||
left open).
|
||||
|
||||
The rectangle is added as a new sub-path. (Any currently open paths will be left open).
|
||||
@see addRoundedRectangle, addTriangle
|
||||
*/
|
||||
void addRectangle (float x, float y, float width, float height);
|
||||
|
||||
/** Adds a rectangle to the path.
|
||||
|
||||
The rectangle is added as a new sub-path. (Any currently open paths will be
|
||||
left open).
|
||||
|
||||
The rectangle is added as a new sub-path. (Any currently open paths will be left open).
|
||||
@see addRoundedRectangle, addTriangle
|
||||
*/
|
||||
template <typename ValueType>
|
||||
|
|
@ -330,30 +324,45 @@ public:
|
|||
}
|
||||
|
||||
/** Adds a rectangle with rounded corners to the path.
|
||||
|
||||
The rectangle is added as a new sub-path. (Any currently open paths will be
|
||||
left open).
|
||||
|
||||
The rectangle is added as a new sub-path. (Any currently open paths will be left open).
|
||||
@see addRectangle, addTriangle
|
||||
*/
|
||||
void addRoundedRectangle (float x, float y, float width, float height,
|
||||
float cornerSize);
|
||||
|
||||
/** Adds a rectangle with rounded corners to the path.
|
||||
|
||||
The rectangle is added as a new sub-path. (Any currently open paths will be
|
||||
left open).
|
||||
|
||||
The rectangle is added as a new sub-path. (Any currently open paths will be left open).
|
||||
@see addRectangle, addTriangle
|
||||
*/
|
||||
void addRoundedRectangle (float x, float y, float width, float height,
|
||||
float cornerSizeX,
|
||||
float cornerSizeY);
|
||||
|
||||
/** Adds a rectangle with rounded corners to the path.
|
||||
The rectangle is added as a new sub-path. (Any currently open paths will be left open).
|
||||
@see addRectangle, addTriangle
|
||||
*/
|
||||
template <typename ValueType>
|
||||
void addRoundedRectangle (const Rectangle<ValueType>& rectangle, float cornerSizeX, float cornerSizeY)
|
||||
{
|
||||
addRoundedRectangle (static_cast <float> (rectangle.getX()), static_cast <float> (rectangle.getY()),
|
||||
static_cast <float> (rectangle.getWidth()), static_cast <float> (rectangle.getHeight()),
|
||||
cornerSizeX, cornerSizeY);
|
||||
}
|
||||
|
||||
/** Adds a rectangle with rounded corners to the path.
|
||||
The rectangle is added as a new sub-path. (Any currently open paths will be left open).
|
||||
@see addRectangle, addTriangle
|
||||
*/
|
||||
template <typename ValueType>
|
||||
void addRoundedRectangle (const Rectangle<ValueType>& rectangle, float cornerSize)
|
||||
{
|
||||
addRoundedRectangle (rectangle, cornerSize, cornerSize);
|
||||
}
|
||||
|
||||
/** Adds a triangle to the path.
|
||||
|
||||
The triangle is added as a new closed sub-path. (Any currently open paths will be
|
||||
left open).
|
||||
The triangle is added as a new closed sub-path. (Any currently open paths will be left open).
|
||||
|
||||
Note that whether the vertices are specified in clockwise or anticlockwise
|
||||
order will affect how the triangle is filled when it overlaps other
|
||||
|
|
@ -365,8 +374,7 @@ public:
|
|||
|
||||
/** Adds a quadrilateral to the path.
|
||||
|
||||
The quad is added as a new closed sub-path. (Any currently open paths will be
|
||||
left open).
|
||||
The quad is added as a new closed sub-path. (Any currently open paths will be left open).
|
||||
|
||||
Note that whether the vertices are specified in clockwise or anticlockwise
|
||||
order will affect how the quad is filled when it overlaps other
|
||||
|
|
@ -379,8 +387,7 @@ public:
|
|||
|
||||
/** Adds an ellipse to the path.
|
||||
|
||||
The shape is added as a new sub-path. (Any currently open paths will be
|
||||
left open).
|
||||
The shape is added as a new sub-path. (Any currently open paths will be left open).
|
||||
|
||||
@see addArc
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -621,8 +621,8 @@ public:
|
|||
{
|
||||
const int x1 = (int) std::floor (static_cast<float> (x));
|
||||
const int y1 = (int) std::floor (static_cast<float> (y));
|
||||
const int x2 = (int) std::floor (static_cast<float> (x + w + 0.9999f));
|
||||
const int y2 = (int) std::floor (static_cast<float> (y + h + 0.9999f));
|
||||
const int x2 = (int) std::ceil (static_cast<float> (x + w));
|
||||
const int y2 = (int) std::ceil (static_cast<float> (y + h));
|
||||
|
||||
return Rectangle<int> (x1, y1, x2 - x1, y2 - y1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue