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

25 行
602 B

namespace Unity.UIWidgets.ui {
public struct uiOffset {
public uiOffset(float dx, float dy) {
this.dx = dx;
this.dy = dy;
}
public readonly float dx;
public readonly float dy;
public static uiOffset? fromOffset(Offset offset) {
if (offset == null) {
return null;
}
var newOffset = new uiOffset(offset.dx, offset.dy);
return newOffset;
}
public static uiOffset operator -(uiOffset a) {
return new uiOffset(-a.dx, -a.dy);
}
}
}