C# Class ComponentFactory.Krypton.Toolkit.RenderBase

Inheritance: System.ComponentModel.Component, IRenderer, IRenderBorder, IRenderBack, IRenderContent, IRenderTabBorder, IRenderRibbon, IRenderGlyph
Datei anzeigen Open project: ComponentFactory/Krypton

Public Methods

Method Description
DrawBack ( RenderContext context, Rectangle rect, GraphicsPath path, IPaletteBack palette, VisualOrientation orientation, PaletteState state, IDisposable memento ) : IDisposable

Draw background to fill the specified path.

DrawBorder ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state ) : void

Draw border on the inside edge of the specified rectangle.

DrawCheckBox ( RenderContext context, Rectangle displayRect, IPalette palette, bool enabled, CheckState checkState, bool tracking, bool pressed ) : void

Perform drawing of a check box.

DrawContent ( RenderContext context, Rectangle displayRect, IPaletteContent palette, IDisposable memento, VisualOrientation orientation, PaletteState state, bool composition, bool allowFocusRect ) : void

Perform draw of content using provided memento.

DrawDragDropDockingGlyph ( RenderContext context, RenderDragDockingData dragData, IPaletteDragDrop dragDropPalette, PaletteDragFeedback feedback ) : void

Draw a solid area glyph suitable for a drag drop area.

DrawDragDropSolidGlyph ( RenderContext context, Rectangle drawRect, IPaletteDragDrop dragDropPalette ) : void

Draw a solid area glyph suitable for a drag drop area.

DrawDropDownButton ( RenderContext context, Rectangle displayRect, IPalette palette, PaletteState state, VisualOrientation orientation ) : void

Perform drawing of a drop down button.

DrawGridErrorGlyph ( RenderContext context, Rectangle cellRect, PaletteState state, bool rtl ) : Rectangle

Draw a grid error glyph.

DrawGridRowGlyph ( RenderContext context, GridRowGlyph rowGlyph, Rectangle cellRect, IPaletteContent paletteContent, PaletteState state, bool rtl ) : Rectangle

Draw a grid row glyph.

DrawGridSortGlyph ( RenderContext context, SortOrder sortOrder, Rectangle cellRect, IPaletteContent paletteContent, PaletteState state, bool rtl ) : Rectangle

Draw a grid sorting direction glyph.

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.

DrawRadioButton ( RenderContext context, Rectangle displayRect, IPalette palette, bool enabled, bool checkState, bool tracking, bool pressed ) : void

Perform drawing of a radio button.

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

Draw the application button.

DrawRibbonApplicationTab ( PaletteRibbonShape shape, RenderContext context, Rectangle rect, PaletteState state, Color baseColor1, Color baseColor2, IDisposable memento ) : IDisposable

Draw the application tab.

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.

DrawRibbonClusterEdge ( PaletteRibbonShape shape, RenderContext context, Rectangle displayRect, IPaletteBack paletteBack, PaletteState state ) : void

Perform drawing of a ribbon cluster edge.

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

Perform drawing of a ribbon context arrow glyph.

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

Perform drawing of a ribbon dialog box launcher glyph.

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

Perform drawing of a ribbon drop arrow glyph.

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

Perform drawing of a ribbon group separator.

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

Perform drawing of a ribbon overflow image.

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

Draw a context ribbon tab title.

DrawSeparator ( RenderContext context, Rectangle displayRect, IPaletteBack paletteBack, IPaletteBorder paletteBorder, Orientation orientation, PaletteState state, bool canMove ) : void

Perform drawing of a separator glyph.

DrawTabBorder ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state, TabBorderStyle tabBorderStyle ) : void

Draw border on the inside edge of the specified rectangle.

DrawTrackGlyph ( RenderContext context, PaletteState state, IPaletteElementColor elementPalette, Rectangle drawRect, Orientation orientation, bool volumeControl ) : void

Draw the track bar track glyph.

DrawTrackPositionGlyph ( RenderContext context, PaletteState state, IPaletteElementColor elementPalette, Rectangle drawRect, Orientation orientation, TickStyle tickStyle ) : void

Draw the track bar position glyph.

DrawTrackTicksGlyph ( RenderContext context, PaletteState state, IPaletteElementColor elementPalette, Rectangle drawRect, Orientation orientation, bool topRight, Size positionSize, int minimum, int maximum, int frequency ) : void

Draw the track bar ticks glyph.

