Browse Source

Fixed some minor typos in Rectangle and the RTAS wrapper.

tags/2021-05-28
Julian Storer 15 years ago
parent
commit
e1cab61fa6
5 changed files with 15 additions and 9 deletions
  1. +1
    -1
      extras/audio plugins/wrapper/RTAS/juce_RTAS_Wrapper.cpp
  2. +7
    -4
      juce_amalgamated.h
  3. +1
    -1
      src/core/juce_StandardHeader.h
  4. +3
    -0
      src/gui/graphics/geometry/juce_Point.h
  5. +3
    -3
      src/gui/graphics/geometry/juce_Rectangle.h

+ 1
- 1
extras/audio plugins/wrapper/RTAS/juce_RTAS_Wrapper.cpp View File

@@ -284,7 +284,7 @@ public:
if (peer != 0)
{
// (seems to be required in PT6.4, but not in 7.x)
peer->repaint (0, 0, wrapper->getWidth(), wrapper->getHeight());
peer->repaint (wrapper->getLocalBounds());
}
}
#endif


+ 7
- 4
juce_amalgamated.h View File

@@ -64,7 +64,7 @@
*/
#define JUCE_MAJOR_VERSION 1
#define JUCE_MINOR_VERSION 52
#define JUCE_BUILDNUMBER 36
#define JUCE_BUILDNUMBER 37

/** Current Juce version number.

@@ -19265,6 +19265,9 @@ public:
/** Casts this point to a Point<float> object. */
const Point<float> toFloat() const throw() { return Point<float> (static_cast <float> (x), static_cast<float> (y)); }

/** Casts this point to a Point<int> object. */
const Point<int> toInt() const throw() { return Point<int> (static_cast <int> (x), static_cast<int> (y)); }

/** Returns the point as a string in the form "x, y". */
const String toString() const { return String (x) + ", " + String (y); }

@@ -20506,13 +20509,13 @@ public:
const Point<ValueType> getTopLeft() const throw() { return getPosition(); }

/** Returns the rectangle's top-right position as a Point. */
const Point<ValueType> getTopRight() const throw() { return Point<float> (x + w, y); }
const Point<ValueType> getTopRight() const throw() { return Point<ValueType> (x + w, y); }

/** Returns the rectangle's bottom-left position as a Point. */
const Point<ValueType> getBottomLeft() const throw() { return Point<float> (x, y + h); }
const Point<ValueType> getBottomLeft() const throw() { return Point<ValueType> (x, y + h); }

/** Returns the rectangle's bottom-right position as a Point. */
const Point<ValueType> getBottomRight() const throw() { return Point<float> (x + w, y + h); }
const Point<ValueType> getBottomRight() const throw() { return Point<ValueType> (x + w, y + h); }

/** Changes the rectangle's size, leaving the position of its top-left corner unchanged. */
void setSize (const ValueType newWidth, const ValueType newHeight) throw() { w = newWidth; h = newHeight; }


+ 1
- 1
src/core/juce_StandardHeader.h View File

@@ -33,7 +33,7 @@
*/
#define JUCE_MAJOR_VERSION 1
#define JUCE_MINOR_VERSION 52
#define JUCE_BUILDNUMBER 36
#define JUCE_BUILDNUMBER 37
/** Current Juce version number.


+ 3
- 0
src/gui/graphics/geometry/juce_Point.h View File

@@ -159,6 +159,9 @@ public:
/** Casts this point to a Point<float> object. */
const Point<float> toFloat() const throw() { return Point<float> (static_cast <float> (x), static_cast<float> (y)); }
/** Casts this point to a Point<int> object. */
const Point<int> toInt() const throw() { return Point<int> (static_cast <int> (x), static_cast<int> (y)); }
/** Returns the point as a string in the form "x, y". */
const String toString() const { return String (x) + ", " + String (y); }


+ 3
- 3
src/gui/graphics/geometry/juce_Rectangle.h View File

@@ -146,13 +146,13 @@ public:
const Point<ValueType> getTopLeft() const throw() { return getPosition(); }
/** Returns the rectangle's top-right position as a Point. */
const Point<ValueType> getTopRight() const throw() { return Point<float> (x + w, y); }
const Point<ValueType> getTopRight() const throw() { return Point<ValueType> (x + w, y); }
/** Returns the rectangle's bottom-left position as a Point. */
const Point<ValueType> getBottomLeft() const throw() { return Point<float> (x, y + h); }
const Point<ValueType> getBottomLeft() const throw() { return Point<ValueType> (x, y + h); }
/** Returns the rectangle's bottom-right position as a Point. */
const Point<ValueType> getBottomRight() const throw() { return Point<float> (x + w, y + h); }
const Point<ValueType> getBottomRight() const throw() { return Point<ValueType> (x + w, y + h); }
/** Changes the rectangle's size, leaving the position of its top-left corner unchanged. */
void setSize (const ValueType newWidth, const ValueType newHeight) throw() { w = newWidth; h = newHeight; }


Loading…
Cancel
Save