25 #ifndef JUCE_GRAPHICSCONTEXT_H_INCLUDED 26 #define JUCE_GRAPHICSCONTEXT_H_INCLUDED 71 void setColour (
Colour newColour);
82 void setOpacity (
float newOpacity);
92 void setTiledImageFill (
const Image& imageToUse,
93 int anchorX,
int anchorY,
99 void setFillType (
const FillType& newFill);
109 void setFont (
const Font& newFont);
116 void setFont (
float newFontHeight);
119 Font getCurrentFont()
const;
133 void drawSingleLineText (
const String& text,
134 int startX,
int baselineY,
145 void drawMultiLineText (
const String& text,
146 int startX,
int baselineY,
147 int maximumLineWidth)
const;
158 void drawText (
const String& text,
159 int x,
int y,
int width,
int height,
161 bool useEllipsesIfTooBig =
true)
const;
172 void drawText (
const String& text,
175 bool useEllipsesIfTooBig =
true)
const;
186 void drawText (
const String& text,
189 bool useEllipsesIfTooBig =
true)
const;
210 void drawFittedText (
const String& text,
211 int x,
int y,
int width,
int height,
213 int maximumNumberOfLines,
235 void drawFittedText (
const String& text,
238 int maximumNumberOfLines,
247 void fillAll()
const;
254 void fillAll (
Colour colourToUse)
const;
270 void fillRect (
int x,
int y,
int width,
int height)
const;
275 void fillRect (
float x,
float y,
float width,
float height)
const;
294 void fillRoundedRectangle (
float x,
float y,
float width,
float height,
295 float cornerSize)
const;
301 float cornerSize)
const;
305 int checkWidth,
int checkHeight,
312 void drawRect (
int x,
int y,
int width,
int height,
int lineThickness = 1)
const;
318 void drawRect (
float x,
float y,
float width,
float height,
float lineThickness = 1.0f)
const;
324 void drawRect (
const Rectangle<int>& rectangle,
int lineThickness = 1)
const;
330 void drawRect (
Rectangle<float> rectangle,
float lineThickness = 1.0f)
const;
335 void drawRoundedRectangle (
float x,
float y,
float width,
float height,
336 float cornerSize,
float lineThickness)
const;
342 float cornerSize,
float lineThickness)
const;
348 void setPixel (
int x,
int y)
const;
355 void fillEllipse (
float x,
float y,
float width,
float height)
const;
366 void drawEllipse (
float x,
float y,
float width,
float height,
367 float lineThickness)
const;
380 void drawLine (
float startX,
float startY,
float endX,
float endY)
const;
387 void drawLine (
float startX,
float startY,
float endX,
float endY,
float lineThickness)
const;
401 void drawLine (
const Line<float>& line,
float lineThickness)
const;
415 const float* dashLengths,
int numDashLengths,
416 float lineThickness = 1.0f,
417 int dashIndexToStartFrom = 0)
const;
426 void drawVerticalLine (
int x,
float top,
float bottom)
const;
435 void drawHorizontalLine (
int y,
float left,
float right)
const;
439 void fillPath (
const Path& path,
443 void strokePath (
const Path& path,
456 float arrowheadWidth,
457 float arrowheadLength)
const;
467 lowResamplingQuality = 0,
468 mediumResamplingQuality = 1,
469 highResamplingQuality = 2
489 void drawImageAt (
const Image& imageToDraw,
int topLeftX,
int topLeftY,
490 bool fillAlphaChannelWithCurrentBrush =
false)
const;
517 void drawImage (
const Image& imageToDraw,
518 int destX,
int destY,
int destWidth,
int destHeight,
519 int sourceX,
int sourceY,
int sourceWidth,
int sourceHeight,
520 bool fillAlphaChannelWithCurrentBrush =
false)
const;
539 void drawImageTransformed (
const Image& imageToDraw,
541 bool fillAlphaChannelWithCurrentBrush =
false)
const;
564 void drawImageWithin (
const Image& imageToDraw,
565 int destX,
int destY,
int destWidth,
int destHeight,
567 bool fillAlphaChannelWithCurrentBrush =
false)
const;
589 bool reduceClipRegion (
int x,
int y,
int width,
int height);
626 void excludeClipRegion (
const Rectangle<int>& rectangleToExclude);
629 bool isClipEmpty()
const;
669 void beginTransparencyLayer (
float layerOpacity);
674 void endTransparencyLayer();
698 void setOrigin (
int newOriginX,
int newOriginY);
711 void resetToDefaultState();
714 bool isVectorDevice()
const;
731 bool saveStatePending;
732 void saveStateIfPending();
738 #endif // JUCE_GRAPHICSCONTEXT_H_INCLUDED ResamplingQuality
Definition: juce_GraphicsContext.h:465
Definition: juce_Font.h:39
Definition: juce_GraphicsContext.h:647
Definition: juce_Line.h:44
#define noexcept
Definition: juce_CompilerSupport.h:141
Definition: juce_RectangleList.h:40
Definition: juce_Justification.h:38
Definition: juce_String.h:43
Definition: juce_ColourGradient.h:35
Definition: juce_PathStrokeType.h:39
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_Justification.h:110
Definition: juce_Rectangle.h:36
Definition: juce_RectanglePlacement.h:37
float minimumHorizontalScale
Definition: juce_Font.cpp:33
Definition: juce_Path.h:62
Definition: juce_Colour.h:35
Definition: juce_FillType.h:38
Definition: juce_GraphicsContext.h:42
Definition: juce_Image.h:54
Definition: juce_LowLevelGraphicsContext.h:43
LowLevelGraphicsContext & getInternalContext() const noexcept
Definition: juce_GraphicsContext.h:724