public static ElementGroup Adjust(ElementGroup elementGroup, float offsetX, float offsetY, int offsetTiming)
 {
     foreach (var obj in elementGroup.ElementList)
     {
         obj.Adjust(offsetX, offsetY, offsetTiming);
     }
     return(elementGroup);
 }
 private static void InnerFix(this ElementGroup eleG, bool expand, bool fillFadeout)
 {
     if (!expand && !fillFadeout)
     {
         return;
     }
     foreach (var ele in eleG.ElementList)
     {
         if (expand)
         {
             ele.Expand();
         }
         if (fillFadeout)
         {
             ele.FillObsoleteList();
         }
     }
 }
Exemple #3
0
 public ElementCompressor(ElementGroup elementGroup)
 {
     _elements = elementGroup.ElementList;
 }
 public static void FillObsoleteList(this ElementGroup eleG)
 {
     eleG.InnerFix(false, true);
 }
 public static void Expand(this ElementGroup eleG)
 {
     eleG.InnerFix(true, false);
 }
 public static void ExpandAndFillFadeout(this ElementGroup eleG)
 {
     eleG.InnerFix(true, true);
 }
 public static async Task ExpandAsync(this ElementGroup eleG)
 {
     await Task.Run(() => { Expand(eleG); });
 }
 public void Add(ElementGroup elementGroup)
 {
     GroupList.Add(elementGroup);
 }