#include <juce_Direct2DGraphicsContext_windows.h>


Classes | |
| class | PendingClipList |
| struct | Pimpl |
| struct | ScopedTransform |
Public Member Functions | |
| Direct2DGraphicsContext () | |
| ~Direct2DGraphicsContext () 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 |
| virtual Image | createSnapshot () const |
| 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 > &, float) override |
| void | drawRect (const Rectangle< float > &, float) override |
| void | drawRoundedRectangle (const Rectangle< float > &area, float cornerSize, float lineThickness) override |
| void | endFrame () |
| void | endTransparencyLayer () override |
| void | excludeClipRectangle (const Rectangle< int > &) override |
| virtual void | fillAll () |
| 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 > &area, 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. | |
| bool | startFrame (float dpiScale) |
| void | strokePath (const Path &, const PathStrokeType &strokeType, const AffineTransform &) override |
Public Attributes | |
| Direct2DMetrics::Ptr | metrics |
Protected Member Functions | |
| void | applyPendingClipList () |
| virtual void | clearTargetBuffer ()=0 |
| virtual Pimpl * | getPimpl () const noexcept=0 |
| template<typename Shape , typename Fn > | |
| void | paintPrimitive (const Shape &shape, Fn &&primitiveOp) |
| void | resetPendingClipList () |
Static Protected Member Functions | |
| static Line< float > | offsetShape (Line< float > a, Point< float > b) |
| static Rectangle< float > | offsetShape (Rectangle< float > a, Point< float > b) |
| static RectangleList< float > | offsetShape (RectangleList< float > a, Point< float > b) |
Protected Attributes | |
| SavedState * | currentState = nullptr |
| uint64_t | frame = 0 |
| PendingClipList | pendingClipList |
| juce::Direct2DGraphicsContext::Direct2DGraphicsContext | ( | ) |
|
override |
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
protected |
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
protectedpure virtual |
Implemented in juce::Direct2DImageContext, and juce::Direct2DHwndContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
inlinevirtual |
Reimplemented in juce::Direct2DHwndContext.
|
overridevirtual |
Reimplemented from juce::LowLevelGraphicsContext.
|
overridevirtual |
Uses the current font to draw the provided glyph numbers.
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Reimplemented from juce::LowLevelGraphicsContext.
Reimplemented from juce::LowLevelGraphicsContext.
|
overridevirtual |
Reimplemented from juce::LowLevelGraphicsContext.
| void juce::Direct2DGraphicsContext::endFrame | ( | ) |
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
inlinevirtualinherited |
Reimplemented in juce::CoreGraphicsContext.
Reimplemented from juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Reimplemented from juce::LowLevelGraphicsContext.
|
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.
References frame.
Referenced by juce::Direct2DGraphicsContext::Pimpl::getFrameId().
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
protectedpure virtualnoexcept |
Implemented in juce::Direct2DImageContext, and juce::Direct2DHwndContext.
|
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.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Implements juce::LowLevelGraphicsContext.
|
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.
|
protected |
|
protected |
Referenced by getFrameId().
| Direct2DMetrics::Ptr juce::Direct2DGraphicsContext::metrics |
Referenced by juce::Direct2DGraphicsContext::Pimpl::getMetrics().
|
protected |