浏览代码

Merge branch 'kgdev' into 'master'

some fixes.

See merge request upm-packages/ui-widgets/com.unity.uiwidgets!35
/main
Shenhua Gu 6 年前
当前提交
61544808
共有 2 个文件被更改,包括 17 次插入1 次删除
  1. 8
      Runtime/painting/border_radius.cs
  2. 10
      Runtime/ui/text.cs

8
Runtime/painting/border_radius.cs


return hashCode;
}
}
public static bool operator ==(BorderRadius a, BorderRadius b) {
return Equals(a, b);
}
public static bool operator !=(BorderRadius a, BorderRadius b) {
return !Equals(a, b);
}
public override string ToString() {
string visual = null;

10
Runtime/ui/text.cs


return this.width.GetHashCode();
}
public static bool operator ==(ParagraphConstraints left, ParagraphConstraints right) {
return Equals(left, right);
}
public static bool operator !=(ParagraphConstraints left, ParagraphConstraints right) {
return !Equals(left, right);
}
public override string ToString() {
return $"Width: {this.width}";
}

public readonly double letterSpacing = 0.0;
public readonly double wordSpacing = 0.0;
public readonly TextBaseline textBaseline = TextBaseline.alphabetic;
public double height = 1.0;
public readonly double height = 1.0;
public readonly TextDecoration decoration = TextDecoration.none;
public readonly Color decorationColor;
public readonly TextDecorationStyle decorationStyle = TextDecorationStyle.solid;

正在加载...
取消
保存