浏览代码

Cleanup.

/main
Yuncong Zhang 5 年前
当前提交
75936d23
共有 3 个文件被更改,包括 4 次插入5 次删除
  1. 2
      Runtime/ui/geometry.cs
  2. 4
      Runtime/ui/painting/draw_cmd.cs
  3. 3
      Runtime/ui/renderer/cmdbufferCanvas/rendering/canvas_impl.cs

2
Runtime/ui/geometry.cs


}
public float margin {
get { return this.width * this.height; }
get { return this.width + this.height; }
}
public static readonly Rect zero = new Rect(0, 0, 0, 0);

4
Runtime/ui/painting/draw_cmd.cs


using UnityEngine;
namespace Unity.UIWidgets.ui {
namespace Unity.UIWidgets.ui {
public abstract class DrawCmd {
public abstract uiRect bounds(float margin);
}

3
Runtime/ui/renderer/cmdbufferCanvas/rendering/canvas_impl.cs


break;
}
case DrawImage cmd: {this._drawImage(cmd.image, (uiOffset.fromOffset(cmd.offset)).Value,
case DrawImage cmd: {
this._drawImage(cmd.image, (uiOffset.fromOffset(cmd.offset)).Value,
uiPaint.fromPaint(cmd.paint));
break;
}

正在加载...
取消
保存