PAGLayer Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | PAGLayer.h |
– matrix
A matrix object containing values that alter the scaling, rotation, and translation of the layer. Altering it does not change the animation matrix, and it will be concatenated to current animation matrix for displaying.
- (CGAffineTransform)matrixDeclared In
PAGLayer.h
– parent
Indicates the PAGComposition instance that contains this PAGLayer instance.
- (PAGComposition *)parentDeclared In
PAGLayer.h
– markers
Returns the markers of current PAGLayer.
- (NSArray<PAGMarker*> *)markersDeclared In
PAGLayer.h
– localTimeToGlobal:
Converts the time from the PAGLayer’s (local) timeline to the PAGSurface (global) timeline. The time is in microseconds.
- (int64_t)localTimeToGlobal:(int64_t)localTimeDeclared In
PAGLayer.h
– globalToLocalTime:
Converts the time from the PAGSurface (global) to the PAGLayer’s (local) timeline timeline. The time is in microseconds.
- (int64_t)globalToLocalTime:(int64_t)globalTimeDeclared In
PAGLayer.h
– duration
The duration of the layer in microseconds, indicates the length of the visible range.
- (int64_t)durationDeclared In
PAGLayer.h
– startTime
The start time of the layer in microseconds, indicates the start position of the visible range. It could be a negative value.
- (int64_t)startTimeDeclared In
PAGLayer.h
– setStartTime:
Set the start time of the layer, in microseconds.
- (void)setStartTime:(int64_t)timeDeclared In
PAGLayer.h
– setCurrentTime:
Set the current time of the layer in microseconds.
- (void)setCurrentTime:(int64_t)timeDeclared In
PAGLayer.h
– getProgress
Returns the current progress of play position, the value is from 0.0 to 1.0.
- (double)getProgressDeclared In
PAGLayer.h
– trackMatteLayer
Returns trackMatte layer of this layer.
- (PAGLayer *)trackMatteLayerDeclared In
PAGLayer.h
– getBounds
Returns a rectangle int pixels that defines the original area of the layer, which is not transformed by the matrix.
- (CGRect)getBoundsDeclared In
PAGLayer.h
– excludedFromTimeline
Indicate whether this layer is excluded from parent’s timeline. If set to true, this layer’s current time will not change when parent’s current time changes.
- (BOOL)excludedFromTimelineDeclared In
PAGLayer.h
– setExcludedFromTimeline:
Set the excludedFromTimeline flag of this layer.
- (void)setExcludedFromTimeline:(BOOL)valueDeclared In
PAGLayer.h