Beispiel #1
0
 public Rectangle this [UISkinOrientation o]
 {
     get
     {
         return(Box[(int)o]);
     }
 }
Beispiel #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));
        }
Beispiel #3
0
 public void Set(UISkinOrientation o, Rectangle r)
 {
     Box[(int)o] = r;
 }
Beispiel #4
0
 public Rectangle this[UISkinOrientation o]
 {
     get
     {
         return Box[(int)o];
     }
 }
Beispiel #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);
 }
Beispiel #6
0
 public void Set(UISkinOrientation o, Rectangle r)
 {
     Box[(int)o] = r;
 }