|
Foxit PDF SDK
|
Public 成员函数 | |
| RectI () | |
| 构造一个未初始化的矩形。 | |
| RectI (int left1, int top1, int right1, int bottom1) | |
| 用左上角和右下角构造矩形。 更多... | |
| boolean | contains (int x, int y) |
| 检查当前矩形是否包含提供的点。 即检查提供的点是否在当前矩形内部。 更多... | |
| boolean | contains (RectI other_rect) |
| 检查当前矩形是否完全包含其他提供的矩形。 即检查其他矩形是否完全在当前矩形内部。 更多... | |
| int | getBottom () |
| Get 下边界 更多... | |
| int | getLeft () |
| Get 左边界 更多... | |
| int | getRight () |
| Get 右边界 更多... | |
| int | getTop () |
| Get 上边界 更多... | |
| int | height () |
| 获取矩形的高度。 更多... | |
| void | intersect (int left1, int top1, int right1, int bottom1) |
| 与矩形求交集。 更多... | |
| void | intersect (RectI src) |
| 与矩形求交集。 更多... | |
| boolean | isEmpty () |
| 验证矩形是否为空。 更多... | |
| void | normalize () |
| 规范化矩形。确保left <= right,top <= bottom。 更多... | |
| void | offset (int dx, int dy) |
| 通过x和y方向的增量值移动坐标。 更多... | |
| void | setBottom (int value) |
| Set 下边界 更多... | |
| void | setLeft (int value) |
| Set 左边界 更多... | |
| void | setRight (int value) |
| Set 右边界 更多... | |
| void | setTop (int value) |
| Set 上边界 更多... | |
| void | union (RectI other_rect) |
| 与矩形求并集。 更多... | |
| boolean | valid () |
| 检查当前矩形是否有效。 更多... | |
| int | width () |
| 获取矩形的宽度。 更多... | |
表示Windows坐标系整数矩形的结构。 定义为等效于Windows RECT结构,具有一些便利的函数成员。 此结构使用Windows空间,其中Y轴从上到下运行。
| com.foxit.sdk.common.fxcrt.RectI.RectI | ( | int | left1, |
| int | top1, | ||
| int | right1, | ||
| int | bottom1 | ||
| ) |
用左上角和右下角构造矩形。
| [in] | left1 | 左边界。 |
| [in] | top1 | 上边界。 |
| [in] | right1 | 右边界。 |
| [in] | bottom1 | 下边界。 |
| boolean com.foxit.sdk.common.fxcrt.RectI.contains | ( | int | x, |
| int | y | ||
| ) |
检查当前矩形是否包含提供的点。 即检查提供的点是否在当前矩形内部。
| [in] | x | 提供的点的x坐标。 |
| [in] | y | 提供的点的y坐标。 |
| boolean com.foxit.sdk.common.fxcrt.RectI.contains | ( | RectI | other_rect | ) |
检查当前矩形是否完全包含其他提供的矩形。 即检查其他矩形是否完全在当前矩形内部。
| [in] | other_rect | 其他提供的矩形。 |
| com.foxit.sdk.common.fxcrt.RectI.getBottom | ( | ) |
Get 下边界
| com.foxit.sdk.common.fxcrt.RectI.getLeft | ( | ) |
Get 左边界
| com.foxit.sdk.common.fxcrt.RectI.getRight | ( | ) |
Get 右边界
| com.foxit.sdk.common.fxcrt.RectI.getTop | ( | ) |
Get 上边界
| int com.foxit.sdk.common.fxcrt.RectI.height | ( | ) |
获取矩形的高度。
| void com.foxit.sdk.common.fxcrt.RectI.intersect | ( | int | left1, |
| int | top1, | ||
| int | right1, | ||
| int | bottom1 | ||
| ) |
与矩形求交集。
| [in] | left1 | 要求交集的矩形的左边界。 |
| [in] | top1 | 要求交集的矩形的上边界。 |
| [in] | right1 | 要求交集的矩形的右边界。 |
| [in] | bottom1 | 要求交集的矩形的下边界。 |
| void com.foxit.sdk.common.fxcrt.RectI.intersect | ( | RectI | src | ) |
与矩形求交集。
| [in] | src | 要求交集的矩形。 |
| boolean com.foxit.sdk.common.fxcrt.RectI.isEmpty | ( | ) |
验证矩形是否为空。
| void com.foxit.sdk.common.fxcrt.RectI.normalize | ( | ) |
规范化矩形。确保left <= right,top <= bottom。
| void com.foxit.sdk.common.fxcrt.RectI.offset | ( | int | dx, |
| int | dy | ||
| ) |
通过x和y方向的增量值移动坐标。
| [in] | dx | x方向的增量值。 |
| [in] | dy | y方向的增量值。 |
| com.foxit.sdk.common.fxcrt.RectI.setBottom | ( | int | value | ) |
Set 下边界
| [in] | value | 下边界 |
| com.foxit.sdk.common.fxcrt.RectI.setLeft | ( | int | value | ) |
Set 左边界
| [in] | value | 左边界 |
| com.foxit.sdk.common.fxcrt.RectI.setRight | ( | int | value | ) |
Set 右边界
| [in] | value | 右边界 |
| com.foxit.sdk.common.fxcrt.RectI.setTop | ( | int | value | ) |
Set 上边界
| [in] | value | 上边界 |
| void com.foxit.sdk.common.fxcrt.RectI.union | ( | RectI | other_rect | ) |
与矩形求并集。
| [in] | other_rect | 要求并集的矩形。 |
| boolean com.foxit.sdk.common.fxcrt.RectI.valid | ( | ) |
检查当前矩形是否有效。
| int com.foxit.sdk.common.fxcrt.RectI.width | ( | ) |
获取矩形的宽度。