您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

26 行
900 B

using Unity.UIWidgets.foundation;
namespace Unity.UIWidgets.ui {
public class TextBlob {
public TextBlob(string text, int start, int end, Vector2d[] positions, TextStyle style, Rect bounds) {
D.assert(start < end);
this.text = text;
this.start = start;
this.end = end;
this.positions = positions;
this.style = style;
this.bounds = bounds;
}
public Rect boundsInText {
get { return this.bounds.shift(new Offset(this.positions[this.start].x, this.positions[this.start].y)); }
}
public readonly string text;
public readonly int start;
public readonly int end;
public readonly Vector2d[] positions;
public readonly TextStyle style;
public readonly Rect bounds; // bounds with positions[start] as origin
}
}