浏览代码

merge

/main
gewentao 6 年前
当前提交
226de4a4
共有 2 个文件被更改,包括 28 次插入0 次删除
  1. 14
      Assets/UIWidgets/rendering/box.mixin.gen.cs
  2. 14
      Assets/UIWidgets/rendering/box.mixin.njk

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


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() {

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() {

正在加载...
取消
保存