Foxit PDF SDK
FSPoint Class Reference

Type definition for point class for integer.
More...

Inherits NSObject.

Instance Methods

(void) - add:y:
 Add values.
More...
 
(id) - init
 Constructor.

 
(id) - initWithOther:
 Constructor, with another object.
More...
 
(void) - reset
 Reset values to 0.
More...
 
(void) - set:y:
 Set values.
More...
 
(void) - subtract:y:
 Subtract values.
More...
 

Properties

int x
 Value x.

 
int y
 Value y.

 

Detailed Description

Type definition for point class for integer.

Method Documentation

◆ add:y:()

- (void) add: (int)  x
y: (int)  y 

Add values.

Parameters
[in]xValue to be added to x.
[in]yValue to be added to y.
Returns
None.

◆ initWithOther:()

- (id) initWithOther: (FSPoint*)  other

Constructor, with another object.

Parameters
[in]otherAnother object.

◆ reset()

- (void) reset

Reset values to 0.

Returns
None.

◆ set:y:()

- (void) set: (int)  x
y: (int)  y 

Set values.

Parameters
[in]xValue for x.
[in]yValue for y.
Returns
None.

◆ subtract:y:()

- (void) subtract: (int)  x
y: (int)  y 

Subtract values.

Parameters
[in]xValue to be subtracted from x.
[in]yValue to be subtracted from y.
Returns
None.