70 void setColour (
Colour newColour);
81 void setOpacity (
float newOpacity);
93 void setTiledImageFill (
const Image& imageToUse,
94 int anchorX,
int anchorY,
100 void setFillType (
const FillType& newFill);
106 void setFont (
const Font& newFont);
113 void setFont (
float newFontHeight);
116 Font getCurrentFont()
const;
130 void drawSingleLineText (
const String& text,
131 int startX,
int baselineY,
143 void drawMultiLineText (
const String& text,
144 int startX,
int baselineY,
145 int maximumLineWidth,
147 float leading = 0.0f)
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,
214 float minimumHorizontalScale = 0.0f)
const;
235 void drawFittedText (
const String& text,
238 int maximumNumberOfLines,
239 float minimumHorizontalScale = 0.0f)
const;
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 float checkWidth,
float 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 (
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;
349 void fillEllipse (
float x,
float y,
float width,
float height)
const;
360 void drawEllipse (
float x,
float y,
float width,
float height,
361 float lineThickness)
const;
374 void drawLine (
float startX,
float startY,
float endX,
float endY)
const;
381 void drawLine (
float startX,
float startY,
float endX,
float endY,
float lineThickness)
const;
395 void drawLine (
Line<float> line,
float lineThickness)
const;
409 const float* dashLengths,
int numDashLengths,
410 float lineThickness = 1.0f,
411 int dashIndexToStartFrom = 0)
const;
420 void drawVerticalLine (
int x,
float top,
float bottom)
const;
429 void drawHorizontalLine (
int y,
float left,
float right)
const;
433 void fillPath (
const Path& path)
const;
439 void strokePath (
const Path& path,
452 float arrowheadWidth,
453 float arrowheadLength)
const;
463 lowResamplingQuality = 0,
464 mediumResamplingQuality = 1,
465 highResamplingQuality = 2,
472 void setImageResamplingQuality (ResamplingQuality newQuality);
485 void drawImageAt (
const Image& imageToDraw,
int topLeftX,
int topLeftY,
486 bool fillAlphaChannelWithCurrentBrush =
false)
const;
513 void drawImage (
const Image& imageToDraw,
514 int destX,
int destY,
int destWidth,
int destHeight,
515 int sourceX,
int sourceY,
int sourceWidth,
int sourceHeight,
516 bool fillAlphaChannelWithCurrentBrush =
false)
const;
535 void drawImageTransformed (
const Image& imageToDraw,
537 bool fillAlphaChannelWithCurrentBrush =
false)
const;
554 bool fillAlphaChannelWithCurrentBrush =
false)
const;
577 void drawImageWithin (
const Image& imageToDraw,
578 int destX,
int destY,
int destWidth,
int destHeight,
580 bool fillAlphaChannelWithCurrentBrush =
false)
const;
601 bool reduceClipRegion (
int x,
int y,
int width,
int height);
641 bool isClipEmpty()
const;
681 void beginTransparencyLayer (
float layerOpacity);
686 void endTransparencyLayer();
710 void setOrigin (
int newOriginX,
int newOriginY);
723 void resetToDefaultState();
726 bool isVectorDevice()
const;
743 bool saveStatePending =
false;
744 void saveStateIfPending();
Describes the layout and colours that should be used to paint a colour gradient.
Represents a colour, also including a transparency value.
Represents a colour or fill pattern to use for rendering paths.
Represents a particular font, including its size, style, etc.
Uses RAII to save and restore the state of a graphics context.
A graphics context, used for drawing a component or image.
ResamplingQuality
Types of rendering quality that can be specified when drawing images.
Holds a fixed-size bitmap.
Represents a type of justification to be used when positioning graphical items.
Interface class for graphics context objects, used internally by the Graphics class.
Describes a type of stroke used to render a solid outline along a path.
A path is a sequence of lines and curves that may either form a closed shape or be open-ended.
A pair of (x, y) coordinates.
Maintains a set of rectangles as a complex region.
Defines the method used to position some kind of rectangular object within a rectangular viewport.
Manages a rectangle and allows geometric operations to be performed on it.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...