using System; using System.Text; using System.Drawing; namespace DevComponents.DotNetBar { /// /// Provides data for RibbonBar rendering events. /// public class RibbonBarRendererEventArgs : EventArgs { /// /// Gets or sets the reference to Graphics object. /// public Graphics Graphics = null; /// /// Gets or sets the part bounds. /// public Rectangle Bounds = Rectangle.Empty; /// /// Gets or sets the reference to RibbonBar. /// public RibbonBar RibbonBar = null; /// /// Gets or sets whether mouse over state should be painted for the ribbon bar part. /// public bool MouseOver = false; /// /// Gets or sets whether mouse is pressed over the ribbon part. /// public bool Pressed = false; /// /// Gets or sets the region that defines the content bounds. When background is rendered the renderer should set this property /// to define the content clip. /// public Region ContentClip = null; /// /// Creates new instance of the object and initializes it with default values. /// /// Reference to Graphics object. /// Bounds of the part to be rendered. /// Reference to ribbon bar. public RibbonBarRendererEventArgs(Graphics g, Rectangle bounds, RibbonBar ribbon) { this.Graphics = g; this.Bounds = bounds; this.RibbonBar = ribbon; } } }