Share via


CD2DSolidColorBrush Class

A wrapper for ID2D1SolidColorBrush.

class CD2DSolidColorBrush : public CD2DBrush;

Members

Public Constructors

Name

Description

CD2DSolidColorBrush::CD2DSolidColorBrush

Overloaded. Constructs a CD2DSolidColorBrush object.

CD2DSolidColorBrush::~CD2DSolidColorBrush

The destructor. Called when a D2D solid brush object is being destroyed.

Public Methods

Name

Description

CD2DSolidColorBrush::Attach

Attaches existing resource interface to the object

CD2DSolidColorBrush::Create

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

CD2DSolidColorBrush::Destroy

Destroys a CD2DSolidColorBrush object. (Overrides CD2DBrush::Destroy.)

CD2DSolidColorBrush::Detach

Detaches resource interface from the object

CD2DSolidColorBrush::Get

Returns ID2D1SolidColorBrush interface

CD2DSolidColorBrush::GetColor

Retrieves the color of the solid color brush

CD2DSolidColorBrush::SetColor

Specifies the color of this solid color brush

Public Operators

Name

Description

CD2DSolidColorBrush::operator ID2D1SolidColorBrush*

Returns ID2D1SolidColorBrush interface

Protected Data Members

Name

Description

CD2DSolidColorBrush::m_colorSolid

Brush solid color.

CD2DSolidColorBrush::m_pSolidColorBrush

Stores a pointer to an ID2D1SolidColorBrush object.

Inheritance Hierarchy

CObject

CD2DResource

CD2DBrush

CD2DSolidColorBrush

Requirements

Header: afxrendertarget.h

See Also

Other Resources

MFC Classes