|
Foxit PDF SDK
9.1
|
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) | - contains:y: |
| (void) | - dealloc |
| (void) | - deflate: |
| (void) | - deflate:bottom:right:top: |
| (void) | - deflate:y: |
| (FSRectI *) | - getClosestRect |
| Get a closest integer rectangle. More... | |
| (void *) | - getCptr |
| (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: |
| (void) | - inflate:bottom:right:top: |
| (void) | - inflate:y: |
| (id) | - init |
| Construct an empty rectangle. More... | |
| (void) | - initRect:y: |
| Initialize the rectangle to a single point. More... | |
| (id) | - initWithCptr:swigOwnCObject: |
| (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... | |
| (BOOL) | + IsRectAdjacent:rect2:alignmentTolerance:distanceTolerance:direction: |
| Check if a rectangle is adjacent to the other rectangle in the horizontal or vertical direction. More... | |
Protected Attributes | |
| BOOL | swigCMemOwn |
| void * | swigCPtr |
Properties | |
| float | bottom |
| The bottom. More... | |
| float | left |
| The left. More... | |
| float | right |
| The right. More... | |
| float | top |
| The top. More... | |
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. |
| - (BOOL) contains: | (float) | x | |
| y: | (float) | y | |
| - (void) dealloc |
| - (void) deflate: | (FSRectF *) | rt |
| - (void) deflate: | (float) | left | |
| bottom: | (float) | bottom | |
| right: | (float) | right | |
| top: | (float) | top | |
| - (void) deflate: | (float) | x | |
| y: | (float) | y | |
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.
| - (void*) getCptr |
| - (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 |
| - (void) inflate: | (float) | left | |
| bottom: | (float) | bottom | |
| right: | (float) | right | |
| top: | (float) | top | |
| - (void) inflate: | (float) | x | |
| y: | (float) | y | |
| - (id) init |
Construct an empty 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) initWithCptr: | (void *) | cptr | |
| swigOwnCObject: | (BOOL) | ownCObject | |
| - (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.
| + (BOOL) IsRectAdjacent: | (FSRectF*) | rect1 | |
| rect2: | (FSRectF*) | rect2 | |
| alignmentTolerance: | (float) | alignmentTolerance | |
| distanceTolerance: | (float) | distanceTolerance | |
| direction: | (int) | direction | |
Check if a rectangle is adjacent to the other rectangle in the horizontal or vertical direction.
| [in] | rect1 | A rectangle which is to be check if adjacent to parameter rect2. |
| [in] | rect2 | The other rectangle. |
| [in] | alignmentTolerance | Alignment tolerance to be allowed between two rectangles. Measured in coordinate units, and should be non-negative value. |
| [in] | distanceTolerance | Distance tolerance to be allowed between two rectangles. Measured in coordinate units, and should be non-negative value. |
| [in] | direction | Specify a direction to judge adjacent state between two rectangles:
|
| - (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.
|
protected |
|
protected |
|
readwritenonatomicassign |
The bottom.
|
readwritenonatomicassign |
The left.
|
readwritenonatomicassign |
The right.
|
readwritenonatomicassign |
The top.