using System;
using System.Text;
using System.Drawing;
namespace DevComponents.DotNetBar
{
    /// 
    /// Represents data for key tips rendering.
    /// 
    public class KeyTipsRendererEventArgs:EventArgs
    {
        /// 
        /// Gets or sets the graphics object used for rendering.
        /// 
        public Graphics Graphics=null;
        /// 
        /// Gets or sets key tip bounds.
        /// 
        public Rectangle Bounds = Rectangle.Empty;
        /// 
        /// Gets or sets the text of key tip to be rendered.
        /// 
        public string KeyTip = "";
        /// 
        /// Gets or sets the font key tip should be rendered with.
        /// 
        public Font Font = null;
        /// 
        /// Reference object for which Key Tip is rendered. For example this could be reference to an instance of ButtonItem or BaseItem as well
        /// as reference to System.Windows.Forms.Control object. Always test for type before accessing this reference.
        /// 
        public object ReferenceObject = null;
        /// 
        /// Creates new instance of the object and initializes it with default values.
        /// 
        public KeyTipsRendererEventArgs(Graphics g, Rectangle bounds, string keyTip, Font font, object referenceObject)
        {
            this.Graphics = g;
            this.Bounds = bounds;
            this.KeyTip = keyTip;
            this.Font = font;
            this.ReferenceObject = referenceObject;
        }
    }
}