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 *) | - getCptr |
(int) | - height |
Get the height of the rect. More... | |
(id) | - init |
Construct a rect not initialized. More... | |
(id) | - initWithCptr:swigOwnCObject: |
(id) | - initWithLeft1:top1:right1:bottom1: |
Construct a rect with left-top and right bottom corners. More... | |
(void) | - intersect: |
Intersect with a rect. More... | |
(void) | - intersect:top1:right1:bottom1: |
(BOOL) | - isEmpty |
Verify whether the rect is empty. More... | |
(void) | - normalize |
Normalize the rect. Make sure left <= right, top <= bottom. More... | |
(void) | - offset:dy: |
Shift the coordinates by delta value of x and y directions. More... | |
(void) | - union: |
Union with a rect. More... | |
(BOOL) | - valid |
Check if current rectangle is valid. More... | |
(int) | - width |
Get the width of the rect. More... | |
Protected Attributes | |
BOOL | swigCMemOwn |
void * | swigCPtr |
Properties | |
int | bottom |
The bottom. More... | |
int | left |
The left. More... | |
int | right |
The right. More... | |
int | top |
The top. 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.
- (BOOL) contains: | (FSRectI*) | 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: | (int) | x | |
y: | (int) | y | |
- (void) dealloc |
- (void*) getCptr |
- (int) height |
Get the height of the rect.
- (id) init |
Construct a rect not initialized.
- (id) initWithCptr: | (void *) | cptr | |
swigOwnCObject: | (BOOL) | ownCObject | |
- (id) initWithLeft1: | (int) | left1 | |
top1: | (int) | top1 | |
right1: | (int) | right1 | |
bottom1: | (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. |
- (void) intersect: | (FSRectI*) | src |
Intersect with a rect.
[in] | src | The rect to intersect with. |
- (void) intersect: | (int) | left1 | |
top1: | (int) | top1 | |
right1: | (int) | right1 | |
bottom1: | (int) | bottom1 | |
- (BOOL) isEmpty |
Verify whether the rect is empty.
- (void) normalize |
Normalize the rect. Make sure left <= right, top <= bottom.
- (void) offset: | (int) | dx | |
dy: | (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. |
- (void) union: | (FSRectI*) | other_rect |
Union with a rect.
[in] | other_rect | The rect to union with. |
- (BOOL) valid |
Check if current rectangle is valid.
- (int) width |
Get the width of the rect.
|
protected |
|
protected |
|
readwritenonatomicassign |
The bottom.
|
readwritenonatomicassign |
The left.
|
readwritenonatomicassign |
The right.
|
readwritenonatomicassign |
The top.