Exemple #1
0
 /// <summary>
 /// Creates size change args.
 /// </summary>
 /// <param name="config">Widget configuration</param>
 /// <param name="bounds">The updated bounds for the widget.</param>
 /// <param name="oldBounds">The previous bounds for the widget.</param>
 /// <param name="screens">A list of available monitors.</param>
 /// <param name="final">A flag indicating if the user has finished dragging the widget, and these bounds are now finalized.</param>
 public WidgetBoundsChangedArgs(WidgetConfig config, Rectangle bounds, Rectangle oldBounds, ScreenList screens, bool final)
 {
     Config    = config;
     Bounds    = bounds;
     OldBounds = oldBounds;
     Screens   = screens;
     Final     = final;
 }
Exemple #2
0
 public static IEnumerable <Screen> ToData(this WidgetInterface.ScreenList screens)
 {
     foreach (var screen in screens)
     {
         yield return(new Screen
         {
             Primary = screen.Primary,
             Bounds = screen.Bounds.ToData(),
             WorkingArea = screen.WorkingArea.ToData()
         });
     }
 }