MLKWritingArea
@interface MLKWritingArea : NSObject
书写区域的属性。
书写区域是屏幕上可供用户绘制墨水的区域。
-
写入区域宽度,单位与
StrokePoint
中使用的单位相同。声明
Objective-C
@property (nonatomic, readonly) float width;
-
写入区域高度,单位与
StrokePoint
中使用的单位相同。声明
Objective-C
@property (nonatomic, readonly) float height;
-
不可用。请改用
init(width:height:)
。声明
Objective-C
- (nonnull instancetype)init;
-
初始化并返回具有指定尺寸的
WritingArea
。这两个尺寸应使用相同的单位,并且必须与
Ink
和相关资源中使用的单位一致 对象的操作。声明
Objective-C
- (nonnull instancetype)initWithWidth:(float)width height:(float)height;
参数
width
书写区域的宽度。
height
书写区域的高度。