MSFScreenBounds
Objective-C
@interface MSFScreenBounds : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFScreenBounds : NSObject
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;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 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;Swift
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:(MSFScreenPos *)min max:(MSFScreenPos *)max;Swift
init!(min: MSFScreenPos!, max: MSFScreenPos!)Parameters
minThe minimum position.
maxThe maximum position.
-
Calculates the center screen position of this screen envelope object.
Return Value
The center postion if this screen envelope object.
-
Returns the width of the bounds object.
Declaration
Objective-C
- (float)getWidth;Swift
func getWidth() -> FloatReturn Value
The width on the bounds object.
-
Returns the height of the bounds object.
Declaration
Objective-C
- (float)getHeight;Swift
func getHeight() -> FloatReturn Value
The height on the bounds object.
-
Returns the minimum screen position.
Return Value
The minimum screen position.
-
Returns the maximum screen position of this screen envelope object.
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:(MSFScreenPos *)pos;Swift
func contains(_ pos: MSFScreenPos!) -> BoolParameters
posThe 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:(MSFScreenBounds *)bounds;Swift
func contains(_ bounds: MSFScreenBounds!) -> BoolParameters
boundsThe 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:(MSFScreenBounds *)bounds;Swift
func intersects(_ bounds: MSFScreenBounds!) -> BoolParameters
boundsThe 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:(MSFScreenBounds *)ScreenBounds;Swift
func isEqualInternal(_ ScreenBounds: MSFScreenBounds!) -> BoolParameters
ScreenBoundsThe other screen bounds object.
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 bounds object, useful for logging.
Declaration
Objective-C
- (NSString *)description;Swift
func description() -> String!Return Value
The string representation of this screen bounds object.
-
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()