YMKScreenRect

@interface YMKScreenRect : NSObject

A rectangle on the device screen.

Summary

Class methods

+ (nonnull YMKScreenRect *)screenRectWithTopLeft:(nonnull YMKScreenPoint *)topLeft
                                     bottomRight:(nonnull YMKScreenPoint *)bottomRight;

Properties

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

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

Class methods

screenRectWithTopLeft:bottomRight:

+ (nonnull YMKScreenRect *)screenRectWithTopLeft:(nonnull YMKScreenPoint *)topLeft
                                     bottomRight:(nonnull YMKScreenPoint *)bottomRight;


Properties

topLeft

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

The position of the top left corner of the rectangle.


bottomRight

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

The position of the bottom right corner of the rectangle.