JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::D2DUtilities Struct Reference

#include <juce_DirectX_windows.h>

Static Public Member Functions

static ComSmartPtr< ID2D1Device1 > getDeviceForContext (ComSmartPtr< ID2D1DeviceContext1 > context)
 
static AffineTransform matrixToTransform (const D2D1_MATRIX_3X2_F &m)
 
static Rectangle< int > rectFromSize (D2D1_SIZE_U s)
 
static D2D1_COLOR_F toCOLOR_F (Colour c)
 
static Point< int > toPoint (POINT p) noexcept
 
static POINT toPOINT (Point< int > p) noexcept
 
static D2D1_POINT_2U toPOINT_2U (Point< int > p)
 
template<typename Type >
static RECT toRECT (const Rectangle< Type > &r)
 
template<typename Type >
static D2D1_RECT_F toRECT_F (const Rectangle< Type > &r)
 
template<typename Type >
static D2D1_RECT_U toRECT_U (const Rectangle< Type > &r)
 
static Rectangle< int > toRectangle (const RECT &r)
 
static D2D1::Matrix3x2F transformToMatrix (const AffineTransform &t)
 

Member Function Documentation

◆ getDeviceForContext()

static ComSmartPtr< ID2D1Device1 > juce::D2DUtilities::getDeviceForContext ( ComSmartPtr< ID2D1DeviceContext1 >  context)
static

◆ matrixToTransform()

static AffineTransform juce::D2DUtilities::matrixToTransform ( const D2D1_MATRIX_3X2_F &  m)
inlinestatic

◆ rectFromSize()

static Rectangle< int > juce::D2DUtilities::rectFromSize ( D2D1_SIZE_U  s)
inlinestatic

◆ toCOLOR_F()

static D2D1_COLOR_F juce::D2DUtilities::toCOLOR_F ( Colour  c)
inlinestatic

◆ toPoint()

static Point< int > juce::D2DUtilities::toPoint ( POINT  p)
inlinestaticnoexcept

◆ toPOINT()

static POINT juce::D2DUtilities::toPOINT ( Point< int >  p)
inlinestaticnoexcept

◆ toPOINT_2U()

static D2D1_POINT_2U juce::D2DUtilities::toPOINT_2U ( Point< int >  p)
inlinestatic

◆ toRECT()

template<typename Type >
static RECT juce::D2DUtilities::toRECT ( const Rectangle< Type > &  r)
inlinestatic

◆ toRECT_F()

template<typename Type >
static D2D1_RECT_F juce::D2DUtilities::toRECT_F ( const Rectangle< Type > &  r)
inlinestatic

◆ toRECT_U()

template<typename Type >
static D2D1_RECT_U juce::D2DUtilities::toRECT_U ( const Rectangle< Type > &  r)
inlinestatic

◆ toRectangle()

static Rectangle< int > juce::D2DUtilities::toRectangle ( const RECT &  r)
inlinestatic

◆ transformToMatrix()

static D2D1::Matrix3x2F juce::D2DUtilities::transformToMatrix ( const AffineTransform t)
inlinestatic

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