示例#1
0
 public static RectStorage FromRect (Rect rect)
 {
     var rectStorage = new RectStorage ();
     rectStorage.x = rect.x;
     rectStorage.y = rect.y;
     rectStorage.width = rect.width;
     rectStorage.height = rect.height;
     return rectStorage;
 }
示例#2
0
文件: RectStorage.cs 项目: 602p/krpc
 public static RectStorage FromRect(Rect rect)
 {
     var rectStorage = new RectStorage ();
     rectStorage.x = rect.x;
     rectStorage.y = rect.y;
     rectStorage.width = rect.width;
     rectStorage.height = rect.height;
     return rectStorage;
 }