NTScreenBounds


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

A container class that defines a bounding box on the screen using minimum and maximum screen positions.

  • 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 an empty ScreenBounds object. The coordinates of the minimum position will be set to positive infinity and the coordinates of the maximum position will be set to negative infinity.

    Declaration

    Objective-C

    - (id)init;
  • Constructs a ScreenBounds object from a minimum and maximum position. If a coordinate of the minimum positon is larger than the same coordinate of the maximum position then those coordinates will be swapped.

    Declaration

    Objective-C

    - (id)initWithMin:(NTScreenPos *)min max:(NTScreenPos *)max;

    Parameters

    min

    The minimum position.

    max

    The maximum position.

  • Calculates the center screen position of this screen envelope object.

    Declaration

    Objective-C

    - (NTScreenPos *)getCenter;

    Return Value

    The center postion if this screen envelope object.

  • Returns the width of the bounds object.

    Declaration

    Objective-C

    - (float)getWidth;

    Return Value

    The width on the bounds object.

  • Returns the height of the bounds object.

    Declaration

    Objective-C

    - (float)getHeight;

    Return Value

    The height on the bounds object.

  • Returns the minimum screen position.

    Declaration

    Objective-C

    - (NTScreenPos *)getMin;

    Return Value

    The minimum screen position.

  • Returns the maximum screen position of this screen envelope object.

    Declaration

    Objective-C

    - (NTScreenPos *)getMax;

    Return Value

    The maximum screen position of this screen envelope object.

  • Tests whether this screen bounds object contains a screen position.

    Declaration

    Objective-C

    - (BOOL)containsPos:(NTScreenPos *)pos;

    Parameters

    pos

    The screen position.

    Return Value

    True if this screen bounds object contains the screen position.

  • Tests whether this screen bounds object contains a another screen bounds object.

    Declaration

    Objective-C

    - (BOOL)containsBounds:(NTScreenBounds *)bounds;

    Parameters

    bounds

    The other screen bounds object.

    Return Value

    True if this screen bounds object contains the other screen bounds object.

  • Tests whether this screen bounds object intersects with a another screen bounds object.

    Declaration

    Objective-C

    - (BOOL)intersects:(NTScreenBounds *)bounds;

    Parameters

    bounds

    The other screen bounds object.

    Return Value

    True if this screen bounds object intersects with the other screen bounds object.

  • Checks for equality between this and another screen bounds object.

    Declaration

    Objective-C

    - (BOOL)isEqualInternal:(NTScreenBounds *)ScreenBounds;

    Parameters

    ScreenBounds

    The other screen bounds object.

    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 bounds object, useful for logging.

    Declaration

    Objective-C

    - (NSString *)description;

    Return Value

    The string representation of this screen bounds object.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;