CD2DRectF Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CD2DRectF Class.

A wrapper for D2D1_RECT_F.

class CD2DRectF : public D2D1_RECT_F;  

Public Constructors

NameDescription
CD2DRectF::CD2DRectFOverloaded. Constructs a CD2DRectF object from D2D1_RECT_F object.

Public Methods

NameDescription
CD2DRectF::IsNullReturns a boolean value that indicates whether an expression contains no valid data ( null).

Public Operators

NameDescription
CD2DRectF::operator CRectConverts CD2DRectF to CRect object.

D2D1_RECT_F

CD2DRectF

Header: afxrendertarget.h

Constructs a CD2DRectF object from CRect object.

CD2DRectF(const CRect& rect);  
CD2DRectF(const D2D1_RECT_F& rect);  
  CD2DRectF(const D2D1_RECT_F* rect);

 
CD2DRectF(
    FLOAT fLeft = 0.,  
    FLOAT fTop = 0.,  
    FLOAT fRight = 0.,  
    FLOAT fBottom = 0.);

Parameters

rect
source rectangle

fLeft
source left coordinate

fTop
source top coordinate

fRight
source right coordinate

fBottom
source bottom coordinate

Returns a Boolean value that indicates whether an expression contains no valid data (Null).

BOOL IsNull() const;  

Return Value

TRUE if rectangle's top, left, bottom, and right values are all equal to 0; otherwise FALSE.

Converts CD2DRectF to CRect object.

operator CRect();

Return Value

Current value of D2D rectangle.

Classes

Show: