TypeTraits 構造体 (d2d1_1helper.h)

指定した型を使用してデータを格納する PointSizeおよび Rect の実装が含まれています。

構文

template<typename Type>
struct TypeTraits
{
    typedef D2D1_POINT_2F Point;
    typedef D2D1_SIZE_F   Size;
    typedef D2D1_RECT_F   Rect;
};

template<>
struct TypeTraits<UINT32>
{
    typedef D2D1_POINT_2U Point;
    typedef D2D1_SIZE_U   Size;
    typedef D2D1_RECT_U   Rect;
};

必要条件

   
サポートされている最小のクライアント Windows 7、Windows Vista SP2 と Windows Vista 用プラットフォーム更新プログラム [デスクトップ アプリ |UWP アプリ]
サポートされている最小のサーバー Windows Server 2008 R2、Windows Server 2008 SP2 および Windows Server 2008 用プラットフォーム更新プログラム [デスクトップ アプリ |UWP アプリ]
Header d2d1_1helper.h (D2d1_1helper.h を含む)