C# Class ComponentFactory.Krypton.Toolkit.RenderContext

Encapsulates context for view render operations.
Inheritance: ViewContext
Show file Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
GetAlignedRectangle ( PaletteRectangleAlign align, Rectangle local ) : Rectangle

Calculate a rectangle in control coodinates that is aligned for gradient drawing.

RenderContext ( Control control, Control alignControl, Graphics graphics, Rectangle clipRect, IRenderer renderer ) : System

Initialize a new instance of the ViewContext class.

RenderContext ( Control control, Graphics graphics, Rectangle clipRect, IRenderer renderer ) : System

Initialize a new instance of the ViewContext class.

RenderContext ( ViewManager manager, Control control, Control alignControl, Graphics graphics, Rectangle clipRect, IRenderer renderer ) : System

Initialize a new instance of the ViewContext class.

Method Details

GetAlignedRectangle() public method

Calculate a rectangle in control coodinates that is aligned for gradient drawing.
public GetAlignedRectangle ( PaletteRectangleAlign align, Rectangle local ) : Rectangle
align PaletteRectangleAlign How to align the gradient.
local System.Drawing.Rectangle Rectangle of the local element.
return System.Drawing.Rectangle

RenderContext() public method

Initialize a new instance of the ViewContext class.
public RenderContext ( Control control, Control alignControl, Graphics graphics, Rectangle clipRect, IRenderer renderer ) : System
control System.Windows.Forms.Control Control associated with rendering.
alignControl System.Windows.Forms.Control Control used to align elements.
graphics System.Drawing.Graphics Graphics instance for drawing.
clipRect System.Drawing.Rectangle Rectangle that needs rendering.
renderer IRenderer Rendering provider.
return System

RenderContext() public method

Initialize a new instance of the ViewContext class.
public RenderContext ( Control control, Graphics graphics, Rectangle clipRect, IRenderer renderer ) : System
control System.Windows.Forms.Control Control associated with rendering.
graphics System.Drawing.Graphics Graphics instance for drawing.
clipRect System.Drawing.Rectangle Rectangle that needs rendering.
renderer IRenderer Rendering provider.
return System

RenderContext() public method

Initialize a new instance of the ViewContext class.
public RenderContext ( ViewManager manager, Control control, Control alignControl, Graphics graphics, Rectangle clipRect, IRenderer renderer ) : System
manager ViewManager Reference to the view manager.
control System.Windows.Forms.Control Control associated with rendering.
alignControl System.Windows.Forms.Control Control used to align elements.
graphics System.Drawing.Graphics Graphics instance for drawing.
clipRect System.Drawing.Rectangle Rectangle that needs rendering.
renderer IRenderer Rendering provider.
return System