C# Class ComponentFactory.Krypton.Toolkit.RenderGlassHelpers

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

Public Methods

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

Draw a background with glass effect where the fade is from the bottom.

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

Draw a background with glass effect where the fade is from the center.

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

Draw a background in checked full glass effect.

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

Draw a background in checked simple glass effect.

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

Draw a background in checked stumpy glass effect.

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

Draw a background in checked/tracking full glass effect.

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

Draw a background in checked/tracking simple glass effect.

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

Draw a background in checked/tracking stumpy glass effect.

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

Draw a background in normal full glass effect but only over 50% of the background.

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

Draw a background in normal full glass effect.

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

Draw a background in normal simple glass effect.

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

Draw a background in normal stumpy glass effect.

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

Draw a background in checked/pressed full glass effect.

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

Draw a background in checked/pressed simple glass effect.

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

Draw a background in checked/pressed stumpy glass effect.

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

Draw a background in simple glass effect.

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

Draw a background in glass effect with three edges lighter.

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

Draw a background in tracking full glass effect.

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

Draw a background in tracking simple glass effect.

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

Draw a background in tracking stumpy glass effect.

Private Methods

Method Description
AngleFromOrientation ( VisualOrientation orientation ) : float
DrawBackDarkEdge ( RectangleF drawRect, Color color1, int thickness, VisualOrientation orientation, Graphics g, IDisposable memento ) : IDisposable
DrawBackGlassBasic ( RectangleF drawRect, Color color1, Color color2, Color glassColor1, Color glassColor2, float factorX, float factorY, VisualOrientation orientation, Graphics g, float glassPercent, IDisposable &memento ) : RectangleF
DrawBackGlassCenter ( RectangleF drawRect, Color color1, Color color2, Color glassColor1, Color glassColor2, float factorX, float factorY, VisualOrientation orientation, Graphics g, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassCheckedPercent ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassCheckedTrackingPercent ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassFade ( RectangleF drawRect, RectangleF outerRect, Color color1, Color color2, Color glassColor1, Color glassColor2, VisualOrientation orientation, Graphics g, IDisposable memento ) : IDisposable
DrawBackGlassLinear ( RectangleF drawRect, RectangleF outerRect, Color color1, Color color2, Color glassColor1, Color glassColor2, VisualOrientation orientation, Graphics g, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassNormalPercent ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassPressedPercent ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassRadial ( RectangleF drawRect, Color color1, Color color2, Color glassColor1, Color glassColor2, float factorX, float factorY, VisualOrientation orientation, Graphics g, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassSimplePercent ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, float glassPercent, IDisposable memento ) : IDisposable
DrawBackGlassTrackingPercent ( RenderContext context, Rectangle rect, Color backColor1, Color backColor2, VisualOrientation orientation, GraphicsPath path, float glassPercent, IDisposable memento ) : IDisposable
DrawBackLinear ( RectangleF drawRect, bool sigma, Color color1, Color color2, VisualOrientation orientation, Graphics g, IDisposable memento ) : IDisposable
DrawBackLinearRadial ( RectangleF drawRect, bool sigma, Color color1, Color color2, Color color3, VisualOrientation orientation, Graphics g, IDisposable memento ) : IDisposable
ModifyRectByEdges ( Rectangle &rect, int left, int top, int right, int bottom, VisualOrientation orientation ) : void
RenderGlassHelpers ( ) : System
VerticalOrientation ( VisualOrientation orientation ) : bool

Method Details

DrawBackGlassBottom() public static method

Draw a background with glass effect where the fade is from the bottom.
public static DrawBackGlassBottom ( 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

DrawBackGlassCenter() public static method

Draw a background with glass effect where the fade is from the center.
public static DrawBackGlassCenter ( 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

DrawBackGlassCheckedFull() public static method

Draw a background in checked full glass effect.
public static DrawBackGlassCheckedFull ( 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

DrawBackGlassCheckedSimple() public static method

Draw a background in checked simple glass effect.
public static DrawBackGlassCheckedSimple ( 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

DrawBackGlassCheckedStump() public static method

Draw a background in checked stumpy glass effect.
public static DrawBackGlassCheckedStump ( 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

DrawBackGlassCheckedTrackingFull() public static method

Draw a background in checked/tracking full glass effect.
public static DrawBackGlassCheckedTrackingFull ( 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

DrawBackGlassCheckedTrackingSimple() public static method

Draw a background in checked/tracking simple glass effect.
public static DrawBackGlassCheckedTrackingSimple ( 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

DrawBackGlassCheckedTrackingStump() public static method

Draw a background in checked/tracking stumpy glass effect.
public static DrawBackGlassCheckedTrackingStump ( 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

DrawBackGlassFade() public static method

Draw a background in normal full glass effect but only over 50% of the background.
public static DrawBackGlassFade ( 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

DrawBackGlassNormalFull() public static method

Draw a background in normal full glass effect.
public static DrawBackGlassNormalFull ( 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

DrawBackGlassNormalSimple() public static method

Draw a background in normal simple glass effect.
public static DrawBackGlassNormalSimple ( 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

DrawBackGlassNormalStump() public static method

Draw a background in normal stumpy glass effect.
public static DrawBackGlassNormalStump ( 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

DrawBackGlassPressedFull() public static method

Draw a background in checked/pressed full glass effect.
public static DrawBackGlassPressedFull ( 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

DrawBackGlassPressedSimple() public static method

Draw a background in checked/pressed simple glass effect.
public static DrawBackGlassPressedSimple ( 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

DrawBackGlassPressedStump() public static method

Draw a background in checked/pressed stumpy glass effect.
public static DrawBackGlassPressedStump ( 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

DrawBackGlassSimpleFull() public static method

Draw a background in simple glass effect.
public static DrawBackGlassSimpleFull ( 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

DrawBackGlassThreeEdge() public static method

Draw a background in glass effect with three edges lighter.
public static DrawBackGlassThreeEdge ( 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

DrawBackGlassTrackingFull() public static method

Draw a background in tracking full glass effect.
public static DrawBackGlassTrackingFull ( 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

DrawBackGlassTrackingSimple() public static method

Draw a background in tracking simple glass effect.
public static DrawBackGlassTrackingSimple ( 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

DrawBackGlassTrackingStump() public static method

Draw a background in tracking stumpy glass effect.
public static DrawBackGlassTrackingStump ( 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