Initial commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// M80AttributedLabelAttachment.h
|
||||
// M80AttributedLabel
|
||||
//
|
||||
// Created by amao on 13-8-31.
|
||||
// Copyright (c) 2013年 www.xiangwangfeng.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import "M80AttributedLabelDefines.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
void deallocCallback(void* ref);
|
||||
CGFloat ascentCallback(void *ref);
|
||||
CGFloat descentCallback(void *ref);
|
||||
CGFloat widthCallback(void* ref);
|
||||
|
||||
@interface M80AttributedLabelAttachment : NSObject
|
||||
@property (nonatomic,strong) id content;
|
||||
@property (nonatomic,assign) UIEdgeInsets margin;
|
||||
@property (nonatomic,assign) M80ImageAlignment alignment;
|
||||
@property (nonatomic,assign) CGFloat fontAscent;
|
||||
@property (nonatomic,assign) CGFloat fontDescent;
|
||||
@property (nonatomic,assign) CGSize maxSize;
|
||||
|
||||
|
||||
+ (M80AttributedLabelAttachment *)attachmentWith:(id)content
|
||||
margin:(UIEdgeInsets)margin
|
||||
alignment:(M80ImageAlignment)alignment
|
||||
maxSize:(CGSize)maxSize;
|
||||
|
||||
- (CGSize)boxSize;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user