浏览代码

Cleanup.

/main
Yuncong Zhang 5 年前
当前提交
71082493
共有 3 个文件被更改,包括 9 次插入8 次删除
  1. 13
      Runtime/ui/painting/txt/text_blob.cs
  2. 2
      Runtime/ui/txt/linebreaker.cs
  3. 2
      Runtime/ui/txt/wordbreaker.cs

13
Runtime/ui/painting/txt/text_blob.cs


namespace Unity.UIWidgets.ui {
public struct TextBlob {
this._positions = positions;
this._positions = positions;
var pos = this._positions[this.textOffset];
return Rect.fromLTWH(this._bounds.xMin + pos, this._bounds.yMin, this._bounds.width, this._bounds.height);
var pos = this.getPosition(0);
return Rect.fromLTWH(this._bounds.xMin + pos, this._bounds.yMin,
this._bounds.width, this._bounds.height);
var pos = this._positions[this.textOffset];
return Rect.fromLTWH(this._bounds.xMin + pos + offset.dx, this._bounds.yMin + offset.dy, this._bounds.width, this._bounds.height);
var pos = this.getPosition(0);
return Rect.fromLTWH(this._bounds.xMin + pos + offset.dx, this._bounds.yMin + offset.dy,
this._bounds.width, this._bounds.height);
}
public float getPosition(int i) {

2
Runtime/ui/txt/linebreaker.cs


using System.Collections.Generic;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.InternalBridge;
using UnityEngine;
namespace Unity.UIWidgets.ui {

2
Runtime/ui/txt/wordbreaker.cs


}
public static uint getSupplementary(uint lead, uint trail) {
return (char) (( lead << 10) + (trail - U16_SURROGATE_OFFSET));
return (char) ((lead << 10) + (trail - U16_SURROGATE_OFFSET));
}
public static bool isBoundaryChar(char code) {

正在加载...
取消
保存