EvalTransparentPaint ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, PaletteState state ) : bool

Evaluate if transparent painting is needed for background or border palettes.

EvalTransparentPaint ( IPaletteBack paletteBack, PaletteState state ) : bool

Evaluate if transparent painting is needed for background palette.

GetBackPath ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state ) : GraphicsPath

Generate a graphics path that encloses the border and is used when rendering a background to ensure the background does not draw over the border area.

GetBorderDisplayPadding ( IPaletteBorder palette, PaletteState state, VisualOrientation orientation ) : Padding

Gets the padding used to position display elements completely inside border drawing.

GetBorderPath ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state ) : GraphicsPath

Generate a graphics path that is in the middle of the border.

GetBorderRawPadding ( IPaletteBorder palette, PaletteState state, VisualOrientation orientation ) : Padding

Gets the raw padding used per edge of the border.

GetCheckBoxPreferredSize ( ViewLayoutContext context, IPalette palette, bool enabled, CheckState checkState, bool tracking, bool pressed ) : Size

Calculate the requested display size for the check box.

GetContentImageDisplayed ( IDisposable memento ) : bool

Request the calculated display of the image.

GetContentImageRectangle ( IDisposable memento ) : Rectangle

Request the calculated position of the content image.

GetContentLongTextDisplayed ( IDisposable memento ) : bool

Request the calculated display of the long text.

GetContentLongTextRectangle ( IDisposable memento ) : Rectangle

Request the calculated position of the content long text.

GetContentPreferredSize ( ViewLayoutContext context, IPaletteContent palette, IContentValues values, VisualOrientation orientation, PaletteState state, bool composition ) : Size

Get the preferred size for drawing the content.

GetContentShortTextDisplayed ( IDisposable memento ) : bool

Request the calculated display of the short text.

GetContentShortTextRectangle ( IDisposable memento ) : Rectangle

Request the calculated position of the content short text.

GetDropDownButtonPreferredSize ( ViewLayoutContext context, IPalette palette, PaletteState state, VisualOrientation orientation ) : Size

Calculate the requested display size for the drop down button.

GetOutsideBorderPath ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state ) : GraphicsPath

Generate a graphics path that is the outside edge of the border.

GetRadioButtonPreferredSize ( ViewLayoutContext context, IPalette palette, bool enabled, bool checkState, bool tracking, bool pressed ) : Size

Calculate the requested display size for the radio button.

GetTabBackPath ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state, TabBorderStyle tabBorderStyle ) : GraphicsPath

Generate a graphics path that encloses the border and is used when rendering a background to ensure the background does not draw over the border area.

GetTabBorderDisplayPadding ( ViewLayoutContext context, IPaletteBorder palette, PaletteState state, VisualOrientation orientation, TabBorderStyle tabBorderStyle ) : Padding

Gets the padding used to position display elements completely inside border drawing.

GetTabBorderLeftDrawing ( TabBorderStyle tabBorderStyle ) : bool

Gets if the tabs should be drawn from left to right for z-ordering.

GetTabBorderPath ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state, TabBorderStyle tabBorderStyle ) : GraphicsPath

Generate a graphics path that encloses the border itself.

GetTabBorderSpacingGap ( TabBorderStyle tabBorderStyle ) : int

Gets the spacing used to separate each tab border instance.

LayoutContent ( ViewLayoutContext context, Rectangle availableRect, IPaletteContent palette, IContentValues values, VisualOrientation orientation, PaletteState state, bool composition ) : IDisposable

Perform layout calculations on the provided content.

MeasureDragDropDockingGlyph ( RenderDragDockingData dragData, IPaletteDragDrop dragDropPalette, PaletteDragFeedback feedback ) : void

Measure the drag and drop docking glyphs.

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

Gets a renderer for drawing the toolstrips.

Protected Methods

Method Description
DrawIconHelper ( ViewContext context, Icon icon, Rectangle iconRect, VisualOrientation orientation ) : void

Helper routine to draw an image taking into account various properties.

DrawImageHelper ( ViewContext context, Image image, Color remapTransparent, Rectangle imageRect, VisualOrientation orientation, PaletteImageEffect effect, Color remapColor, Color remapNew ) : void

Helper routine to draw an image taking into account various properties.

Method Details

DrawBack() public abstract method

