Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Rect<Type> Function

Creates a rectangle structure that stores its coordinates using the specified data type.

template<typename Type>
typename TypeTraits<Type>::Rect Rect(
  Type left,
  Type top,
  Type right,
  Type bottom
);

Template Parameters

ParameterDescription
TypeThe data type used to store the dimensions of the rectangle. Possible values are FLOAT and UINT32.

 

Parameters

ParameterDescription
leftThe x-coordinate of the rectangle's upper-left corner.
topThe y-coordinate of the rectangle's upper-left corner.
rightThe x-coordinate of the rectangle's lower-right corner.
bottomThe y-coordinate of the rectangle's lower-right corner.

 

Return Value

A rectangle structure that contains the specified coordinates.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

D2d1helper.h

Library

D2d1.lib

DLL

D2d1.dll

 

 

Show:
© 2016 Microsoft