CD2DSizeU 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 CD2DSizeU Class.

A wrapper for D2D1_SIZE_U.

class CD2DSizeU : public D2D1_SIZE_U;  

Public Constructors

NameDescription
CD2DSizeU::CD2DSizeUOverloaded. Constructs a CD2DSizeU object from D2D1_SIZE_U object.

Public Methods

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

Public Operators

NameDescription
CD2DSizeU::operator CSizeConverts CD2DSizeU to CSize object.

D2D1_SIZE_U

CD2DSizeU

Header: afxrendertarget.h

Constructs a CD2DSizeU object from CSize object.

CD2DSizeU(const CSize& size);  
CD2DSizeU(const D2D1_SIZE_U& size);  
  CD2DSizeU(const D2D1_SIZE_U* size);

 
CD2DSizeU(
    UINT32 cx = 0,  
    UINT32 cy = 0);

Parameters

size
source size

cx
source width

cy
source height

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

BOOL IsNull() const;  

Return Value

TRUE if width and height are empty; otherwise FALSE.

Converts CD2DSizeU to CSize object.

operator CSize();

Return Value

Current value of D2D size.

Classes

Show: