HDMarqueeAction.h 896 Bytes
Newer Older
Han Ruisong's avatar
Han Ruisong committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//
//  HDMarqueeAction.h
//  HDMarqueeTool
//
//  Created by zwl on 2020/3/10.
//  Copyright © 2020 zwl. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class HDMarqueeActionPosition;

///跑马灯动作
@interface HDMarqueeAction : NSObject

Hanruisong's avatar
Hanruisong committed
16
17
18
/**
 *  @brief 持续时间
 */
Han Ruisong's avatar
Han Ruisong committed
19
20
@property(nonatomic,assign)CGFloat duration;

Hanruisong's avatar
Hanruisong committed
21
22
23
/**
 *  @brief 动作开始时坐标位置
 */
Han Ruisong's avatar
Han Ruisong committed
24
25
@property(nonatomic,strong,readonly)HDMarqueeActionPosition * startPostion;

Hanruisong's avatar
Hanruisong committed
26
27
28
/**
 *  @brief 动作结束时坐标位置
 */
Han Ruisong's avatar
Han Ruisong committed
29
30
31
32
33
34
35
@property(nonatomic,strong,readonly)HDMarqueeActionPosition * endPostion;

@end

///用于记录每次的位置
@interface HDMarqueeActionPosition : NSObject

Hanruisong's avatar
Hanruisong committed
36
37
38
/**
 *  @brief 坐标位置,取值范围0 - 1,例如(0.5,0.5)
 */
Han Ruisong's avatar
Han Ruisong committed
39
40
@property(nonatomic,assign)CGPoint pos;

Hanruisong's avatar
Hanruisong committed
41
42
43
/**
 *  @brief 透明度,取值范围0 - 1
 */
Han Ruisong's avatar
Han Ruisong committed
44
45
46
@property(nonatomic,assign)CGFloat alpha;

@end