您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
26 行
852 B
26 行
852 B
using Unity.UIWidgets.foundation;
|
|
|
|
namespace Unity.UIWidgets.gestures {
|
|
|
|
public delegate void PointerHoverEnterCallback(PointerHoverEvent evt);
|
|
|
|
public delegate void PointerHoverLeaveCallback();
|
|
|
|
public class HoverRecognizer : DiagnosticableTree {
|
|
public HoverRecognizer(object debugOwner = null) {
|
|
this.debugOwner = debugOwner;
|
|
}
|
|
|
|
readonly object debugOwner;
|
|
|
|
public PointerHoverEnterCallback OnPointerEnter;
|
|
|
|
public PointerHoverLeaveCallback OnPointerLeave;
|
|
|
|
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
|
|
base.debugFillProperties(properties);
|
|
properties.add(new DiagnosticsProperty<object>("debugOwner", this.debugOwner,
|
|
defaultValue: Diagnostics.kNullDefaultValue));
|
|
}
|
|
}
|
|
}
|