Draw background to fill the specified path.
public abstract DrawBack ( RenderContext context, Rectangle rect, GraphicsPath path, IPaletteBack palette, VisualOrientation orientation, PaletteState state, IDisposable memento ) : IDisposable
context RenderContext Rendering context.
rect System.Drawing.Rectangle Target rectangle that encloses path.
path System.Drawing.Drawing2D.GraphicsPath Graphics path.
palette IPaletteBack Palette used for drawing.
orientation VisualOrientation Visual orientation of the background.
state PaletteState State associated with rendering.
memento IDisposable Cache used for drawing.
return IDisposable

DrawBorder() public abstract method

Draw border on the inside edge of the specified rectangle.
public abstract DrawBorder ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state ) : void
context RenderContext Rendering context.
rect System.Drawing.Rectangle Target rectangle.
palette IPaletteBorder Palette used for drawing.
orientation VisualOrientation Visual orientation of the border.
state PaletteState State associated with rendering.
return void

DrawCheckBox() public abstract method

Perform drawing of a check box.
public abstract DrawCheckBox ( RenderContext context, Rectangle displayRect, IPalette palette, bool enabled, CheckState checkState, bool tracking, bool pressed ) : void
context RenderContext Render context.
displayRect System.Drawing.Rectangle Display area available for drawing.
palette IPalette Palette for sourcing display values.
enabled bool Should check box be displayed as enabled.
checkState CheckState The checked state of the check box.
tracking bool Should check box be displayed as hot tracking.
pressed bool Should check box be displayed as pressed.
return void

DrawContent() public abstract method

Perform draw of content using provided memento.
public abstract DrawContent ( RenderContext context, Rectangle displayRect, IPaletteContent palette, IDisposable memento, VisualOrientation orientation, PaletteState state, bool composition, bool allowFocusRect ) : void
context RenderContext Render context.
displayRect System.Drawing.Rectangle Display area available for drawing.
palette IPaletteContent Content palette details.
memento IDisposable Cached values from layout call.
orientation VisualOrientation Visual orientation of the content.
state PaletteState State associated with rendering.
composition bool Drawing onto a composition element.
allowFocusRect bool Allow drawing of focus rectangle.
return void

DrawDragDropDockingGlyph() public abstract method

Draw a solid area glyph suitable for a drag drop area.
public abstract DrawDragDropDockingGlyph ( RenderContext context, RenderDragDockingData dragData, IPaletteDragDrop dragDropPalette, PaletteDragFeedback feedback ) : void
context RenderContext Render context.
dragData RenderDragDockingData Set of drag docking data.
dragDropPalette IPaletteDragDrop Palette source of drawing values.
feedback PaletteDragFeedback Feedback requested.
return void

DrawDragDropSolidGlyph() public abstract method

Draw a solid area glyph suitable for a drag drop area.
public abstract DrawDragDropSolidGlyph ( RenderContext context, Rectangle drawRect, IPaletteDragDrop dragDropPalette ) : void
context RenderContext Render context.
drawRect System.Drawing.Rectangle Drawing rectangle space.
dragDropPalette IPaletteDragDrop Palette source of drawing values.
return void

DrawDropDownButton() public abstract method

Perform drawing of a drop down button.
public abstract DrawDropDownButton ( RenderContext context, Rectangle displayRect, IPalette palette, PaletteState state, VisualOrientation orientation ) : void
context RenderContext Render context.
displayRect System.Drawing.Rectangle Display area available for drawing.
palette IPalette Palette for sourcing display values.
state PaletteState State for which image size is needed.
orientation VisualOrientation How to orientate the image.
return void

DrawGridErrorGlyph() public abstract method

Draw a grid error glyph.
public abstract DrawGridErrorGlyph ( RenderContext context, Rectangle cellRect, PaletteState state, bool rtl ) : Rectangle
context RenderContext Render context.
cellRect System.Drawing.Rectangle Available drawing rectangle space.
state PaletteState State associated with rendering.
rtl bool Should be drawn from right to left.
return System.Drawing.Rectangle

DrawGridRowGlyph() public abstract method

Draw a grid row glyph.
public abstract DrawGridRowGlyph ( RenderContext context, GridRowGlyph rowGlyph, Rectangle cellRect, IPaletteContent paletteContent, PaletteState state, bool rtl ) : Rectangle
context RenderContext Render context.
rowGlyph GridRowGlyph Row glyph.
cellRect System.Drawing.Rectangle Available drawing rectangle space.
paletteContent IPaletteContent Palette to use for sourcing values.
state PaletteState State associated with rendering.
rtl bool Should be drawn from right to left.
return System.Drawing.Rectangle

