#include <juce_Direct2DHwndContext_windows.h>


Classes | |
| struct | SwapchainDelegate |
Public Member Functions | |
| Direct2DHwndContext (HWND windowHandle, SwapchainDelegate &swapDelegate) | |
| ~Direct2DHwndContext () override | |
| void | addDeferredRepaint (Rectangle< int > deferredRepaint) |
| 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 |
| Image | createSnapshot () const 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 > &, 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. | |
| void | handleShowWindow () |
| 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 () |
| 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 |
Private Member Functions | |
| void | clearTargetBuffer () override |
| Pimpl * | getPimpl () const noexcept override |
Private Attributes | |
| std::unique_ptr< HwndPimpl > | pimpl |
| juce::Direct2DHwndContext::Direct2DHwndContext | ( | HWND | windowHandle, |
| SwapchainDelegate & | swapDelegate | ||
| ) |
|
override |
| void juce::Direct2DHwndContext::addDeferredRepaint | ( | Rectangle< int > | deferredRepaint | ) |
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
protectedinherited |
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overrideprivatevirtual |
Implements juce::Direct2DGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtual |
Reimplemented from juce::Direct2DGraphicsContext.
|
overridevirtualinherited |
Reimplemented from juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Uses the current font to draw the provided glyph numbers.
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Reimplemented from juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Reimplemented from juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Reimplemented from juce::LowLevelGraphicsContext.
|
inherited |
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
inlinevirtualinherited |
Reimplemented in juce::CoreGraphicsContext.
|
overridevirtualinherited |
Reimplemented from juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Reimplemented from juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
inlineoverridevirtualinherited |
Returns an integer that uniquely identifies the current frame.
Useful for debugging/logging.
Implements juce::LowLevelGraphicsContext.
References juce::Direct2DGraphicsContext::frame.
Referenced by juce::Direct2DGraphicsContext::Pimpl::getFrameId().
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overrideprivatevirtualnoexcept |
Implements juce::Direct2DGraphicsContext.
|
inlineoverridevirtualinherited |
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.
| void juce::Direct2DHwndContext::handleShowWindow | ( | ) |
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
inlineoverridevirtualinherited |
Returns true if this device is vector-based, e.g.
a printer.
Implements juce::LowLevelGraphicsContext.
|
staticprotectedinherited |
|
staticprotectedinherited |
|
staticprotectedinherited |
|
protectedinherited |
|
protectedinherited |
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
Implements juce::LowLevelGraphicsContext.
|
overridevirtualinherited |
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.
|
overridevirtualinherited |
Reimplemented from juce::LowLevelGraphicsContext.
|
protectedinherited |
|
protectedinherited |
Referenced by juce::Direct2DGraphicsContext::getFrameId().
|
inherited |
Referenced by juce::Direct2DGraphicsContext::Pimpl::getMetrics().
|
protectedinherited |
|
private |