|
Foxit PDF SDK
|
Inherits FoxitPDFSDKPython2._object.
Public Member Functions | |
| def | RectI () |
| Construct a rect not initialized. | |
| def | RectI (left1, top1, right1, bottom1) |
| Construct a rect with left-top and right bottom corners. More... | |
| def | Contains (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... | |
| def | Contains (x, y) |
| Check if current rectangle contains the provided point. That means to check if the provided point is inside current one. More... | |
| def | Height () |
| Get the height of the rect. More... | |
| def | Intersect (src) |
| Intersect with a rect. More... | |
| def | Intersect (left1, top1, right1, bottom1) |
| Intersect with a rect. More... | |
| def | IsEmpty () |
| Verify whether the rect is empty. More... | |
| def | Normalize () |
| Normalize the rect. Make sure left <= right, top <= bottom. More... | |
| def | Offset (dx, dy) |
| Shift the coordinates by delta value of x and y directions. More... | |
| def | Union (other_rect) |
| Union with a rect. More... | |
| def | Valid () |
| Check if current rectangle is valid. More... | |
| def | Width () |
| Get the width of the rect. More... | |
Static Public Attributes | |
| bottom = _fsdk.RectI_bottom | |
| The bottom. | |
| left = _fsdk.RectI_left | |
| The left. | |
| right = _fsdk.RectI_right | |
| The right. | |
| top = _fsdk.RectI_top | |
| The top. | |
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.
| FoxitPDFSDKPython2.RectI.RectI | ( | left1, | |
| top1, | |||
| right1, | |||
| 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. |
| def FoxitPDFSDKPython2.RectI.Contains | ( | 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. |
| def FoxitPDFSDKPython2.RectI.Contains | ( | x, | |
| 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. |
| def FoxitPDFSDKPython2.RectI.Height | ( | ) |
Get the height of the rect.
| def FoxitPDFSDKPython2.RectI.Intersect | ( | src | ) |
Intersect with a rect.
| [in] | src | The rect to intersect with. |
| def FoxitPDFSDKPython2.RectI.Intersect | ( | left1, | |
| top1, | |||
| right1, | |||
| 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. |
| def FoxitPDFSDKPython2.RectI.IsEmpty | ( | ) |
Verify whether the rect is empty.
| def FoxitPDFSDKPython2.RectI.Normalize | ( | ) |
Normalize the rect. Make sure left <= right, top <= bottom.
| def FoxitPDFSDKPython2.RectI.Offset | ( | dx, | |
| 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. |
| def FoxitPDFSDKPython2.RectI.Union | ( | other_rect | ) |
Union with a rect.
| [in] | other_rect | The rect to union with. |
| def FoxitPDFSDKPython2.RectI.Valid | ( | ) |
Check if current rectangle is valid.
| def FoxitPDFSDKPython2.RectI.Width | ( | ) |
Get the width of the rect.