Foxit PDF SDK
|
Inherits NSObject.
Instance Methods | |
(BOOL) | - contains: |
Check if current rectangle fully contains the other provided rectangle. That means to check if the other rectangle is fully inside current one. More... | |
(BOOL) | - containsPointF: |
Check if current rectangle fully contains the provided point. That means to check if the provided point is inside current rectangle. More... | |
(void) | - defalteWithValues:y: |
Decreases the width and height of the rectangle. More... | |
(void) | - deflate: |
Decreases the width and height of the rectangle. More... | |
(FSRectI *) | - getClosestRect |
Get a closest integer rectangle. More... | |
(FSRectI *) | - getInnerRect |
Convert to an inner integer rectangle. More... | |
(FSRectI *) | - getOuterRect |
Convert to an outer integer rectangle. More... | |
(float) | - height |
Get the height of the rectangle. More... | |
(void) | - inflate: |
Increases the width and height of the rectangle. More... | |
(void) | - inflateWithValues:y: |
Increases the width and height of the rectangle. More... | |
(id) | - init |
Construct an empty rectangle. | |
(void) | - initRect:y: |
Initialize the rectangle to a single point. More... | |
(id) | - initWithLeft1:bottom1:right1:top1: |
Construct a rectangle with left-bottom and right-top corners. More... | |
(id) | - initWithRect: |
Construct a rectangle with a rectangle object. More... | |
(void) | - intersect: |
Intersect with a rect. More... | |
(BOOL) | - isEmpty |
Verify whether the rect is empty. More... | |
(void) | - normalize |
Normalize the rect. Make sure left <= right, and bottom <= top. More... | |
(void) | - reset |
Reset rectangle, set coordinates to 0. More... | |
(void) | - transform: |
Transform a rectangle. The result rectangle is always normalized. More... | |
(void) | - translate:f: |
Translate rectangle. More... | |
(void) | - union: |
Union with a rect. More... | |
(void) | - updateRect:y: |
Update the rectangle to contain the specified point. More... | |
(float) | - width |
Get the width of the rectangle. More... | |
Class Methods | |
(FSRectF *) | + getBBox:nPoints: |
Get the bounding box of input points array. More... | |
Properties | |
float | bottom |
The bottom. | |
float | left |
The left. | |
float | right |
The right. | |
float | top |
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.
- (BOOL) contains: | (FSRectF*) | 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. |
- (int) containsPointF: | (FSPointF*) | point |
Check if current rectangle fully contains the provided point. That means to check if the provided point is inside current rectangle.
- (void) defalteWithValues: | (float) | x | |
y: | (float) | y | |
Decreases the width and height of the rectangle.
[in] | x | The number to deflate the left and right of the rectangle. |
[in] | y | The number to deflate the top and bottom of the rectangle. |
- (void) deflate: | (FSRectF*) | rt |
Decreases the width and height of the rectangle.
[in] | rt | The rectangle to deflate each side. |
Get the bounding box of input points array.
[in] | pPoints | The input points array. |
[in] | nPoints | The number of points in the array. |
- (FSRectI *) getClosestRect |
Get a closest integer rectangle.
- (FSRectI *) getInnerRect |
Convert to an inner integer rectangle.
- (FSRectI *) getOuterRect |
Convert to an outer integer rectangle.
- (float) height |
Get the height of the rectangle.
- (void) inflate: | (FSRectF*) | rt |
Increases the width and height of the rectangle.
[in] | rt | The rectangle to inflate each side. |
- (void) inflateWithValues: | (float) | x | |
y: | (float) | y | |
Increases the width and height of the rectangle.
[in] | x | The number to inflate the left and right of the rectangle. |
[in] | y | The number to inflate the top and bottom of the rectangle. |
- (void) initRect: | (float) | x | |
y: | (float) | 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. |
- (id) initWithLeft1: | (float) | left1 | |
bottom1: | (float) | bottom1 | |
right1: | (float) | right1 | |
top1: | (float) | 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. |
- (id) initWithRect: | (FSRectI*) | rect |
Construct a rectangle with a rectangle object.
[in] | rect | The input rectangle object. |
- (void) intersect: | (FSRectF*) | other_rect |
Intersect with a rect.
[in] | other_rect | The rect to intersect with. |
- (BOOL) isEmpty |
Verify whether the rect is empty.
- (void) normalize |
Normalize the rect. Make sure left <= right, and bottom <= top.
- (void) reset |
Reset rectangle, set coordinates to 0.
- (void) transform: | (FSMatrix2D*) | pMatrix |
Transform a rectangle. The result rectangle is always normalized.
[in] | pMatrix | The transformation matrix. |
- (void) translate: | (float) | e | |
f: | (float) | f | |
Translate rectangle.
[in] | e | Offset in X-axis. |
[in] | f | Offset in Y-axis. |
- (void) union: | (FSRectF*) | other_rect |
Union with a rect.
[in] | other_rect | The rect to union with. |
- (void) updateRect: | (float) | x | |
y: | (float) | 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. |
- (float) width |
Get the width of the rectangle.