예제 #1
0
        public static bool TryParse(string str, out Sizei result)
        {
            bool ret = NoesisGUI_PINVOKE.Sizei_TryParse(str != null ? str : string.Empty, out result);

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #2
0
        public static Sizei Parse(string str)
        {
            Sizei size;

            if (Sizei.TryParse(str, out size))
            {
                return(size);
            }
            throw new ArgumentException("Cannot create Sizei from '" + str + "'");
        }
예제 #3
0
        public static bool TryParse(string str, out Sizei result)
        {
            bool ret = NoesisGUI_PINVOKE.Sizei_TryParse(str != null ? str : string.Empty, out result);

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return(ret);
        }
 public void Inflate(Sizei size)
 {
     Inflate((int)size.Width, (int)size.Height);
 }
 public Recti(Pointi p, Sizei size) : this(p.X, p.Y, size.Width, size.Height)
 {
 }
 public Recti(Sizei size) : this(0, 0, size.Width, size.Height)
 {
 }
예제 #7
0
 public Size(Sizei size) : this((float)size.Width, (float)size.Height)
 {
 }
예제 #8
0
 public void Expand(Sizei size)
 {
     Width  = Math.Max(Width, size.Width);
     Height = Math.Max(Height, size.Height);
 }
예제 #9
0
 public bool Equals(Sizei v)
 {
     return(this == v);
 }
예제 #10
0
 public Pointi(Sizei size) : this((int)size.Width, (int)size.Height)
 {
 }