1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +00:00

Cleaned up some minor stuff in the GL demo and PathStrokeType.

This commit is contained in:
jules 2014-01-12 15:50:16 +00:00
parent 1f454c1ca0
commit 5b25b303fb
3 changed files with 26 additions and 26 deletions

View file

@ -22,12 +22,13 @@
==============================================================================
*/
PathStrokeType::PathStrokeType (const float strokeThickness,
const JointStyle jointStyle_,
const EndCapStyle endStyle_) noexcept
: thickness (strokeThickness),
jointStyle (jointStyle_),
endStyle (endStyle_)
PathStrokeType::PathStrokeType (float strokeThickness) noexcept
: thickness (strokeThickness), jointStyle (mitered), endStyle (butt)
{
}
PathStrokeType::PathStrokeType (float strokeThickness, JointStyle joint, EndCapStyle end) noexcept
: thickness (strokeThickness), jointStyle (joint), endStyle (end)
{
}

View file

@ -63,6 +63,9 @@ public:
};
//==============================================================================
/** Creates a stroke type with a given line-width, and default joint/end styles. */
explicit PathStrokeType (float strokeThickness) noexcept;
/** Creates a stroke type.
@param strokeThickness the width of the line to use
@ -70,14 +73,14 @@ public:
@param endStyle the type of end-caps to use for the ends of open paths.
*/
PathStrokeType (float strokeThickness,
JointStyle jointStyle = mitered,
JointStyle jointStyle,
EndCapStyle endStyle = butt) noexcept;
/** Createes a copy of another stroke type. */
PathStrokeType (const PathStrokeType& other) noexcept;
/** Creates a copy of another stroke type. */
PathStrokeType (const PathStrokeType&) noexcept;
/** Copies another stroke onto this one. */
PathStrokeType& operator= (const PathStrokeType& other) noexcept;
PathStrokeType& operator= (const PathStrokeType&) noexcept;
/** Destructor. */
~PathStrokeType() noexcept;
@ -184,10 +187,10 @@ public:
//==============================================================================
/** Compares the stroke thickness, joint and end styles of two stroke types. */
bool operator== (const PathStrokeType& other) const noexcept;
bool operator== (const PathStrokeType&) const noexcept;
/** Compares the stroke thickness, joint and end styles of two stroke types. */
bool operator!= (const PathStrokeType& other) const noexcept;
bool operator!= (const PathStrokeType&) const noexcept;
private:
//==============================================================================