C# Class ComponentFactory.Krypton.Toolkit.RenderExpertHelpers

Helper functions for drawing in the glass styles.
Show file Open project: ComponentFactory/Krypton

Public Methods

Method Description
DrawBackExpertChecked ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background for an expert style button that is checked.

DrawBackExpertCheckedTracking ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background for an expert style button that is checked and tracking.

DrawBackExpertPressed ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background for an expert style button with pressed effect.

DrawBackExpertSquareHighlight ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento, bool light ) : IDisposable

Draw a background for an expert style button has a square inside with highlight.

DrawBackExpertTracking ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable

Draw a background for an expert style button with tracking effect.

Private Methods

Method Description
AngleFromOrientation ( VisualOrientation orientation ) : float
CreateBorderPath ( Rectangle rect, float cut ) : GraphicsPath
DrawBackExpert ( Rectangle drawRect, Color color1, Color color2, VisualOrientation orientation, Graphics g, IDisposable memento, bool total, bool tracking ) : IDisposable
DrawBackSolid ( RectangleF drawRect, Color color1, Graphics g, IDisposable memento ) : IDisposable
RenderExpertHelpers ( ) : System

Method Details

DrawBackExpertChecked() public static method

Draw a background for an expert style button that is checked.
public static DrawBackExpertChecked ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
return IDisposable

DrawBackExpertCheckedTracking() public static method

Draw a background for an expert style button that is checked and tracking.
public static DrawBackExpertCheckedTracking ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
return IDisposable

DrawBackExpertPressed() public static method

Draw a background for an expert style button with pressed effect.
public static DrawBackExpertPressed ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
return IDisposable

DrawBackExpertSquareHighlight() public static method

Draw a background for an expert style button has a square inside with highlight.
public static DrawBackExpertSquareHighlight ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento, bool light ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
light bool Use the 'light' variation.
return IDisposable

DrawBackExpertTracking() public static method

Draw a background for an expert style button with tracking effect.
public static DrawBackExpertTracking ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Rectangle to draw.
backColor1 Color First color.
backColor2 Color Second color.
orientation VisualOrientation Drawing orientation.
path System.Drawing.Drawing2D.GraphicsPath Clipping path.
memento IDisposable Cache used for drawing.
return IDisposable