MSFScreenPos
Objective-C
@interface MSFScreenPos : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFScreenPos : NSObject
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;Swift
func isEqual(_ object: Any!) -> BoolParameters
objectThe reference object.
Return Value
True when objects are equal, false otherwise.
-
Returns the hash value of this object.
Declaration
Objective-C
- (NSUInteger)hash;Swift
func hash() -> UIntReturn Value
The hash value of this object.
-
Constructs a ScreenPos object. All coordinates will be 0.
Declaration
Objective-C
- (id)init;Swift
init!() -
Constructs a ScreenPos object from 2 coordinates.
Declaration
Objective-C
- (id)initWithX:(float)x y:(float)y;Swift
init!(x: Float, y: Float)Parameters
xThe x coordinate.
yThe y coordinate.
-
Returns the x coordinate of this position.
Declaration
Objective-C
- (float)getX;Swift
func getX() -> FloatReturn Value
The x coordinate of this position.
-
Returns the y coordinate of this position.
Declaration
Objective-C
- (float)getY;Swift
func getY() -> FloatReturn Value
The y coordinate of this position.
-
Checks for equality between this and another screen position.
Declaration
Objective-C
- (BOOL)isEqualInternal:(MSFScreenPos *)p;Swift
func isEqualInternal(_ p: MSFScreenPos!) -> BoolParameters
pThe other screen position.
Return Value
True if equal.
-
Returns the hash value of this object.
Declaration
Objective-C
- (int)hashInternal;Swift
func hashInternal() -> Int32Return Value
The hash value of this object.
-
Creates a string representation of this screen position, useful for logging.
Declaration
Objective-C
- (NSString *)description;Swift
func description() -> String!Return Value
The string representation of this screen position.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()