Rect
内容
[
隐藏
]Rect class
用于表示矩形的类
方法
constructor
| 名称 | 描述 |
|---|---|
| constructor() |
Result:
constructor_overload
| 名称 | 描述 |
|---|---|
| constructor_overload(x, y, width, height) | Rect 类的构造函数 |
Parameters:
| 名称 | 类型 | 描述 |
|---|---|---|
| 数字 | null | |
| 数字 | null | |
| 宽度 | 数字 | null |
| 高度 | 数字 | null |
Result:
getWidth
| 名称 | 描述 |
|---|---|
| getWidth() | 获取或设置尺寸的宽度 |
Result:
setWidth
| 名称 | 描述 |
|---|---|
| setWidth(value) | 获取或设置尺寸的宽度 |
Result:
getHeight
| 名称 | 描述 |
|---|---|
| getHeight() | 获取或设置尺寸的高度 |
Result:
setHeight
| 名称 | 描述 |
|---|---|
| setHeight(value) | 获取或设置尺寸的高度 |
Result:
getX
| 名称 | 描述 |
|---|---|
| getX() | 获取或设置大小的 x |
Result:
setX
| 名称 | 描述 |
|---|---|
| setX(value) | 获取或设置大小的 x |
Result:
getY
| 名称 | 描述 |
|---|---|
| getY() | 获取或设置大小的 y |
Result:
setY
| 名称 | 描述 |
|---|---|
| setY(value) | 获取或设置大小的 y |
Result:
getLeft
| 名称 | 描述 |
|---|---|
| getLeft() | 获取矩形的左侧 |
Result:
getRight
| 名称 | 描述 |
|---|---|
| getRight() | 获取矩形的右侧 |
Result:
getTop
| 名称 | 描述 |
|---|---|
| getTop() | 获取矩形的顶部 |
Result:
getBottom
| 名称 | 描述 |
|---|---|
| getBottom() | 获取矩形的底部 |
Result:
contains
| 名称 | 描述 |
|---|---|
| contains(x, y) | 如果给定点在矩形内部,则返回 true。 |
Parameters:
| 名称 | 类型 | 描述 |
|---|---|---|
| 数字 | null | |
| 数字 | null |
Result: boolean