Foxit PDF SDK
|
Inherits FoxitPDFSDKPython2._object.
Public Member Functions | |
def | RectF () |
Construct an empty rectangle. | |
def | RectF (left1, bottom1, right1, top1) |
Construct a rectangle with left-bottom and right-top corners. More... | |
def | RectF (rect) |
Construct a rectangle with a rectangle object. 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 fully contains the provided point. That means to check if the provided point is inside current rectangle. More... | |
def | Deflate (left, bottom, right, top) |
Decreases the width and height of the rectangle. More... | |
def | Deflate (rt) |
Decreases the width and height of the rectangle. More... | |
def | GetClosestRect () |
Get a closest integer rectangle. More... | |
def | GetInnerRect () |
Convert to an inner integer rectangle. More... | |
def | GetOutterRect () |
Convert to an outer integer rectangle. More... | |
def | Height () |
Get the height of the rectangle. More... | |
def | Inflate (left, bottom, right, top) |
Increases the width and height of the rectangle. More... | |
def | Inflate (rt) |
Increases the width and height of the rectangle. More... | |
def | InitRect (x, y) |
Initialize the rectangle to a single point. More... | |
def | Intersect (other_rect) |
Intersect with a rect. More... | |
def | IsEmpty () |
Verify whether the rect is empty. More... | |
def | Normalize () |
Normalize the rect. Make sure left <= right, and bottom <= top. More... | |
def | Reset () |
Reset rectangle, set coordinates to 0. More... | |
def | Transform (pMatrix) |
Transform a rectangle. The result rectangle is always normalized. More... | |
def | Translate (e, f) |
Translate rectangle. More... | |
def | Union (other_rect) |
Union with a rect. More... | |
def | UpdateRect (x, y) |
Update the rectangle to contain the specified point. More... | |
def | Width () |
Get the width of the rectangle. More... | |
Static Public Member Functions | |
def | GetBBox (pPoints, nPoints) |
Get the bounding box of input points array. More... | |
Static Public Attributes | |
bottom = _swig_property(_fsdk.RectF_bottom_get, _fsdk.RectF_bottom_set) | |
The bottom. | |
left = _swig_property(_fsdk.RectF_left_get, _fsdk.RectF_left_set) | |
The left. | |
right = _swig_property(_fsdk.RectF_right_get, _fsdk.RectF_right_set) | |
The right. | |
top = _swig_property(_fsdk.RectF_top_get, _fsdk.RectF_top_set) | |
The top. | |
A float-point coordination rectangle. A normalized float-point rectangle always has top larger than bottom, which is the opposite of Windows rectangle.
FoxitPDFSDKPython2.RectF.RectF | ( | left1, | |
bottom1, | |||
right1, | |||
top1 | |||
) |
Construct a rectangle with left-bottom and right-top corners.
[in] | left1 | The x-coordinate of the input left-bottom corner. |
[in] | bottom1 | The y-coordinate of the input left-bottom corner. |
[in] | right1 | The x-coordinate of the input right-top corner. |
[in] | top1 | The y-coordinate of the input right-top corner. |
FoxitPDFSDKPython2.RectF.RectF | ( | rect | ) |
Construct a rectangle with a rectangle object.
[in] | rect | The input rectangle object. |
def FoxitPDFSDKPython2.RectF.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.RectF.Contains | ( | x, | |
y | |||
) |
Check if current rectangle fully contains the provided point. That means to check if the provided point is inside current rectangle.
[in] | x | The x coordinate of the provided point. |
[in] | y | The y coordinate of the provided point. |
def FoxitPDFSDKPython2.RectF.Deflate | ( | left, | |
bottom, | |||
right, | |||
top | |||
) |
Decreases the width and height of the rectangle.
[in] | left | The number to deflate the left of the rectangle. |
[in] | bottom | The number to deflate the bottom of the rectangle. |
[in] | right | The number to deflate the right of the rectangle. |
[in] | top | The number to deflate the top of the rectangle. |
def FoxitPDFSDKPython2.RectF.Deflate | ( | rt | ) |
Decreases the width and height of the rectangle.
[in] | rt | The rectangle to deflate each side. |
|
static |
Get the bounding box of input points array.
[in] | pPoints | The input points array. |
[in] | nPoints | The number of points in the array. |
def FoxitPDFSDKPython2.RectF.GetClosestRect | ( | ) |
Get a closest integer rectangle.
def FoxitPDFSDKPython2.RectF.GetInnerRect | ( | ) |
Convert to an inner integer rectangle.
def FoxitPDFSDKPython2.RectF.GetOutterRect | ( | ) |
Convert to an outer integer rectangle.
def FoxitPDFSDKPython2.RectF.Height | ( | ) |
Get the height of the rectangle.
def FoxitPDFSDKPython2.RectF.Inflate | ( | left, | |
bottom, | |||
right, | |||
top | |||
) |
Increases the width and height of the rectangle.
[in] | left | The number to inflate the left of the rectangle. |
[in] | bottom | The number to inflate the bottom of the rectangle. |
[in] | right | The number to inflate the right of the rectangle. |
[in] | top | The number to inflate the top of the rectangle. |
def FoxitPDFSDKPython2.RectF.Inflate | ( | rt | ) |
Increases the width and height of the rectangle.
[in] | rt | The rectangle to inflate each side. |
def FoxitPDFSDKPython2.RectF.InitRect | ( | x, | |
y | |||
) |
Initialize the rectangle to a single point.
[in] | x | The x-coordinate of the input point. |
[in] | y | The y-coordinate of the input point. |
def FoxitPDFSDKPython2.RectF.Intersect | ( | other_rect | ) |
Intersect with a rect.
[in] | other_rect | The rect to intersect with. |
def FoxitPDFSDKPython2.RectF.IsEmpty | ( | ) |
Verify whether the rect is empty.
def FoxitPDFSDKPython2.RectF.Normalize | ( | ) |
Normalize the rect. Make sure left <= right, and bottom <= top.
def FoxitPDFSDKPython2.RectF.Reset | ( | ) |
Reset rectangle, set coordinates to 0.
def FoxitPDFSDKPython2.RectF.Transform | ( | pMatrix | ) |
Transform a rectangle. The result rectangle is always normalized.
[in] | pMatrix | The transformation matrix. |
def FoxitPDFSDKPython2.RectF.Translate | ( | e, | |
f | |||
) |
Translate rectangle.
[in] | e | Offset in X-axis. |
[in] | f | Offset in Y-axis. |
def FoxitPDFSDKPython2.RectF.Union | ( | other_rect | ) |
Union with a rect.
[in] | other_rect | The rect to union with. |
def FoxitPDFSDKPython2.RectF.UpdateRect | ( | x, | |
y | |||
) |
Update the rectangle to contain the specified point.
[in] | x | The x-coordinate of the input point. |
[in] | y | The y-coordinate of the input point. |
def FoxitPDFSDKPython2.RectF.Width | ( | ) |
Get the width of the rectangle.