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.

41 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