NTScreenPos


@interface NTScreenPos : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

A screen position defined by x,y floating point numbers.

  • Checks if this object is equal to the specified object.

    Declaration

    Objective-C

    - (BOOL)isEqual:(id)object;

    Parameters

    object

    The reference object.

    Return Value

    True when objects are equal, false otherwise.

  • Returns the hash value of this object.

    Declaration

    Objective-C

    - (NSUInteger)hash;

    Return Value

    The hash value of this object.

  • Constructs a ScreenPos object. All coordinates will be 0.

    Declaration

    Objective-C

    - (id)init;
  • Constructs a ScreenPos object from 2 coordinates.

    Declaration

    Objective-C

    - (id)initWithX:(float)x y:(float)y;

    Parameters

    x

    The x coordinate.

    y

    The y coordinate.

  • Returns the x coordinate of this position.

    Declaration

    Objective-C

    - (float)getX;

    Return Value

    The x coordinate of this position.

  • Returns the y coordinate of this position.

    Declaration

    Objective-C

    - (float)getY;

    Return Value

    The y coordinate of this position.

  • Checks for equality between this and another screen position.

    Declaration

    Objective-C

    - (BOOL)isEqualInternal:(NTScreenPos *)p;

    Parameters

    p

    The other screen position.

    Return Value

    True if equal.

  • Returns the hash value of this object.

    Declaration

    Objective-C

    - (int)hashInternal;

    Return Value

    The hash value of this object.

  • Creates a string representation of this screen position, useful for logging.

    Declaration

    Objective-C

    - (NSString *)description;

    Return Value

    The string representation of this screen position.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;