/// <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; }
/// <summary> /// Creates a new draw arguments object. /// </summary> /// <param name="config">The configuration item collection</param> /// <param name="bounds">The widget's bounds</param> /// <param name="g">The graphics object for the destination image</param> /// <param name="image">The destination image</param> /// <param name="sample">Flag indicating if drawing the sample image</param> public WidgetDrawArgs(WidgetConfig config, Rectangle bounds, Graphics g, Image image, bool sample) { Config = config; Graphics = g; Image = image; Bounds = bounds; Sample = sample; }