#include <juce_mac_CoreGraphicsContext.h>
|
| CoreGraphicsContext (CGContextRef context, float flipHeight, float targetScale) |
|
| ~CoreGraphicsContext () |
|
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 | drawGlyph (int glyphNumber, const AffineTransform &) override |
|
void | drawImage (const Image &sourceImage, const AffineTransform &) override |
|
void | drawLine (const Line< float > &) override |
|
bool | drawTextLayout (const AttributedString &, const Rectangle< float > &) override |
|
void | endTransparencyLayer () override |
|
void | excludeClipRectangle (const Rectangle< int > &) override |
|
void | fillPath (const Path &, const AffineTransform &) override |
|
void | fillRect (const Rectangle< int > &, bool replaceExistingContents) override |
|
void | fillRect (const Rectangle< float > &) override |
|
void | fillRectList (const RectangleList< float > &) override |
|
Rectangle< int > | getClipBounds () const override |
|
const Font & | getFont () override |
|
float | getPhysicalPixelScaleFactor () override |
|
bool | isClipEmpty () const override |
|
bool | isVectorDevice () const override |
| Returns true if this device is vector-based, e.g. More...
|
|
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. More...
|
|
◆ CoreGraphicsContext()
CoreGraphicsContext::CoreGraphicsContext |
( |
CGContextRef |
context, |
|
|
float |
flipHeight, |
|
|
float |
targetScale |
|
) |
| |
◆ ~CoreGraphicsContext()
CoreGraphicsContext::~CoreGraphicsContext |
( |
| ) |
|
◆ addTransform()
◆ applyTransform()
◆ beginTransparencyLayer()
void CoreGraphicsContext::beginTransparencyLayer |
( |
float |
opacity | ) |
|
|
overridevirtual |
◆ clipRegionIntersects()
bool CoreGraphicsContext::clipRegionIntersects |
( |
const Rectangle< int > & |
| ) |
|
|
overridevirtual |
◆ clipToImageAlpha()
◆ clipToPath()
◆ clipToRectangle()
bool CoreGraphicsContext::clipToRectangle |
( |
const Rectangle< int > & |
| ) |
|
|
overridevirtual |
◆ clipToRectangleList()
◆ clipToRectangleListWithoutTest()
bool CoreGraphicsContext::clipToRectangleListWithoutTest |
( |
const RectangleList< int > & |
| ) |
|
|
private |
◆ createPath() [1/2]
void CoreGraphicsContext::createPath |
( |
const Path & |
| ) |
const |
|
private |
◆ createPath() [2/2]
◆ drawGlyph()
◆ drawGradient()
void CoreGraphicsContext::drawGradient |
( |
| ) |
|
|
private |
◆ drawImage() [1/2]
◆ drawImage() [2/2]
void CoreGraphicsContext::drawImage |
( |
const Image & |
, |
|
|
const AffineTransform & |
, |
|
|
bool |
fillEntireClipAsTiles |
|
) |
| |
|
private |
◆ drawLine()
void CoreGraphicsContext::drawLine |
( |
const Line< float > & |
| ) |
|
|
overridevirtual |
◆ drawTextLayout()
◆ endTransparencyLayer()
void CoreGraphicsContext::endTransparencyLayer |
( |
| ) |
|
|
overridevirtual |
◆ excludeClipRectangle()
void CoreGraphicsContext::excludeClipRectangle |
( |
const Rectangle< int > & |
| ) |
|
|
overridevirtual |
◆ fillCGRect()
void CoreGraphicsContext::fillCGRect |
( |
const CGRect & |
, |
|
|
bool |
replaceExistingContents |
|
) |
| |
|
private |
◆ fillPath()
◆ fillRect() [1/2]
void CoreGraphicsContext::fillRect |
( |
const Rectangle< int > & |
, |
|
|
bool |
replaceExistingContents |
|
) |
| |
|
overridevirtual |
◆ fillRect() [2/2]
void CoreGraphicsContext::fillRect |
( |
const Rectangle< float > & |
| ) |
|
|
overridevirtual |
◆ fillRectList()
void CoreGraphicsContext::fillRectList |
( |
const RectangleList< float > & |
| ) |
|
|
overridevirtual |
◆ flip()
void CoreGraphicsContext::flip |
( |
| ) |
const |
|
private |
◆ getClipBounds()
◆ getFont()
const Font& CoreGraphicsContext::getFont |
( |
| ) |
|
|
overridevirtual |
◆ getPhysicalPixelScaleFactor()
float CoreGraphicsContext::getPhysicalPixelScaleFactor |
( |
| ) |
|
|
overridevirtual |
◆ isClipEmpty()
bool CoreGraphicsContext::isClipEmpty |
( |
| ) |
const |
|
overridevirtual |
◆ isVectorDevice()
bool CoreGraphicsContext::isVectorDevice |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns true if this device is vector-based, e.g.
a printer.
Implements LowLevelGraphicsContext.
References addTransform(), beginTransparencyLayer(), clipRegionIntersects(), clipToImageAlpha(), clipToPath(), clipToRectangle(), clipToRectangleList(), drawGlyph(), drawImage(), drawLine(), drawTextLayout(), endTransparencyLayer(), excludeClipRectangle(), fillPath(), fillRect(), fillRectList(), getClipBounds(), getFont(), getPhysicalPixelScaleFactor(), isClipEmpty(), restoreState(), saveState(), setFill(), setFont(), setInterpolationQuality(), setOpacity(), and setOrigin().
◆ restoreState()
void CoreGraphicsContext::restoreState |
( |
| ) |
|
|
overridevirtual |
◆ saveState()
void CoreGraphicsContext::saveState |
( |
| ) |
|
|
overridevirtual |
◆ setFill()
void CoreGraphicsContext::setFill |
( |
const FillType & |
| ) |
|
|
overridevirtual |
◆ setFont()
void CoreGraphicsContext::setFont |
( |
const Font & |
| ) |
|
|
overridevirtual |
◆ setInterpolationQuality()
◆ setOpacity()
void CoreGraphicsContext::setOpacity |
( |
float |
| ) |
|
|
overridevirtual |
◆ setOrigin()
void CoreGraphicsContext::setOrigin |
( |
Point< int > |
| ) |
|
|
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 LowLevelGraphicsContext.
Referenced by isVectorDevice().
◆ context
CGContextRef CoreGraphicsContext::context |
|
private |
◆ flipHeight
const CGFloat CoreGraphicsContext::flipHeight |
|
private |
◆ greyColourSpace
CGColorSpaceRef CoreGraphicsContext::greyColourSpace |
|
private |
◆ lastClipRect
◆ lastClipRectIsValid
bool CoreGraphicsContext::lastClipRectIsValid |
|
mutableprivate |
◆ rgbColourSpace
CGColorSpaceRef CoreGraphicsContext::rgbColourSpace |
|
private |
◆ state
◆ stateStack
◆ targetScale
float CoreGraphicsContext::targetScale |
|
private |
The documentation for this class was generated from the following file: