CD3D11_RECT class

Represents a rectangle and provides convenience methods for creating rectangles.

Members

The CD3D11_RECT class inherits from D3D11_RECT. CD3D11_RECT also has these types of members:

Constructors

The CD3D11_RECT class has these constructors.

ConstructorDescription
CD3D11_RECT()

Instantiates a new instance of an uninitialized CD3D11_RECT structure.

CD3D11_RECT(LONG,LONG,LONG,LONG)(LONG,LONG,LONG,LONG)

Instantiates a new instance of a CD3D11_RECT structure that is initialized with the dimensions of a rectangle.

 

Methods

The CD3D11_RECT class has these methods.

MethodDescription
CD3D11_RECT

Destroys an instance of a CD3D11_RECT structure.

CD3D11_RECT(D3D11_RECT&)(const &D3D11_RECT)

Instantiates a new instance of a CD3D11_RECT structure that is initialized with a D3D11_RECT structure.

D3D11_RECT&()

This operator returns the address of a D3D11_RECT structure that contains the data from the CD3D11_RECT instance.

 

Remarks

Here is how D3D11.h defines CD3D11_RECT:


struct CD3D11_RECT : public D3D11_RECT
{
    CD3D11_RECT()
    {}
    explicit CD3D11_RECT( const D3D11_RECT& o ) :
        D3D11_RECT( o )
    {}
    explicit CD3D11_RECT(
        LONG Left,
        LONG Top,
        LONG Right,
        LONG Bottom )
    {
        left = Left;
        top = Top;
        right = Right;
        bottom = Bottom;
    }
    ~CD3D11_RECT() {}
    operator const D3D11_RECT&() const { return *this; }
};


Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

D3D11.h

Library

D3D11.lib

See also

D3D11_RECT
CD3D11 Helper Structures

 

 

Show: