-
Notifications
You must be signed in to change notification settings - Fork 511
Expand file tree
/
Copy pathPAGLayer.m
More file actions
148 lines (116 loc) · 3.31 KB
/
PAGLayer.m
File metadata and controls
148 lines (116 loc) · 3.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
// except in compliance with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// unless required by applicable law or agreed to in writing, software distributed under the
// license is distributed on an "as is" basis, without warranties or conditions of any kind,
// either express or implied. see the license for the specific language governing permissions
// and limitations under the license.
//
/////////////////////////////////////////////////////////////////////////////////////////////////
#import "PAGLayerImpl.h"
#import "private/PAGLayer+Internal.h"
@implementation PAGLayer
- (instancetype)initWithImpl:(id)impl {
self = [super init];
if (self) {
_impl = [impl retain];
}
return self;
}
- (PAGLayerType)layerType {
return (PAGLayerType)[_impl layerType];
}
- (NSString*)layerName {
return [(PAGLayerImpl*)_impl layerName];
}
- (id)impl {
return _impl;
}
- (CGAffineTransform)matrix {
return [(PAGLayerImpl*)_impl matrix];
}
- (void)setMatrix:(CGAffineTransform)matrix {
[(PAGLayerImpl*)_impl setMatrix:matrix];
}
- (void)resetMatrix {
[(PAGLayerImpl*)_impl resetMatrix];
}
- (CGAffineTransform)getTotalMatrix {
return [(PAGLayerImpl*)_impl getTotalMatrix];
}
- (BOOL)visible {
return [(PAGLayerImpl*)_impl visible];
}
- (void)setVisible:(BOOL)visible {
[(PAGLayerImpl*)_impl setVisible:visible];
}
- (NSInteger)editableIndex {
return [(PAGLayerImpl*)_impl editableIndex];
}
- (PAGComposition*)parent {
return [(PAGLayerImpl*)_impl parent];
}
- (NSArray<PAGMarker*>*)markers {
return [(PAGLayerImpl*)_impl markers];
}
- (int64_t)localTimeToGlobal:(int64_t)localTime {
return [(PAGLayerImpl*)_impl localTimeToGlobal:localTime];
}
- (int64_t)globalToLocalTime:(int64_t)globalTime {
return [(PAGLayerImpl*)_impl globalToLocalTime:globalTime];
}
- (int64_t)duration {
return [(PAGLayerImpl*)_impl duration];
}
- (float)frameRate {
return [(PAGLayerImpl*)_impl frameRate];
}
- (int64_t)startTime {
return [(PAGLayerImpl*)_impl startTime];
}
- (void)setStartTime:(int64_t)time {
[(PAGLayerImpl*)_impl setStartTime:time];
}
- (int64_t)currentTime {
return [(PAGLayerImpl*)_impl currentTime];
}
- (void)setCurrentTime:(int64_t)time {
[(PAGLayerImpl*)_impl setCurrentTime:time];
}
- (double)getProgress {
return [(PAGLayerImpl*)_impl getProgress];
}
- (void)setProgress:(double)value {
[(PAGLayerImpl*)_impl setProgress:value];
}
- (PAGLayer*)trackMatteLayer {
return [(PAGLayerImpl*)_impl trackMatteLayer];
}
- (CGRect)getBounds {
return [(PAGLayerImpl*)_impl getBounds];
}
- (BOOL)excludedFromTimeline {
return [(PAGLayerImpl*)_impl excludedFromTimeline];
}
- (void)setExcludedFromTimeline:(BOOL)value {
[(PAGLayerImpl*)_impl setExcludedFromTimeline:value];
}
- (void)setAlpha:(float)value {
[(PAGLayerImpl*)_impl setAlpha:value];
}
- (float)alpha {
return [(PAGLayerImpl*)_impl alpha];
}
- (void)dealloc {
[_impl release];
[super dealloc];
}
@end