1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-31 03:00:05 +00:00

The Point and Rectangle classes are now templated, so can be used for either float or int co-ordinates. This means that wherever you've used these classes, you'll need to replace them with Rectangle<int> or Point<float> in your code. A couple of methods in Path have changed to take advantage of the new ability.

This commit is contained in:
Julian Storer 2010-02-07 00:52:30 +00:00
parent 31a102008d
commit 7bc24ae42a
153 changed files with 2258 additions and 2753 deletions

View file

@ -50,17 +50,17 @@ public:
bool isVectorDevice() const;
void setOrigin (int x, int y);
bool clipToRectangle (const Rectangle& r);
bool clipToRectangle (const Rectangle<int>& r);
bool clipToRectangleList (const RectangleList& clipRegion);
void excludeClipRectangle (const Rectangle& r);
void excludeClipRectangle (const Rectangle<int>& r);
void clipToPath (const Path& path, const AffineTransform& transform);
void clipToImageAlpha (const Image& sourceImage, const Rectangle& srcClip, const AffineTransform& transform);
void clipToImageAlpha (const Image& sourceImage, const Rectangle<int>& srcClip, const AffineTransform& transform);
void saveState();
void restoreState();
bool clipRegionIntersects (const Rectangle& r);
const Rectangle getClipBounds() const;
bool clipRegionIntersects (const Rectangle<int>& r);
const Rectangle<int> getClipBounds() const;
bool isClipEmpty() const;
//==============================================================================
@ -69,10 +69,10 @@ public:
void setInterpolationQuality (Graphics::ResamplingQuality quality);
//==============================================================================
void fillRect (const Rectangle& r, const bool replaceExistingContents);
void fillRect (const Rectangle<int>& r, const bool replaceExistingContents);
void fillPath (const Path& path, const AffineTransform& transform);
void drawImage (const Image& sourceImage, const Rectangle& srcClip,
void drawImage (const Image& sourceImage, const Rectangle<int>& srcClip,
const AffineTransform& transform, const bool fillEntireClipAsTiles);
void drawLine (double x1, double y1, double x2, double y2);