浏览代码

Make text blob struct.

/main
Yuncong Zhang 5 年前
当前提交
7c2ce111
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1
      Runtime/ui/painting/canvas_impl.cs
  2. 2
      Runtime/ui/painting/txt/text_blob.cs

1
Runtime/ui/painting/canvas_impl.cs


}
void _drawTextBlob(TextBlob textBlob, Offset offset, Paint paint) {
D.assert(textBlob != null);
D.assert(offset != null);
D.assert(paint != null);

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


namespace Unity.UIWidgets.ui {
public class TextBlob {
public struct TextBlob {
internal TextBlob(string text, int textOffset, int textSize, Vector2d[] positions, Rect bounds,
TextStyle style) {
this.instanceId = ++_nextInstanceId;

正在加载...
取消
保存