DrawGridSortGlyph() public abstract method

Draw a grid sorting direction glyph.
public abstract DrawGridSortGlyph ( RenderContext context, SortOrder sortOrder, Rectangle cellRect, IPaletteContent paletteContent, PaletteState state, bool rtl ) : Rectangle
context RenderContext Render context.
sortOrder SortOrder Sorting order of the glyph.
cellRect System.Drawing.Rectangle Available drawing rectangle space.
paletteContent IPaletteContent Palette to use for sourcing values.
state PaletteState State associated with rendering.
rtl bool Should be drawn from right to left.
return System.Drawing.Rectangle

DrawIconHelper() protected static method

Helper routine to draw an image taking into account various properties.
protected static DrawIconHelper ( ViewContext context, Icon icon, Rectangle iconRect, VisualOrientation orientation ) : void
context ViewContext Rendering context.
icon System.Drawing.Icon Icon to be drawn.
iconRect System.Drawing.Rectangle Destination rectangle.
orientation VisualOrientation Visual orientation.
return void

DrawImageHelper() protected static method

Helper routine to draw an image taking into account various properties.
protected static DrawImageHelper ( ViewContext context, Image image, Color remapTransparent, Rectangle imageRect, VisualOrientation orientation, PaletteImageEffect effect, Color remapColor, Color remapNew ) : void
context ViewContext Rendering context.
image Image Image to be drawn.
remapTransparent Color Color that should become transparent.
imageRect System.Drawing.Rectangle Destination rectangle.
orientation VisualOrientation Visual orientation.
effect PaletteImageEffect Drawing effect.
remapColor Color Image color to remap.
remapNew Color New color for remap.
return void

DrawInputControlDropDownGlyph() public abstract method

Draw a drop down grid appropriate for a input control.
public abstract 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 abstract method

Draw a numeric down button image appropriate for a input control.
public abstract 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 abstract method

Draw a numeric up button image appropriate for a input control.
public abstract 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

DrawRadioButton() public abstract method

Perform drawing of a radio button.
public abstract DrawRadioButton ( RenderContext context, Rectangle displayRect, IPalette palette, bool enabled, bool checkState, bool tracking, bool pressed ) : void
context RenderContext Render context.
displayRect System.Drawing.Rectangle Display area available for drawing.
palette IPalette Palette for sourcing display values.
enabled bool Should radio button be displayed as enabled.
checkState bool Checked state of the radio button.
tracking bool Should radio button be displayed as hot tracking.
pressed bool Should radio button be displayed as pressed.
return void

DrawRibbonApplicationButton() public abstract method

Draw the application button.
public abstract 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

DrawRibbonApplicationTab() public abstract method

Draw the application tab.
public abstract DrawRibbonApplicationTab ( PaletteRibbonShape shape, RenderContext context, Rectangle rect, PaletteState state, Color baseColor1, Color baseColor2, IDisposable memento ) : IDisposable
shape PaletteRibbonShape Ribbon shape.
context RenderContext Rendering context.
rect System.Drawing.Rectangle Target rectangle.
state PaletteState State associated with rendering.
baseColor1 Color Base color1 used for drawing the ribbon tab.
baseColor2 Color Base color2 used for drawing the ribbon tab.
memento IDisposable Cached values to use when drawing.
return IDisposable

DrawRibbonBack() public abstract method

Draw the background of a ribbon element.
public abstract 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

DrawRibbonClusterEdge() public abstract method

Perform drawing of a ribbon cluster edge.
public abstract DrawRibbonClusterEdge ( PaletteRibbonShape shape, RenderContext context, Rectangle displayRect, IPaletteBack paletteBack, PaletteState state ) : void
shape PaletteRibbonShape Ribbon shape.
context RenderContext Render context.
displayRect System.Drawing.Rectangle Display area available for drawing.
paletteBack IPaletteBack Palette used for recovering drawing details.
state PaletteState State associated with rendering.
return void

DrawRibbonContextArrow() public abstract method

