您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
38 行
1.2 KiB
38 行
1.2 KiB
using Unity.UIWidgets.animation;
|
|
using Unity.UIWidgets.painting;
|
|
|
|
namespace Unity.UIWidgets.rendering {
|
|
|
|
public class FractionalOffsetTween : Tween<FractionalOffset> {
|
|
public FractionalOffsetTween(FractionalOffset begin = null, FractionalOffset end = null)
|
|
: base(begin: begin, end: end) {
|
|
}
|
|
|
|
public override FractionalOffset lerp(float t) {
|
|
return FractionalOffset.lerp(begin, end, t);
|
|
}
|
|
}
|
|
|
|
public class AlignmentTween : Tween<Alignment> {
|
|
public AlignmentTween(
|
|
Alignment begin = null,
|
|
Alignment end = null)
|
|
: base(begin: begin, end: end) {
|
|
}
|
|
|
|
public override Alignment lerp(float t) {
|
|
return Alignment.lerpAlignment(begin, end, t);
|
|
}
|
|
}
|
|
public class AlignmentGeometryTween : Tween<AlignmentGeometry> {
|
|
public AlignmentGeometryTween(
|
|
AlignmentGeometry begin = null,
|
|
AlignmentGeometry end = null
|
|
) : base(begin: begin, end: end) {
|
|
}
|
|
public override AlignmentGeometry lerp(float t) {
|
|
return AlignmentGeometry.lerp(begin, end, t);
|
|
}
|
|
}
|
|
|
|
}
|