C# Class ComponentFactory.Krypton.Toolkit.KryptonSparkleRenderer

Inheritance: KryptonProfessionalRenderer
Datei anzeigen Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
KryptonSparkleRenderer ( KryptonColorTable kct ) : System

Initialise a new instance of the KryptonSparkleRenderer class.

Protected Methods

Method Description
OnRenderArrow ( System.Windows.Forms.ToolStripArrowRenderEventArgs e ) : void

Raises the RenderArrow event.

OnRenderButtonBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void

Raises the RenderButtonBackground event.

OnRenderDropDownButtonBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void

Raises the RenderDropDownButtonBackground event.

OnRenderImageMargin ( System.Windows.Forms.ToolStripRenderEventArgs e ) : void

Raises the RenderImageMargin event.

OnRenderItemCheck ( System.Windows.Forms.ToolStripItemImageRenderEventArgs e ) : void

Raises the RenderItemCheck event.

OnRenderItemImage ( System.Windows.Forms.ToolStripItemImageRenderEventArgs e ) : void

Raises the RenderItemImage event.

OnRenderItemText ( ToolStripItemTextRenderEventArgs e ) : void

Raises the RenderItemText event.

OnRenderMenuItemBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void

Raises the RenderMenuItemBackground event.

OnRenderSeparator ( System.Windows.Forms.ToolStripSeparatorRenderEventArgs e ) : void

Raises the RenderSeparator event.

OnRenderSplitButtonBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void

Raises the RenderSplitButtonBackground event.

OnRenderStatusStripSizingGrip ( System.Windows.Forms.ToolStripRenderEventArgs e ) : void

Raises the RenderStatusStripSizingGrip event.

OnRenderToolStripBackground ( System.Windows.Forms.ToolStripRenderEventArgs e ) : void

Raises the RenderToolStripBackground event.

OnRenderToolStripBorder ( System.Windows.Forms.ToolStripRenderEventArgs e ) : void

Raises the RenderToolStripBorder event.

OnRenderToolStripContentPanelBackground ( System.Windows.Forms.ToolStripContentPanelRenderEventArgs e ) : void

Raises the RenderToolStripContentPanelBackground event.

Private Methods

Method Description
CreateArrowPath ( ToolStripItem item, Rectangle rect, ArrowDirection direction ) : GraphicsPath
CreateBorderPath ( Rectangle rect, Rectangle exclude, float cut ) : GraphicsPath
CreateBorderPath ( Rectangle rect, float cut ) : GraphicsPath
CreateClipBorderPath ( Rectangle rect, Rectangle exclude, float cut ) : GraphicsPath
CreateClipBorderPath ( Rectangle rect, float cut ) : GraphicsPath
CreateIndeterminatePath ( Rectangle rect ) : GraphicsPath
CreateInsideBorderPath ( Rectangle rect, Rectangle exclude, float cut ) : GraphicsPath
CreateInsideBorderPath ( Rectangle rect, float cut ) : GraphicsPath
CreateTickPath ( Rectangle rect ) : GraphicsPath
DrawContextMenuHeader ( Graphics g, ToolStripItem item ) : void
DrawGradientBack ( Graphics g, Rectangle backRect, GradientItemColors colors ) : void
DrawGradientContextMenuItem ( Graphics g, ToolStripItem item, GradientItemColors colors ) : void
DrawGradientItem ( Graphics g, Rectangle backRect, GradientItemColors colors ) : void
DrawGradientToolItem ( Graphics g, ToolStripItem item, GradientItemColors colors ) : void
DrawGradientToolSplitItem ( Graphics g, ToolStripSplitButton splitButton, GradientItemColors colorsButton, GradientItemColors colorsDrop, GradientItemColors colorsSplit ) : void
DrawGripGlyph ( Graphics g, int x, int y, Brush darkBrush, Brush lightBrush ) : void
DrawLinearContextMenuItem ( Graphics g, ToolStripItem item, LinearItemColors colors ) : void
DrawLinearGradientBack ( Graphics g, Rectangle backRect, LinearItemColors colors ) : void
DrawLinearGradientBorder ( Graphics g, Rectangle backRect, LinearItemColors colors ) : void
DrawLinearGradientItem ( Graphics g, Rectangle backRect, LinearItemColors colors ) : void
DrawSeparator ( Graphics g, bool vertical, Rectangle rect, Pen lightPen, Pen darkPen, int horizontalInset, bool rtl ) : void
DrawSolidBorder ( Graphics g, Rectangle backRect, GradientItemColors colors ) : void
KryptonSparkleRenderer ( ) : System
RenderToolButtonBackground ( Graphics g, ToolStripButton button, ToolStrip toolstrip ) : void
RenderToolDropButtonBackground ( Graphics g, ToolStripItem item, ToolStrip toolstrip ) : void
RenderToolSplitButtonBackground ( Graphics g, ToolStripSplitButton splitButton, ToolStrip toolstrip ) : void
UpdateCache ( ) : void

