using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace DevComponents.DotNetBar.Rendering
{
///
/// Provides data for SwitchButton rendering.
///
public class SwitchButtonRenderEventArgs
{
///
/// Gets or sets Graphics object group is rendered on.
///
public Graphics Graphics = null;
///
/// Gets or sets the reference to SwitchButtonItem being rendered.
///
public SwitchButtonItem SwitchButtonItem = null;
///
/// ColorScheme object that is used to provide colors for rendering check box item in legacy styles like Office 2003. Office 2007 style
/// uses color tables provided by renderer.
///
public ColorScheme ColorScheme = null;
///
/// Indicates whether item is in Right-To-Left environment.
///
public bool RightToLeft = false;
///
/// Gets or sets the text font.
///
public Font Font = null;
///
/// Gets or sets the ItemPaintArgs reference.
///
internal ItemPaintArgs ItemPaintArgs;
///
/// Creates new instance of the object and provides default values.
///
/// Reference to Graphics object
/// Reference to SwitchButtonItem
/// Reference to legacy ColorScheme
/// Indicates the font for the text.
/// Indicates whether item is in Right-To-Left environment.
public SwitchButtonRenderEventArgs(Graphics g, SwitchButtonItem item, ColorScheme cs, Font f, bool rtl)
{
this.Graphics = g;
this.SwitchButtonItem = item;
this.ColorScheme = cs;
this.RightToLeft = rtl;
this.Font = f;
}
}
}