导航:  GdiPlus Classes > Structures >

Rect

上一页返回章节概述下一页

Defines the upper-left corner, width, and height of a rectangle.

 

C++ Syntax

 

typedef struct RECT {

LONG x;

LONG y;

LONG width;

LONG height;

};

 

FreeBASIC 语法

 

TYPE RECT

x AS INT_

y AS INT_

width AS INT_

height AS INT_

END TYPE

 

成员

 

left

 

Specifies the x-coordinate of the upper-left corner of a rectangle.

 

top

 

Specifies the y-coordinate of the upper-left corner of a rectangle.

 

right

 

Specifies the x-coordinate of the lower-right corner of a rectangle.

 

bottom

 

Specifies the y-coordinate of the lower-right corner of a rectangle.