scripts
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.CSSLayout
|
||||
{
|
||||
// Token: 0x0200051B RID: 1307
|
||||
internal class MeasureOutput
|
||||
{
|
||||
// Token: 0x06003CC4 RID: 15556 RVA: 0x0006B630 File Offset: 0x00069830
|
||||
public static long Make(double width, double height)
|
||||
{
|
||||
return MeasureOutput.Make((int)width, (int)height);
|
||||
}
|
||||
|
||||
// Token: 0x06003CC5 RID: 15557 RVA: 0x0006B650 File Offset: 0x00069850
|
||||
public static long Make(int width, int height)
|
||||
{
|
||||
return ((long)width << 32) | (long)((ulong)height);
|
||||
}
|
||||
|
||||
// Token: 0x06003CC6 RID: 15558 RVA: 0x0006B670 File Offset: 0x00069870
|
||||
public static int GetWidth(long measureOutput)
|
||||
{
|
||||
return (int)((ulong)(-1) & (ulong)(measureOutput >> 32));
|
||||
}
|
||||
|
||||
// Token: 0x06003CC7 RID: 15559 RVA: 0x0006B690 File Offset: 0x00069890
|
||||
public static int GetHeight(long measureOutput)
|
||||
{
|
||||
return (int)((ulong)(-1) & (ulong)measureOutput);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user