Perform drawing of a ribbon context arrow glyph.
public abstract DrawRibbonContextArrow ( 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

DrawRibbonDialogBoxLauncher() public abstract method

Perform drawing of a ribbon dialog box launcher glyph.
public abstract DrawRibbonDialogBoxLauncher ( 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

DrawRibbonDropArrow() public abstract method

Perform drawing of a ribbon drop arrow glyph.
public abstract 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

DrawRibbonGroupSeparator() public abstract method

Perform drawing of a ribbon group separator.
public abstract DrawRibbonGroupSeparator ( 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

DrawRibbonOverflow() public abstract method

Perform drawing of a ribbon overflow image.
public abstract DrawRibbonOverflow ( 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

DrawRibbonTabContextTitle() public abstract method

Draw a context ribbon tab title.
public abstract 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 values to use when drawing.
return IDisposable

DrawSeparator() public abstract method

Perform drawing of a separator glyph.
public abstract DrawSeparator ( RenderContext context, Rectangle displayRect, IPaletteBack paletteBack, IPaletteBorder paletteBorder, Orientation orientation, PaletteState state, bool canMove ) : void
context RenderContext Render context.
displayRect System.Drawing.Rectangle Display area available for drawing.
paletteBack IPaletteBack Background palette details.
paletteBorder IPaletteBorder Border palette details.
orientation Orientation Visual orientation of the content.
state PaletteState State associated with rendering.
canMove bool Can the separator be moved.
return void

DrawTabBorder() public abstract method

Draw border on the inside edge of the specified rectangle.
public abstract DrawTabBorder ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state, TabBorderStyle tabBorderStyle ) : void
context RenderContext Rendering context.
rect System.Drawing.Rectangle Target rectangle.
palette IPaletteBorder Palette used for drawing.
orientation VisualOrientation Visual orientation of the border.
state PaletteState State associated with rendering.
tabBorderStyle TabBorderStyle Style of tab border.
return void

DrawTrackGlyph() public abstract method

Draw the track bar track glyph.
public abstract DrawTrackGlyph ( RenderContext context, PaletteState state, IPaletteElementColor elementPalette, Rectangle drawRect, Orientation orientation, bool volumeControl ) : void
context RenderContext Render context.
state PaletteState Element state.
elementPalette IPaletteElementColor Source of palette colors.
drawRect System.Drawing.Rectangle Drawing rectangle that should contain the track.
orientation Orientation Drawing orientation.
volumeControl bool Drawing as a volume control or standard slider.
return void

DrawTrackPositionGlyph() public abstract method

Draw the track bar position glyph.
public abstract DrawTrackPositionGlyph ( RenderContext context, PaletteState state, IPaletteElementColor elementPalette, Rectangle drawRect, Orientation orientation, TickStyle tickStyle ) : void
context RenderContext Render context.
state PaletteState Element state.
elementPalette IPaletteElementColor Source of palette colors.
drawRect System.Drawing.Rectangle Drawing rectangle that should contain the track.
orientation Orientation Drawing orientation.
tickStyle TickStyle Tick marks that surround the position.
return void

DrawTrackTicksGlyph() public abstract method

Draw the track bar ticks glyph.
public abstract DrawTrackTicksGlyph ( RenderContext context, PaletteState state, IPaletteElementColor elementPalette, Rectangle drawRect, Orientation orientation, bool topRight, Size positionSize, int minimum, int maximum, int frequency ) : void
context RenderContext Render context.
state PaletteState Element state.
elementPalette IPaletteElementColor Source of palette colors.
drawRect System.Drawing.Rectangle Drawing rectangle that should contain ticks.
orientation Orientation Orientation of the drawing area.
topRight bool Drawing on the topRight or the bottomLeft.
positionSize System.Drawing.Size Size of the position indicator.
minimum int First value.
maximum int Last value.
frequency int How often ticks are drawn.
return void

EvalTransparentPaint() public abstract method

Evaluate if transparent painting is needed for background or border palettes.
public abstract EvalTransparentPaint ( IPaletteBack paletteBack, IPaletteBorder paletteBorder, PaletteState state ) : bool
paletteBack IPaletteBack Background palette to test.
paletteBorder IPaletteBorder Background palette to test.
state PaletteState Element state associated with palette.
return bool

EvalTransparentPaint() public abstract method

Evaluate if transparent painting is needed for background palette.
public abstract EvalTransparentPaint ( IPaletteBack paletteBack, PaletteState state ) : bool
paletteBack IPaletteBack Background palette to test.
state PaletteState Element state associated with palette.
return bool

GetBackPath() public abstract method

Generate a graphics path that encloses the border and is used when rendering a background to ensure the background does not draw over the border area.
public abstract GetBackPath ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state ) : GraphicsPath
context RenderContext Rendering context.
rect System.Drawing.Rectangle Target rectangle.
palette IPaletteBorder Palette used for drawing.
orientation VisualOrientation Visual orientation of the border.
state PaletteState State associated with rendering.
return System.Drawing.Drawing2D.GraphicsPath

GetBorderDisplayPadding() public abstract method

Gets the padding used to position display elements completely inside border drawing.
public abstract GetBorderDisplayPadding ( IPaletteBorder palette, PaletteState state, VisualOrientation orientation ) : Padding
palette IPaletteBorder Palette used for drawing.
state PaletteState State associated with rendering.
orientation VisualOrientation Visual orientation of the border.
return Padding

GetBorderPath() public abstract method

Generate a graphics path that is in the middle of the border.
public abstract GetBorderPath ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state ) : GraphicsPath
context RenderContext Rendering context.
rect System.Drawing.Rectangle Target rectangle.
palette IPaletteBorder Palette used for drawing.
orientation VisualOrientation Visual orientation of the border.
state PaletteState State associated with rendering.
return System.Drawing.Drawing2D.GraphicsPath

GetBorderRawPadding() public abstract method

Gets the raw padding used per edge of the border.
public abstract GetBorderRawPadding ( IPaletteBorder palette, PaletteState state, VisualOrientation orientation ) : Padding
palette IPaletteBorder Palette used for drawing.
state PaletteState State associated with rendering.
orientation VisualOrientation Visual orientation of the border.
return Padding

GetCheckBoxPreferredSize() public abstract method

Calculate the requested display size for the check box.
public abstract GetCheckBoxPreferredSize ( ViewLayoutContext context, IPalette palette, bool enabled, CheckState checkState, bool tracking, bool pressed ) : Size
context ViewLayoutContext Render context.
palette IPalette Palette for sourcing display values.
enabled bool Should check box be displayed as enabled.
checkState CheckState The checked state of the check box.
tracking bool Should check box be displayed as hot tracking.
pressed bool Should check box be displayed as pressed.
return System.Drawing.Size

GetContentImageDisplayed() public abstract method

Request the calculated display of the image.
public abstract GetContentImageDisplayed ( IDisposable memento ) : bool
memento IDisposable Cached values from layout call.
return bool

GetContentImageRectangle() public abstract method

Request the calculated position of the content image.
public abstract GetContentImageRectangle ( IDisposable memento ) : Rectangle
memento IDisposable Cached values from layout call.
return System.Drawing.Rectangle

GetContentLongTextDisplayed() public abstract method

Request the calculated display of the long text.
public abstract GetContentLongTextDisplayed ( IDisposable memento ) : bool
memento IDisposable Cached values from layout call.
return bool

GetContentLongTextRectangle() public abstract method

Request the calculated position of the content long text.
public abstract GetContentLongTextRectangle ( IDisposable memento ) : Rectangle
memento IDisposable Cached values from layout call.
return System.Drawing.Rectangle

GetContentPreferredSize() public abstract method

Get the preferred size for drawing the content.
public abstract GetContentPreferredSize ( ViewLayoutContext context, IPaletteContent palette, IContentValues values, VisualOrientation orientation, PaletteState state, bool composition ) : Size
context ViewLayoutContext Layout context.
palette IPaletteContent Content palette details.
values IContentValues Content values.
orientation VisualOrientation Visual orientation of the content.
state PaletteState State associated with rendering.
composition bool Drawing onto a composition element.
return System.Drawing.Size

GetContentShortTextDisplayed() public abstract method

Request the calculated display of the short text.
public abstract GetContentShortTextDisplayed ( IDisposable memento ) : bool
memento IDisposable Cached values from layout call.
return bool

GetContentShortTextRectangle() public abstract method

Request the calculated position of the content short text.
public abstract GetContentShortTextRectangle ( IDisposable memento ) : Rectangle
memento IDisposable Cached values from layout call.
return System.Drawing.Rectangle

GetDropDownButtonPreferredSize() public abstract method

Calculate the requested display size for the drop down button.
public abstract GetDropDownButtonPreferredSize ( ViewLayoutContext context, IPalette palette, PaletteState state, VisualOrientation orientation ) : Size
context ViewLayoutContext Render context.
palette IPalette Palette for sourcing display values.
state PaletteState State for which image size is needed.
orientation VisualOrientation How to orientate the image.
return System.Drawing.Size

GetOutsideBorderPath() public abstract method

Generate a graphics path that is the outside edge of the border.
public abstract GetOutsideBorderPath ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state ) : GraphicsPath
context RenderContext Rendering context.
rect System.Drawing.Rectangle Target rectangle.
palette IPaletteBorder Palette used for drawing.
orientation VisualOrientation Visual orientation of the border.
state PaletteState State associated with rendering.
return System.Drawing.Drawing2D.GraphicsPath

