C# Class ComponentFactory.Krypton.Toolkit.RenderSparkle

Extends the professional renderer to provide Sparkle style additions.
Inheritance: RenderProfessional
Mostra file Open project: ComponentFactory/Krypton

Public Methods

Method Description
DrawInputControlDropDownGlyph ( RenderContext context, Rectangle cellRect, IPaletteContent paletteContent, PaletteState state ) : void

Draw a drop down grid appropriate for a input control.

DrawInputControlNumericDownGlyph ( RenderContext context, Rectangle cellRect, IPaletteContent paletteContent, PaletteState state ) : void

Draw a numeric down button image appropriate for a input control.

DrawInputControlNumericUpGlyph ( RenderContext context, Rectangle cellRect, IPaletteContent paletteContent, PaletteState state ) : void

Draw a numeric up button image appropriate for a input control.

DrawRibbonApplicationButton ( PaletteRibbonShape shape, RenderContext context, Rectangle rect, PaletteState state, IPaletteRibbonBack palette, IDisposable memento ) : IDisposable

Draw the application button.

DrawRibbonBack ( PaletteRibbonShape shape, RenderContext context, Rectangle rect, PaletteState state, IPaletteRibbonBack palette, VisualOrientation orientation, bool composition, IDisposable memento ) : IDisposable

Draw the background of a ribbon element.

DrawRibbonDropArrow ( PaletteRibbonShape shape, RenderContext context, Rectangle displayRect, IPaletteRibbonGeneral paletteGeneral, PaletteState state ) : void

Perform drawing of a ribbon drop arrow glyph.

DrawRibbonTabContextTitle ( PaletteRibbonShape shape, RenderContext context, Rectangle rect, IPaletteRibbonGeneral paletteGeneral, IPaletteRibbonBack paletteBack, IDisposable memento ) : IDisposable

Draw a context ribbon tab title.

RenderToolStrip ( IPalette colorPalette ) : System.Windows.Forms.ToolStripRenderer

Gets a renderer for drawing the toolstrips.

Protected Methods

Method Description
DrawRibbonTabContext ( RenderContext context, Rectangle rect, IPaletteRibbonGeneral paletteGeneral, IPaletteRibbonBack paletteBack, IDisposable memento ) : IDisposable

Internal rendering method.

Private Methods

Method Description
RenderSparkle ( ) : System

Method Details

DrawInputControlDropDownGlyph() public method

Draw a drop down grid appropriate for a input control.
public DrawInputControlDropDownGlyph ( RenderContext context, Rectangle cellRect, IPaletteContent paletteContent, PaletteState state ) : void
context RenderContext Render context.
cellRect System.Drawing.Rectangle Available drawing rectangle space.
paletteContent IPaletteContent Content palette for getting colors.
state PaletteState State associated with rendering.
return void

DrawInputControlNumericDownGlyph() public method

Draw a numeric down button image appropriate for a input control.
public DrawInputControlNumericDownGlyph ( RenderContext context, Rectangle cellRect, IPaletteContent paletteContent, PaletteState state ) : void
context RenderContext Render context.
cellRect System.Drawing.Rectangle Available drawing rectangle space.
paletteContent IPaletteContent Content palette for getting colors.
state PaletteState State associated with rendering.
return void

DrawInputControlNumericUpGlyph() public method

Draw a numeric up button image appropriate for a input control.
public DrawInputControlNumericUpGlyph ( RenderContext context, Rectangle cellRect, IPaletteContent paletteContent, PaletteState state ) : void
context RenderContext Render context.
cellRect System.Drawing.Rectangle Available drawing rectangle space.
paletteContent IPaletteContent Content palette for getting colors.
state PaletteState State associated with rendering.
return void

DrawRibbonApplicationButton() public method

Draw the application button.
public DrawRibbonApplicationButton ( PaletteRibbonShape shape, RenderContext context, Rectangle rect, PaletteState state, IPaletteRibbonBack palette, IDisposable memento ) : IDisposable
shape PaletteRibbonShape Ribbon shape.
context RenderContext Rendering context.
rect System.Drawing.Rectangle Target rectangle.
state PaletteState State associated with rendering.
palette IPaletteRibbonBack Palette used for sourcing settings.
memento IDisposable Cached storage for drawing objects.
return IDisposable

DrawRibbonBack() public method

Draw the background of a ribbon element.
public DrawRibbonBack ( PaletteRibbonShape shape, RenderContext context, Rectangle rect, PaletteState state, IPaletteRibbonBack palette, VisualOrientation orientation, bool composition, IDisposable memento ) : IDisposable
shape PaletteRibbonShape Ribbon shape.
context RenderContext Rendering context.
rect System.Drawing.Rectangle Target rectangle.
state PaletteState State associated with rendering.
palette IPaletteRibbonBack Palette used for sourcing settings.
orientation VisualOrientation Orientation for drawing.
composition bool Drawing onto a composition element.
memento IDisposable Cached values to use when drawing.
return IDisposable

DrawRibbonDropArrow() public method

Perform drawing of a ribbon drop arrow glyph.
public DrawRibbonDropArrow ( PaletteRibbonShape shape, RenderContext context, Rectangle displayRect, IPaletteRibbonGeneral paletteGeneral, PaletteState state ) : void
shape PaletteRibbonShape Ribbon shape.
context RenderContext Render context.
displayRect System.Drawing.Rectangle Display area available for drawing.
paletteGeneral IPaletteRibbonGeneral General ribbon palette details.
state PaletteState State associated with rendering.
return void

DrawRibbonTabContext() protected method

Internal rendering method.
protected DrawRibbonTabContext ( RenderContext context, Rectangle rect, IPaletteRibbonGeneral paletteGeneral, IPaletteRibbonBack paletteBack, IDisposable memento ) : IDisposable
context RenderContext
rect System.Drawing.Rectangle
paletteGeneral IPaletteRibbonGeneral
paletteBack IPaletteRibbonBack
memento IDisposable
return IDisposable

DrawRibbonTabContextTitle() public method

Draw a context ribbon tab title.
public DrawRibbonTabContextTitle ( PaletteRibbonShape shape, RenderContext context, Rectangle rect, IPaletteRibbonGeneral paletteGeneral, IPaletteRibbonBack paletteBack, IDisposable memento ) : IDisposable
shape PaletteRibbonShape Ribbon shape.
context RenderContext Rendering context.
rect System.Drawing.Rectangle Target rectangle.
paletteGeneral IPaletteRibbonGeneral Palette used for general ribbon settings.
paletteBack IPaletteRibbonBack Palette used for background ribbon settings.
memento IDisposable Cached storage for drawing objects.
return IDisposable

RenderToolStrip() public method

Gets a renderer for drawing the toolstrips.
public RenderToolStrip ( IPalette colorPalette ) : System.Windows.Forms.ToolStripRenderer
colorPalette IPalette Color palette to use when rendering toolstrip.
return System.Windows.Forms.ToolStripRenderer