using System;
using System.Text;
using System.Drawing;
namespace DevComponents.DotNetBar
{
///
/// Provides data for the RenderSystemCaptionItem event.
///
public class SystemCaptionItemRendererEventArgs : EventArgs
{
///
/// Gets or sets Graphics control is rendered on.
///
public Graphics Graphics = null;
///
/// Gets reference to SystemCaptionItem being rendered.
///
public SystemCaptionItem SystemCaptionItem = null;
///
/// Gets whether Windows Vista Glass is enabled.
///
public bool GlassEnabled = false;
///
/// Creates new instance of the class and initializes it with default values.
///
/// Reference to Graphics object.
/// Reference to item being rendered.
/// Indicates whether Vista Glass effect is enabled.
public SystemCaptionItemRendererEventArgs(Graphics g, SystemCaptionItem item, bool glassEnabled)
{
this.Graphics = g;
this.SystemCaptionItem = item;
this.GlassEnabled = glassEnabled;
}
}
}