Beispiel #1
0
        private static void AddMissingProperties(LightList <StylePropertyId> toUpdate, UIStyle style)
        {
            int count = style.propertyCount;

            StyleProperty[] properties = style.array;

            for (int i = 0; i < count; i++)
            {
                StylePropertyId propertyId = properties[i].propertyId;
                if (!ListContainsStyleProperty(toUpdate, propertyId))
                {
                    toUpdate.Add(propertyId);
                }
            }
        }
Beispiel #2
0
 public UIStyle(UIStyle toCopy) : this()
 {
     this.propertyCount = toCopy.propertyCount;
     this.array         = new StyleProperty[toCopy.propertyCount];
     Array.Copy(toCopy.array, 0, array, 0, toCopy.propertyCount);
 }