Scope
d2d::DPIScale Class Reference

#include <d2wrap.h>

Static Public Member Functions

static void Initialize (ID2D1Factory *pFactory)
 
template<typename T >
static D2D1_POINT_2F PixelsToDips (T x, T y)
 

Static Private Attributes

static float scaleX = 1.0f
 
static float scaleY = 1.0f
 

Detailed Description

Helper class to convert from screen mouse coordinates to device independent pixels for Direct2D.

Definition at line 13 of file d2wrap.h.

Member Function Documentation

static void d2d::DPIScale::Initialize ( ID2D1Factory *  pFactory)
inlinestatic

Initialize with desktop dpis.

Definition at line 22 of file d2wrap.h.

template<typename T >
static D2D1_POINT_2F d2d::DPIScale::PixelsToDips ( x,
y 
)
inlinestatic

Convert screen pixels to device independent points.

Definition at line 31 of file d2wrap.h.

Member Data Documentation

float d2d::DPIScale::scaleX = 1.0f
staticprivate

x scale factor

Definition at line 15 of file d2wrap.h.

float d2d::DPIScale::scaleY = 1.0f
staticprivate

y scale factor

Definition at line 18 of file d2wrap.h.


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