JUCE  v5.1.1-3-g1a0b28c73
JUCE API
Direct2DLowLevelGraphicsContext Class Reference

#include <juce_win32_Direct2DGraphicsContext.h>

Inheritance diagram for Direct2DLowLevelGraphicsContext:
Collaboration diagram for Direct2DLowLevelGraphicsContext:

Public Member Functions

 Direct2DLowLevelGraphicsContext (HWND)
 
 ~Direct2DLowLevelGraphicsContext ()
 
void addTransform (const AffineTransform &) override
 
void beginTransparencyLayer (float opacity) override
 
void clear ()
 
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 end ()
 
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< intgetClipBounds () const override
 
const FontgetFont () override
 
float getPhysicalPixelScaleFactor () override
 
bool isClipEmpty () const override
 
bool isVectorDevice () const override
 Returns true if this device is vector-based, e.g. More...
 
void resized ()
 
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...
 
void start ()
 

Private Attributes

Rectangle< intbounds
 
SavedState * currentState
 
HWND hwnd
 
ScopedPointer< Pimplpimpl
 
OwnedArray< SavedState > states
 

Friends

struct ContainerDeletePolicy< Pimpl >
 
struct Pimpl
 

Constructor & Destructor Documentation

◆ Direct2DLowLevelGraphicsContext()

Direct2DLowLevelGraphicsContext::Direct2DLowLevelGraphicsContext ( HWND  )

◆ ~Direct2DLowLevelGraphicsContext()

Direct2DLowLevelGraphicsContext::~Direct2DLowLevelGraphicsContext ( )

Member Function Documentation

◆ addTransform()

void Direct2DLowLevelGraphicsContext::addTransform ( const AffineTransform )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ beginTransparencyLayer()

void Direct2DLowLevelGraphicsContext::beginTransparencyLayer ( float  opacity)
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ clear()

void Direct2DLowLevelGraphicsContext::clear ( )

Referenced by isVectorDevice().

◆ clipRegionIntersects()

bool Direct2DLowLevelGraphicsContext::clipRegionIntersects ( const Rectangle< int > &  )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ clipToImageAlpha()

void Direct2DLowLevelGraphicsContext::clipToImageAlpha ( const Image ,
const AffineTransform  
)
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ clipToPath()

void Direct2DLowLevelGraphicsContext::clipToPath ( const Path ,
const AffineTransform  
)
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ clipToRectangle()

bool Direct2DLowLevelGraphicsContext::clipToRectangle ( const Rectangle< int > &  )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ clipToRectangleList()

bool Direct2DLowLevelGraphicsContext::clipToRectangleList ( const RectangleList< int > &  )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ drawGlyph()

void Direct2DLowLevelGraphicsContext::drawGlyph ( int  glyphNumber,
const AffineTransform  
)
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ drawImage()

void Direct2DLowLevelGraphicsContext::drawImage ( const Image sourceImage,
const AffineTransform  
)
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ drawLine()

void Direct2DLowLevelGraphicsContext::drawLine ( const Line< float > &  )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ drawTextLayout()

bool Direct2DLowLevelGraphicsContext::drawTextLayout ( const AttributedString ,
const Rectangle< float > &   
)
overridevirtual

Reimplemented from LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ end()

void Direct2DLowLevelGraphicsContext::end ( )

Referenced by isVectorDevice().

◆ endTransparencyLayer()

void Direct2DLowLevelGraphicsContext::endTransparencyLayer ( )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ excludeClipRectangle()

void Direct2DLowLevelGraphicsContext::excludeClipRectangle ( const Rectangle< int > &  )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ fillPath()

void Direct2DLowLevelGraphicsContext::fillPath ( const Path ,
const AffineTransform  
)
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ fillRect() [1/2]

void Direct2DLowLevelGraphicsContext::fillRect ( const Rectangle< int > &  ,
bool  replaceExistingContents 
)
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ fillRect() [2/2]

void Direct2DLowLevelGraphicsContext::fillRect ( const Rectangle< float > &  )
overridevirtual

◆ fillRectList()

void Direct2DLowLevelGraphicsContext::fillRectList ( const RectangleList< float > &  )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ getClipBounds()

Rectangle<int> Direct2DLowLevelGraphicsContext::getClipBounds ( ) const
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ getFont()

const Font& Direct2DLowLevelGraphicsContext::getFont ( )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ getPhysicalPixelScaleFactor()

float Direct2DLowLevelGraphicsContext::getPhysicalPixelScaleFactor ( )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ isClipEmpty()

bool Direct2DLowLevelGraphicsContext::isClipEmpty ( ) const
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ isVectorDevice()

◆ resized()

void Direct2DLowLevelGraphicsContext::resized ( )

Referenced by isVectorDevice().

◆ restoreState()

void Direct2DLowLevelGraphicsContext::restoreState ( )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ saveState()

void Direct2DLowLevelGraphicsContext::saveState ( )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ setFill()

void Direct2DLowLevelGraphicsContext::setFill ( const FillType )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ setFont()

void Direct2DLowLevelGraphicsContext::setFont ( const Font )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ setInterpolationQuality()

void Direct2DLowLevelGraphicsContext::setInterpolationQuality ( Graphics::ResamplingQuality  )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ setOpacity()

void Direct2DLowLevelGraphicsContext::setOpacity ( float  )
overridevirtual

Implements LowLevelGraphicsContext.

Referenced by isVectorDevice().

◆ setOrigin()

void Direct2DLowLevelGraphicsContext::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().

◆ start()

void Direct2DLowLevelGraphicsContext::start ( )

Referenced by isVectorDevice().

Friends And Related Function Documentation

◆ ContainerDeletePolicy< Pimpl >

friend struct ContainerDeletePolicy< Pimpl >
friend

◆ Pimpl

friend struct Pimpl
friend

Member Data Documentation

◆ bounds

Rectangle<int> Direct2DLowLevelGraphicsContext::bounds
private

◆ currentState

SavedState* Direct2DLowLevelGraphicsContext::currentState
private

◆ hwnd

HWND Direct2DLowLevelGraphicsContext::hwnd
private

◆ pimpl

ScopedPointer<Pimpl> Direct2DLowLevelGraphicsContext::pimpl
private

◆ states

OwnedArray<SavedState> Direct2DLowLevelGraphicsContext::states
private

The documentation for this class was generated from the following file: