#include <juce_CoreGraphicsContext_mac.h>


Public Member Functions | |
| CoreGraphicsContext (CGContextRef context, float flipHeight) | |
| ~CoreGraphicsContext () override | |
| void | addTransform (const AffineTransform &) override |
| void | beginTransparencyLayer (float opacity) override |
| bool | clipRegionIntersects (const Rectangle< int > &) override |
| void | clipToImageAlpha (const Image &, const AffineTransform &) override |
| void | clipToPath (const Path &, const AffineTransform &) override |
| bool | clipToRectangle (const Rectangle< int > &) override |
| bool | clipToRectangleList (const RectangleList< int > &) override |
| void | drawEllipse (const Rectangle< float > &area, float lineThickness) override |
| void | drawGlyphs (Span< const uint16_t >, Span< const Point< float > >, const AffineTransform &) override |
| Uses the current font to draw the provided glyph numbers. | |
| void | drawImage (const Image &sourceImage, const AffineTransform &) override |
| void | drawLine (const Line< float > &) override |
| void | drawLineWithThickness (const Line< float > &line, float lineThickness) override |
| virtual void | drawRect (const Rectangle< float > &rect, float lineThickness) |
| void | drawRoundedRectangle (const Rectangle< float > &r, float cornerSize, float lineThickness) override |
| void | endTransparencyLayer () override |
| void | excludeClipRectangle (const Rectangle< int > &) override |
| void | fillAll () override |
| void | fillEllipse (const Rectangle< float > &area) override |
| void | fillPath (const Path &, const AffineTransform &) override |
| void | fillRect (const Rectangle< float > &) override |
| void | fillRect (const Rectangle< int > &, bool replaceExistingContents) override |
| void | fillRectList (const RectangleList< float > &) override |
| void | fillRoundedRectangle (const Rectangle< float > &r, float cornerSize) override |
| Rectangle< int > | getClipBounds () const override |
| const Font & | getFont () override |
| uint64_t | getFrameId () const override |
| Returns an integer that uniquely identifies the current frame. | |
| float | getPhysicalPixelScaleFactor () const override |
| std::unique_ptr< ImageType > | getPreferredImageTypeForTemporaryImages () const override |
| Returns the optimal ImageType for creating temporary images in this GraphicsContext. | |
| bool | isClipEmpty () const override |
| bool | isVectorDevice () const override |
| Returns true if this device is vector-based, e.g. | |
| void | restoreState () override |
| void | saveState () override |
| void | setFill (const FillType &) override |
| void | setFont (const Font &) override |
| void | setInterpolationQuality (Graphics::ResamplingQuality) override |
| void | setOpacity (float) override |
| void | setOrigin (Point< int >) override |
| Moves the origin to a new position. | |
| void | strokePath (const Path &path, const PathStrokeType &strokeType, const AffineTransform &transform) override |
Private Member Functions | |
| void | applyTransform (const AffineTransform &) const |
| bool | clipToRectangleListWithoutTest (const RectangleList< float > &) |
| template<class RectType > | |
| CGRect | convertToCGRectFlipped (RectType r) const noexcept |
| void | createPath (const Path &, const AffineTransform &) const |
| void | drawCurrentPath (CGPathDrawingMode mode) |
| void | drawGradient () |
| void | drawImage (const Image &, const AffineTransform &, bool fillEntireClipAsTiles) |
| void | fillCGRect (const CGRect &, bool replaceExistingContents) |
| void | flip () const |
| void | setContextClipToCurrentPath (bool useNonZeroWinding) |
Private Attributes | |
| detail::ContextPtr | context |
| const CGFloat | flipHeight |
| detail::ColorSpacePtr | greyColourSpace |
| std::optional< Rectangle< int > > | lastClipRect |
| detail::ColorSpacePtr | rgbColourSpace |
| std::unique_ptr< SavedState > | state |
| OwnedArray< SavedState > | stateStack |
| juce::CoreGraphicsContext::CoreGraphicsContext | ( | CGContextRef | context, |
| float | flipHeight | ||
| ) |
|
override |
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
private |
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
private |
|
privatenoexcept |
|
private |
|
private |
|
overridevirtual |
Reimplemented from juce::LowLevelGraphicsContext.
|
overridevirtual |
Uses the current font to draw the provided glyph numbers.
Implements juce::LowLevelGraphicsContext.
|
private |
|
private |
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Reimplemented from juce::LowLevelGraphicsContext.
|
inlinevirtualinherited |
Reimplemented in juce::Direct2DGraphicsContext.
References juce::RectangleList< ValueType >::addWithoutMerging().
|
overridevirtual |
Reimplemented from juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Reimplemented from juce::LowLevelGraphicsContext.
|
private |
Reimplemented from juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Reimplemented from juce::LowLevelGraphicsContext.
|
private |
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
inlineoverridevirtual |
Returns an integer that uniquely identifies the current frame.
Useful for debugging/logging.
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
inlineoverridevirtual |
Returns the optimal ImageType for creating temporary images in this GraphicsContext.
While this typically matches the GraphicsContext's native ImageType, certain scenarios may benefit from using a different format for temporary operations (e.g., for performance, memory efficiency, or specific rendering requirements).
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
inlineoverridevirtual |
Returns true if this device is vector-based, e.g.
a printer.
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
private |
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Moves the origin to a new position.
The coordinates are relative to the current origin, and indicate the new position of (0, 0).
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Reimplemented from juce::LowLevelGraphicsContext.
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |