38 lines
1.1 KiB
Objective-C
Executable File
38 lines
1.1 KiB
Objective-C
Executable File
//
|
|
// 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
|