From c5e0a6048153da36b1b332eef5fdbfbe7790edb2 Mon Sep 17 00:00:00 2001 From: jules Date: Wed, 20 May 2015 09:59:32 +0100 Subject: [PATCH] Added a couple of documentation notes. --- modules/juce_graphics/contexts/juce_GraphicsContext.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/juce_graphics/contexts/juce_GraphicsContext.h b/modules/juce_graphics/contexts/juce_GraphicsContext.h index a43da2af2f..ff9446626a 100644 --- a/modules/juce_graphics/contexts/juce_GraphicsContext.h +++ b/modules/juce_graphics/contexts/juce_GraphicsContext.h @@ -374,21 +374,29 @@ public: //============================================================================== /** Draws a line between two points. The line is 1 pixel wide and drawn with the current colour or brush. + TIP: If you're trying to draw horizontal or vertical lines, don't use this - + it's better to use fillRect() instead unless you really need an angled line. */ void drawLine (float startX, float startY, float endX, float endY) const; /** Draws a line between two points with a given thickness. + TIP: If you're trying to draw horizontal or vertical lines, don't use this - + it's better to use fillRect() instead unless you really need an angled line. @see Path::addLineSegment */ void drawLine (float startX, float startY, float endX, float endY, float lineThickness) const; /** Draws a line between two points. The line is 1 pixel wide and drawn with the current colour or brush. + TIP: If you're trying to draw horizontal or vertical lines, don't use this - + it's better to use fillRect() instead unless you really need an angled line. */ void drawLine (const Line& line) const; /** Draws a line between two points with a given thickness. @see Path::addLineSegment + TIP: If you're trying to draw horizontal or vertical lines, don't use this - + it's better to use fillRect() instead unless you really need an angled line. */ void drawLine (const Line& line, float lineThickness) const;