using System;
using System.Text;
using System.Drawing;
namespace DevComponents.DotNetBar
{
///
/// Provides data for toolbar rendering.
///
public class ToolbarRendererEventArgs
{
///
/// Gets or sets the reference to Bar object being rendered
///
public Bar Bar = null;
///
/// Gets or sets Graphics object bar is rendered on.
///
public Graphics Graphics = null;
///
/// Gets the bounds of the region that should be rendered.
///
public Rectangle Bounds = Rectangle.Empty;
///
/// Reference to internal data.
///
internal ItemPaintArgs ItemPaintArgs = null;
///
/// Creates new instance of the object and initializes it with default data.
///
/// Reference to bar object.
/// Reference to Graphics object.
public ToolbarRendererEventArgs(Bar bar, Graphics g, Rectangle bounds)
{
this.Bar = bar;
this.Graphics = g;
this.Bounds = bounds;
}
}
}