using System;
using System.Drawing;
using System.Windows.Forms;
namespace Vanara.Windows.Forms
{
/// Style used to render the theme.
public enum RenderStyle
{
/// The system theme
SystemTheme,
/// A custom theme.
Custom
}
/// An interface for controls that provide drawing styles.
/// The type of the control.
/// The type of the enum.
public interface IDrawingStyle where TEnum : struct, IConvertible where TCtrl : Control
{
/// Draws the specified control.
/// The control.
/// The state.
/// The instance containing the event data.
void Draw(TCtrl ctrl, TEnum state, PaintEventArgs e);
/// Measures the specified control.
/// The control.
/// The state.
/// The g.
///
Size Measure(TCtrl ctrl, TEnum state, Graphics g = null);
}
}