kg 6 年前
当前提交
fe245d5c
共有 2 个文件被更改,包括 16 次插入2 次删除
  1. 4
      Assets/UIWidgets/rendering/box.mixin.gen.cs
  2. 14
      Assets/UIWidgets/rendering/box.mixin.njk

4
Assets/UIWidgets/rendering/box.mixin.gen.cs


child = childParentData.nextSibling;
}
}
public bool defaultHitTestChildren(HitTestResult result, Offset position) {
public bool defaultHitTestChildren(HitTestResult result, Offset position) {
// the x, y parameters have the top left of the node's box as the origin
ChildType child = lastChild;
while (child != null)

14
Assets/UIWidgets/rendering/box.mixin.njk


using System;
using System.Collections.Generic;
using UIWidgets.gestures;
using UIWidgets.ui;
namespace UIWidgets.rendering {

context.paintChild(child, childParentData.offset + offset);
child = childParentData.nextSibling;
}
}
public bool defaultHitTestChildren(HitTestResult result, Offset position) {
// the x, y parameters have the top left of the node's box as the origin
ChildType child = lastChild;
while (child != null)
{
ParentDataType childParentData = (ParentDataType) child.parentData;
if (child.hitTest(result, position: position - childParentData.offset))
return true;
child = childParentData.previousSibling;
}
return false;
}
public List<ChildType> getChildrenAsList() {

正在加载...
取消
保存