D2D_RECT_F structure (dcommon.h)

Represents a rectangle defined by the coordinates of the upper-left corner (left, top) and the coordinates of the lower-right corner (right, bottom).

Syntax

typedef struct D2D_RECT_F {
  FLOAT left;
  FLOAT top;
  FLOAT right;
  FLOAT bottom;
} D2D_RECT_F;

Members

left

Type: FLOAT

The x-coordinate of the upper-left corner of the rectangle.

top

Type: FLOAT

The y-coordinate of the upper-left corner of the rectangle.

right

Type: FLOAT

The x-coordinate of the lower-right corner of the rectangle.

bottom

Type: FLOAT

The y-coordinate of the lower-right corner of the rectangle.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Header dcommon.h (include D2d1.h)

See also

D2D1_RECT_F