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
Parameter | Description |
---|---|
Type | The data type used to store the dimensions of the rectangle. Possible values are FLOAT and UINT32. |
Parameters
Parameter | Description |
---|---|
left | The x-coordinate of the rectangle's upper-left corner. |
top | The y-coordinate of the rectangle's upper-left corner. |
right | The x-coordinate of the rectangle's lower-right corner. |
bottom | The y-coordinate of the rectangle's lower-right corner. |
Return Value
A rectangle structure that contains the specified coordinates.
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] |
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
Header |
|
Library |
|
DLL |
|
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for