|
Foxit PDF SDK
|
Public Member Functions | |
| RectI () | |
| Construct a rect not initialized. | |
| RectI (int left1, int top1, int right1, int bottom1) | |
| Construct a rect with left-top and right bottom corners. More... | |
| boolean | contains (RectI other_rect) |
| Check if current rectangle fully contains the other provided rectangle. That means to check if the other rectangle is fully inside current one. More... | |
| boolean | contains (int x, int y) |
| Check if current rectangle contains the provided point. That means to check if the provided point is inside current one. More... | |
| int | getBottom () |
| Get the bottom. More... | |
| int | getLeft () |
| Get the left. More... | |
| int | getRight () |
| Get the right. More... | |
| int | getTop () |
| Get the top. More... | |
| int | height () |
| Get the height of the rect. More... | |
| void | intersect (RectI src) |
| Intersect with a rect. More... | |
| void | intersect (int left1, int top1, int right1, int bottom1) |
| Intersect with a rect. More... | |
| boolean | isEmpty () |
| Verify whether the rect is empty. More... | |
| void | normalize () |
| Normalize the rect. Make sure left <= right, top <= bottom. More... | |
| void | offset (int dx, int dy) |
| Shift the coordinates by delta value of x and y directions. More... | |
| void | setBottom (int value) |
| Set the bottom. More... | |
| void | setLeft (int value) |
| Set the left. More... | |
| void | setRight (int value) |
| Set the right. More... | |
| void | setTop (int value) |
| Set the top. More... | |
| void | union (RectI other_rect) |
| Union with a rect. More... | |
| boolean | valid () |
| Check if current rectangle is valid. More... | |
| int | width () |
| Get the width of the rect. More... | |
The struct represents integer rectangle for Windows coordinates. Defined as equivalent of Windows RECT structure, with some convenient function members. This structure use Windows space where Y axis runs from top to bottom.
| com.foxit.sdk.common.fxcrt.RectI.RectI | ( | int | left1, |
| int | top1, | ||
| int | right1, | ||
| int | bottom1 | ||
| ) |
Construct a rect with left-top and right bottom corners.
| [in] | left1 | The left. |
| [in] | top1 | The top. |
| [in] | right1 | The right. |
| [in] | bottom1 | The bottom. |
| boolean com.foxit.sdk.common.fxcrt.RectI.contains | ( | RectI | other_rect | ) |
Check if current rectangle fully contains the other provided rectangle. That means to check if the other rectangle is fully inside current one.
| [in] | other_rect | The other provided rect. |
| boolean com.foxit.sdk.common.fxcrt.RectI.contains | ( | int | x, |
| int | y | ||
| ) |
Check if current rectangle contains the provided point. That means to check if the provided point is inside current one.
| [in] | x | The x coordinate of the provided point. |
| [in] | y | The y coordinate of the provided point. |
| com.foxit.sdk.common.fxcrt.RectI.getBottom | ( | ) |
Get the bottom.
| com.foxit.sdk.common.fxcrt.RectI.getLeft | ( | ) |
Get the left.
| com.foxit.sdk.common.fxcrt.RectI.getRight | ( | ) |
Get the right.
| com.foxit.sdk.common.fxcrt.RectI.getTop | ( | ) |
Get the top.
| int com.foxit.sdk.common.fxcrt.RectI.height | ( | ) |
Get the height of the rect.
| void com.foxit.sdk.common.fxcrt.RectI.intersect | ( | RectI | src | ) |
Intersect with a rect.
| [in] | src | The rect to intersect with. |
| void com.foxit.sdk.common.fxcrt.RectI.intersect | ( | int | left1, |
| int | top1, | ||
| int | right1, | ||
| int | bottom1 | ||
| ) |
Intersect with a rect.
| [in] | left1 | The left of the rect to intersect with. |
| [in] | top1 | The top of the rect to intersect with. |
| [in] | right1 | The right of the rect to intersect with. |
| [in] | bottom1 | The bottom of the rect to intersect with. |
| boolean com.foxit.sdk.common.fxcrt.RectI.isEmpty | ( | ) |
Verify whether the rect is empty.
| void com.foxit.sdk.common.fxcrt.RectI.normalize | ( | ) |
Normalize the rect. Make sure left <= right, top <= bottom.
| void com.foxit.sdk.common.fxcrt.RectI.offset | ( | int | dx, |
| int | dy | ||
| ) |
Shift the coordinates by delta value of x and y directions.
| [in] | dx | The delta value of x-direction. |
| [in] | dy | The delta value of y-direction. |
| com.foxit.sdk.common.fxcrt.RectI.setBottom | ( | int | value | ) |
Set the bottom.
| [in] | value | The bottom. |
| com.foxit.sdk.common.fxcrt.RectI.setLeft | ( | int | value | ) |
Set the left.
| [in] | value | The left. |
| com.foxit.sdk.common.fxcrt.RectI.setRight | ( | int | value | ) |
Set the right.
| [in] | value | The right. |
| com.foxit.sdk.common.fxcrt.RectI.setTop | ( | int | value | ) |
Set the top.
| [in] | value | The top. |
| void com.foxit.sdk.common.fxcrt.RectI.union | ( | RectI | other_rect | ) |
Union with a rect.
| [in] | other_rect | The rect to union with. |
| boolean com.foxit.sdk.common.fxcrt.RectI.valid | ( | ) |
Check if current rectangle is valid.
| int com.foxit.sdk.common.fxcrt.RectI.width | ( | ) |
Get the width of the rect.