GetRadioButtonPreferredSize() public abstract method

Calculate the requested display size for the radio button.
public abstract GetRadioButtonPreferredSize ( ViewLayoutContext context, IPalette palette, bool enabled, bool checkState, bool tracking, bool pressed ) : Size
context ViewLayoutContext Render context.
palette IPalette Palette for sourcing display values.
enabled bool Should check box be displayed as enabled.
checkState bool Checked state of the radio button.
tracking bool Should check box be displayed as hot tracking.
pressed bool Should check box be displayed as pressed.
return System.Drawing.Size

GetTabBackPath() public abstract method

Generate a graphics path that encloses the border and is used when rendering a background to ensure the background does not draw over the border area.
public abstract GetTabBackPath ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state, TabBorderStyle tabBorderStyle ) : GraphicsPath
context RenderContext Rendering context.
rect System.Drawing.Rectangle Target rectangle.
palette IPaletteBorder Palette used for drawing.
orientation VisualOrientation Visual orientation of the border.
state PaletteState State associated with rendering.
tabBorderStyle TabBorderStyle Style of tab border.
return System.Drawing.Drawing2D.GraphicsPath

GetTabBorderDisplayPadding() public abstract method

Gets the padding used to position display elements completely inside border drawing.
public abstract GetTabBorderDisplayPadding ( ViewLayoutContext context, IPaletteBorder palette, PaletteState state, VisualOrientation orientation, TabBorderStyle tabBorderStyle ) : Padding
context ViewLayoutContext Layout context.
palette IPaletteBorder Palette used for drawing.
state PaletteState State associated with rendering.
orientation VisualOrientation Visual orientation of the border.
tabBorderStyle TabBorderStyle Style of tab border.
return Padding

