Condividi tramite


CD2DLayer Class

A wrapper for ID2D1Layer.

class CD2DLayer : public CD2DResource;

Members

Public Constructors

Name

Description

CD2DLayer::CD2DLayer

Constructs a CD2DLayer object.

CD2DLayer::~CD2DLayer

The destructor. Called when a D2D layer object is being destroyed.

Public Methods

Name

Description

CD2DLayer::Attach

Attaches existing resource interface to the object

CD2DLayer::Create

Creates a CD2DLayer. (Overrides CD2DResource::Create.)

CD2DLayer::Destroy

Destroys a CD2DLayer object. (Overrides CD2DResource::Destroy.)

CD2DLayer::Detach

Detaches resource interface from the object

CD2DLayer::Get

Returns ID2D1Layer interface

CD2DLayer::GetSize

Returns the size of the render target in device-independent pixels

CD2DLayer::IsValid

Checks resource validity (Overrides CD2DResource::IsValid.)

Public Operators

Name

Description

CD2DLayer::operator ID2D1Layer*

Returns ID2D1Layer interface

Protected Data Members

Name

Description

CD2DLayer::m_pLayer

Stores a pointer to an ID2D1Layer object.

Inheritance Hierarchy

CObject

CD2DResource

CD2DLayer

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes