You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

40 lines
1.1 KiB

//
// TYDrawStorage.h
// TYAttributedLabelDemo
//
// Created by tanyang on 15/4/8.
// Copyright (c) 2015年 tanyang. All rights reserved.
//
#import "TYTextStorageProtocol.h"
@interface TYDrawStorage : NSObject<TYDrawStorageProtocol>
@property (nonatomic, assign) NSInteger tag; // 标识
@property (nonatomic, assign) NSRange range; // 文本范围
@property (nonatomic, assign) NSRange realRange;
@property (nonatomic, assign) UIEdgeInsets margin; // 图片四周间距
@property (nonatomic, assign) CGSize size; // 绘画物大小
@property (nonatomic, assign) TYDrawAlignment drawAlignment; // 对齐方式
/**
* 获取绘画区域上行高度(默认实现)
*/
- (CGFloat)getDrawRunAscentHeight;
/**
* 获取绘画区域下行高度 默认实现为0(一般不需要改写)
*/
- (CGFloat)getDrawRunDescentHeight;
/**
* 获取绘画区域宽度(默认实现)
*/
- (CGFloat)getDrawRunWidth;
/**
* 释放内存 (一般不需要 已注释 需要在打开)
*/
//- (void)DrawRunDealloc;
@end