GetTabBorderLeftDrawing() public abstract method

Gets if the tabs should be drawn from left to right for z-ordering.
public abstract GetTabBorderLeftDrawing ( TabBorderStyle tabBorderStyle ) : bool
tabBorderStyle TabBorderStyle Style of tab border.
return bool

GetTabBorderPath() public abstract method

Generate a graphics path that encloses the border itself.
public abstract GetTabBorderPath ( RenderContext context, Rectangle rect, IPaletteBorder palette, VisualOrientation orientation, PaletteState state, TabBorderStyle tabBorderStyle ) : GraphicsPath
context RenderContext Rendering context.
rect System.Drawing.Rectangle Target rectangle.
palette IPaletteBorder Palette used for drawing.
orientation VisualOrientation Visual orientation of the border.
state PaletteState State associated with rendering.
tabBorderStyle TabBorderStyle Style of tab border.
return System.Drawing.Drawing2D.GraphicsPath

GetTabBorderSpacingGap() public abstract method

Gets the spacing used to separate each tab border instance.
public abstract GetTabBorderSpacingGap ( TabBorderStyle tabBorderStyle ) : int
tabBorderStyle TabBorderStyle Style of tab border.
return int

LayoutContent() public abstract method

Perform layout calculations on the provided content.
public abstract LayoutContent ( ViewLayoutContext context, Rectangle availableRect, IPaletteContent palette, IContentValues values, VisualOrientation orientation, PaletteState state, bool composition ) : IDisposable
context ViewLayoutContext Layout context.
availableRect System.Drawing.Rectangle Space available for laying out.
palette IPaletteContent Content palette details.
values IContentValues Content values.
orientation VisualOrientation Visual orientation of the content.
state PaletteState State associated with rendering.
composition bool Drawing onto a composition element.
return IDisposable

MeasureDragDropDockingGlyph() public abstract method

Measure the drag and drop docking glyphs.
public abstract MeasureDragDropDockingGlyph ( RenderDragDockingData dragData, IPaletteDragDrop dragDropPalette, PaletteDragFeedback feedback ) : void
dragData RenderDragDockingData Set of drag docking data.
dragDropPalette IPaletteDragDrop Palette source of drawing values.
feedback PaletteDragFeedback Feedback requested.
return void

RenderToolStrip() public abstract method

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