Method Details

KryptonSparkleRenderer() public method

Initialise a new instance of the KryptonSparkleRenderer class.
public KryptonSparkleRenderer ( KryptonColorTable kct ) : System
kct KryptonColorTable Source for text colors.
return System

OnRenderArrow() protected method

Raises the RenderArrow event.
protected OnRenderArrow ( System.Windows.Forms.ToolStripArrowRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripArrowRenderEventArgs An ToolStripArrowRenderEventArgs containing the event data.
return void

OnRenderButtonBackground() protected method

Raises the RenderButtonBackground event.
protected OnRenderButtonBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripItemRenderEventArgs An ToolStripItemRenderEventArgs containing the event data.
return void

OnRenderDropDownButtonBackground() protected method

Raises the RenderDropDownButtonBackground event.
protected OnRenderDropDownButtonBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripItemRenderEventArgs An ToolStripItemRenderEventArgs containing the event data.
return void

OnRenderImageMargin() protected method

Raises the RenderImageMargin event.
protected OnRenderImageMargin ( System.Windows.Forms.ToolStripRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripRenderEventArgs An ToolStripRenderEventArgs containing the event data.
return void

OnRenderItemCheck() protected method

Raises the RenderItemCheck event.
protected OnRenderItemCheck ( System.Windows.Forms.ToolStripItemImageRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripItemImageRenderEventArgs An ToolStripItemImageRenderEventArgs containing the event data.
return void

OnRenderItemImage() protected method

Raises the RenderItemImage event.
protected OnRenderItemImage ( System.Windows.Forms.ToolStripItemImageRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripItemImageRenderEventArgs An ToolStripItemImageRenderEventArgs containing the event data.
return void

OnRenderItemText() protected method

Raises the RenderItemText event.
protected OnRenderItemText ( ToolStripItemTextRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripItemTextRenderEventArgs A ToolStripItemTextRenderEventArgs that contains the event data.
return void

OnRenderMenuItemBackground() protected method

Raises the RenderMenuItemBackground event.
protected OnRenderMenuItemBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripItemRenderEventArgs An ToolStripItemRenderEventArgs containing the event data.
return void

OnRenderSeparator() protected method

Raises the RenderSeparator event.
protected OnRenderSeparator ( System.Windows.Forms.ToolStripSeparatorRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripSeparatorRenderEventArgs An ToolStripSeparatorRenderEventArgs containing the event data.
return void

OnRenderSplitButtonBackground() protected method

Raises the RenderSplitButtonBackground event.
protected OnRenderSplitButtonBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripItemRenderEventArgs An ToolStripItemRenderEventArgs containing the event data.
return void

OnRenderStatusStripSizingGrip() protected method

Raises the RenderStatusStripSizingGrip event.
protected OnRenderStatusStripSizingGrip ( System.Windows.Forms.ToolStripRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripRenderEventArgs An ToolStripRenderEventArgs containing the event data.
return void

OnRenderToolStripBackground() protected method

Raises the RenderToolStripBackground event.
protected OnRenderToolStripBackground ( System.Windows.Forms.ToolStripRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripRenderEventArgs An ToolStripRenderEventArgs containing the event data.
return void

OnRenderToolStripBorder() protected method

Raises the RenderToolStripBorder event.
protected OnRenderToolStripBorder ( System.Windows.Forms.ToolStripRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripRenderEventArgs An ToolStripRenderEventArgs containing the event data.
return void

OnRenderToolStripContentPanelBackground() protected method

Raises the RenderToolStripContentPanelBackground event.
protected OnRenderToolStripContentPanelBackground ( System.Windows.Forms.ToolStripContentPanelRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripContentPanelRenderEventArgs An ToolStripContentPanelRenderEventArgs containing the event data.
return void