Пример #1
0
 public Rectangle this [UISkinOrientation o]
 {
     get
     {
         return(Box[(int)o]);
     }
 }
Пример #2
0
        public Vector2 Measure(UIElementType type, UISkinOrientation orientation)
        {
            if (!Types.ContainsKey(type))
            {
                return(new Vector2(0, 0));
            }
            UISkinElement e = Types[type];

            return(new Vector2(e[orientation].Width, e[orientation].Height));
        }
Пример #3
0
 public void Set(UISkinOrientation o, Rectangle r)
 {
     Box[(int)o] = r;
 }
Пример #4
0
 public Rectangle this[UISkinOrientation o]
 {
     get
     {
         return Box[(int)o];
     }
 }
Пример #5
0
 public Vector2 Measure(UIElementType type, UISkinOrientation orientation)
 {
     if (!Types.ContainsKey(type))
         return new Vector2(0, 0);
     UISkinElement e = Types[type];
     return new Vector2(e[orientation].Width, e[orientation].Height);
 }
Пример #6
0
 public void Set(UISkinOrientation o, Rectangle r)
 {
     Box[(int)o] = r;
 }