reuk
44b34be183
Rectangle: Add string conversion functions for floats and doubles
3 years ago
ed
b9542ccc4c
Update code to use C++14 [[deprecated]] attribute
This commit removes the various compiler-specific JUCE_DEPRECATED macros and replaces them with C++14's deprecated attribute. It also removes the JUCE_CATCH_DEPRECATED_CODE_MISUSE flag as we can rely on the override specifier catching usage of these old virtual methods, and tidies up the DOXYGEN preprocessor checks as they were inconsistent across the codebase.
3 years ago
reuk
394c4fd475
Clang: Fix warnings when building with clang 10
4 years ago
ed
009d685179
Updated all license headers
4 years ago
ed
b77b14c6c3
Fixed some incorrect documentation examples for the Rectangle::removeFromRight() and ::removeFromBottom() methods
5 years ago
Tom Poole
894e7d2bd2
Updated all license headers
5 years ago
Tom Poole
2d16374b14
Updated all license headers
5 years ago
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
5 years ago
ed
59a058fdc6
Fixed some warnings flagged up when enabling -Wswitch-enum, -Wswitch-default, -Wredundant-decls, and -Wimplicit-fallthrough
5 years ago
Tom Poole
a93ce46534
Fixed a bug in the previous commit
5 years ago
Tom Poole
ae0b8cf406
Fixed a Rectangle intersection issue
5 years ago
jules
485feb47ed
Tweaked a couple of Rectangle methods to avoid some spurious assertions triggered by rounding errors
5 years ago
Tom Poole
08d67c763f
Made some JUCE classes TriviallyCopyable
6 years ago
jules
121719be69
Added new method Rectangle::toNearestIntEdges(), and used this to improve the Grid layout snapping
7 years ago
ed
cdbc28c18b
Add documentation tags
7 years ago
jules
eda613c6db
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
7 years ago
jules
b12d4c3378
(Fixed a warning in the last commit)
8 years ago
jules
a82c11402c
Made Rectangle::getSmallestIntegerContainer() handle Inf floating point values. Also did some quick modernisation of the Rectangle class.
8 years ago
hogliux
b5afccc37c
Updated file headers and the README with the JUCE 5 license
8 years ago
hogliux
2da1bc5f41
Replace include guards with "#pragma once"
8 years ago
jules
a15d79d4fe
Added new methods Rectangle::withRightX() and withBottomY()
8 years ago
hogliux
4b6458438f
Fix small typo
8 years ago
jules
97e058bbd2
Added a couple of proportional Rectangle methods
8 years ago
jules
fb864a5cb1
Corrected some spelling mistakes in comments
9 years ago
Timur Doumler
2d134d9380
Rectangle::toNearestInt(): improved documentation.
9 years ago
Timur Doumler
26759d5f64
Added helper method Rectangle::toNearestInt().
9 years ago
jules
9906788e9b
Avoided a Visual Studio compiler warning in Rectangle
9 years ago
jules
02492b36b9
Lots of small whitespace tweaks.
9 years ago
hogliux
c7b8e77031
Update copyright notice
9 years ago
jules
43283b3d03
Added a couple of methods to Rectangle to return its limits as Range objects.
10 years ago
jules
769c2f4b46
Added isFinite() methods to Point and Rectangle.
10 years ago
jules
8968df0402
Added some centering methods to Rectangle.
11 years ago
jules
fc24a63ed1
Added a method Rectangle::withSizeKeepingCentre()
11 years ago
jules
2edec00b55
Removed a few more uses of String::empty.
11 years ago
jules
41545be958
Added methods for line/rectangle intersection.
11 years ago
jules
740cea768c
Added some trimming functions to Rectangle.
11 years ago
jules
9b4566a2f0
Added some Rectangle and Point scaling methods.
11 years ago
jules
fecba9c31c
New class StringRef, to improve performance in function calls that can take either a String or a raw string literal. Modified a few other classes to take advantage of this.
11 years ago
jules
d28ebfdb36
Stripped out some unnecessary boilerplate includes from juce_graphics.
11 years ago
jules
1e3973a212
Doxygen warning fixes and extra comments.
11 years ago
jules
bd3a75e726
Added some more translation methods to AffineTransform, and a couple of methods to Rectangle and RectangleList
11 years ago
jules
43e53f01b4
Made sure that Rectangle::operator/ can cope with an integer argument.
11 years ago
jules
ed220632ed
Minor clean-ups.
11 years ago
jules
69f75c344d
Workarounds to get Rectangle<int>::getSmallestIntegerContainer() to work in VC2010
11 years ago
jules
8c7a35addb
Fixed some obscure rounding errors in Rectangle.
11 years ago
jules
6a6f42ddc9
Workarounds for GCC not understanding friend template classes in RectangleList.
11 years ago
jules
1b9a60e52c
Added a templated type to the RectangleList class. If you've used this class and these changes cause syntax errors, all you need to do to your code is to replace "RectangleList" with "RectangleList<int>" and everything will work as it did before.
11 years ago
jules
7d167aef87
Added a new AffineTransform::scaled method and improved Rectangle::operator*=
11 years ago
jules
072c27d7f4
Renamed Rectangle::transformed to Rectangle::transformedBy, in order to match the method name in Point, and allow easier use of these classes in templates.
11 years ago
jules
cf01cae2ea
Changed Rectangle::transformed to use getSmallestIntegerContainer on its result when used on a non-float rectangle type.
11 years ago