浏览代码

Clear paragraph as released.

/main
Yuncong Zhang 6 年前
当前提交
1a604c3f
共有 1 个文件被更改,包括 21 次插入0 次删除
  1. 21
      Runtime/ui/txt/paragraph.cs

21
Runtime/ui/txt/paragraph.cs


public static void release(ref Paragraph paragraph) {
if (paragraph != null) {
paragraph.clear();
}
public void clear() {
this._needsLayout = true;
this._maxIntrinsicWidth = default;
this._minIntrinsicWidth = default;
this._alphabeticBaseline = default;
this._ideographicBaseline = default;
this._lineCount = default;
this._paintRecordsCount = default;
this._codeUnitRunsCount = default;
this._lineRangeCount = default;
this._lineWidthCount = default;
this._didExceedMaxLines = default;
this._width = default;
this._text = default;
this._ellipsizedText = default;
this._ellipsizedLength = default;
this._runs = null;
this._paragraphStyle = null;
}
readonly Paint _textPaint = new Paint {

正在加载...
取消
保存