MMKScreenRect

@interface MMKScreenRect : NSObject

A rectangle on the device screen.

Summary

Class methods

+ (nonnull MMKScreenRect *)screenRectWithTopLeft:(nonnull MMKScreenPoint *)topLeft
                                     bottomRight:(nonnull MMKScreenPoint *)bottomRight;

Properties

@property (nonatomic, readonly, nonnull) MMKScreenPoint *topLeft;
The position of the top left corner of the rectangle

@property (nonatomic, readonly, nonnull) MMKScreenPoint *bottomRight;
The position of the bottom right corner of the rectangle

Class methods

screenRectWithTopLeft:bottomRight:

+ (nonnull MMKScreenRect *)screenRectWithTopLeft:(nonnull MMKScreenPoint *)topLeft
                                     bottomRight:(nonnull MMKScreenPoint *)bottomRight;


Properties

topLeft

@property (nonatomic, readonly, nonnull) MMKScreenPoint *topLeft;

The position of the top left corner of the rectangle.


bottomRight

@property (nonatomic, readonly, nonnull) MMKScreenPoint *bottomRight;

The position of the bottom right corner of the rectangle.