您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
41 行
1.3 KiB
41 行
1.3 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using Unity.UIWidgets.foundation;
|
|
using Unity.UIWidgets.widgets;
|
|
|
|
namespace Unity.UIWidget.material {
|
|
// TODO: complete this file
|
|
public class DraggableScrollableNotification : ViewportNotificationMixinNotification {
|
|
public DraggableScrollableNotification(
|
|
float extent,
|
|
float minExtent,
|
|
float maxExtent,
|
|
float initialExtent,
|
|
BuildContext context
|
|
) {
|
|
D.assert(0.0f <= minExtent);
|
|
D.assert(maxExtent <= 1.0f);
|
|
D.assert(minExtent <= extent);
|
|
D.assert(minExtent <= initialExtent);
|
|
D.assert(extent <= maxExtent);
|
|
D.assert(initialExtent <= maxExtent);
|
|
D.assert(context != null);
|
|
}
|
|
|
|
public readonly float extent;
|
|
|
|
public readonly float minExtent;
|
|
|
|
public readonly float maxExtent;
|
|
|
|
public readonly float initialExtent;
|
|
|
|
public readonly BuildContext context;
|
|
|
|
protected override void debugFillDescription(List<String> description) {
|
|
base.debugFillDescription(description);
|
|
description.Add(
|
|
$"minExtent: {minExtent}, extent: {extent}, maxExtent: {maxExtent}, initialExtent: {initialExtent}");
|
|
}
|
|
}
|
|
}
|