Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a rectangle and provides convenience methods for creating rectangles.
Syntax
struct CD3D11_RECT : D3D11_RECT {
void CD3D11_RECT();
void CD3D11_RECT(
const D3D11_RECT & o
);
void CD3D11_RECT(
LONG Left,
LONG Top,
LONG Right,
LONG Bottom
);
void ~CD3D11_RECT();
};
Inheritance
The CD3D11_RECT structure implements D3D11_RECT.
Members
Instantiates a new instance of an uninitialized CD3D11_RECT structure.
void CD3D11_RECT( const D3D11_RECT & o)
Instantiates a new instance of a CD3D11_RECT structure that is initialized with a D3D11_RECT structure.
void CD3D11_RECT( LONG Left, LONG Top, LONG Right, LONG Bottom)
Instantiates a new instance of a CD3D11_RECT structure that is initialized with the dimensions of a rectangle.
Destroys an instance of a CD3D11_RECT structure.
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
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7 [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] |
| Header | d3d11.h |