Browse Source

Fixed some incorrect documentation examples for the Rectangle::removeFromRight() and ::removeFromBottom() methods

tags/2021-05-28
ed 5 years ago
parent
commit
b77b14c6c3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_graphics/geometry/juce_Rectangle.h

+ 2
- 2
modules/juce_graphics/geometry/juce_Rectangle.h View File

@@ -499,7 +499,7 @@ public:
by the specified amount and returning the section that was removed.
E.g. if this rectangle is (100, 100, 300, 300) and amountToRemove is 50, this will
return (250, 100, 50, 300) and leave this rectangle as (100, 100, 250, 300).
return (350, 100, 50, 300) and leave this rectangle as (100, 100, 250, 300).
If amountToRemove is greater than the width of this rectangle, it'll be clipped to
that value.
@@ -516,7 +516,7 @@ public:
by the specified amount and returning the section that was removed.
E.g. if this rectangle is (100, 100, 300, 300) and amountToRemove is 50, this will
return (100, 250, 300, 50) and leave this rectangle as (100, 100, 300, 250).
return (100, 350, 300, 50) and leave this rectangle as (100, 100, 300, 250).
If amountToRemove is greater than the height of this rectangle, it'll be clipped to
that value.


Loading…
Cancel
Save