C# Class BrightIdeasSoftware.HighlightTextRenderer

This renderer highlights substrings that match a given text filter.
Inheritance: BaseRenderer
Show file Open project: soywiz/cspspemu Class Usage Examples

Private Properties

Property Type Description
HighlightTextRenderer System

Public Methods

Method Description
HighlightTextRenderer ( ) : System

Create a HighlightTextRenderer

HighlightTextRenderer ( TextMatchFilter filter ) : System

Create a HighlightTextRenderer

Protected Methods

Method Description
DrawGdiPlusTextHighlighting ( Graphics g, Rectangle r, string txt ) : void

Draw the highlighted text using GDI+

DrawGdiTextHighlighting ( Graphics g, Rectangle r, string txt ) : void

Draw the highlighted text using GDI

DrawSubstringFrame ( Graphics g, float x, float y, float width, float height ) : void

Draw an indication around the given frame that shows a text match

DrawTextGdi ( Graphics g, Rectangle r, string txt ) : void

Draw text using GDI

DrawTextGdiPlus ( Graphics g, Rectangle r, string txt ) : void

Draw the text using GDI+

GetRoundedRect ( RectangleF rect, float diameter ) : GraphicsPath

Return a GraphicPath that is a round cornered rectangle

If I could rely on people using C# 3.0+, this should be an extension method of GraphicsPath.

GetRoundedRect ( float x, float y, float width, float height, float diameter ) : GraphicsPath

Return a GraphicPath that is a round cornered rectangle

If I could rely on people using C# 3.0+, this should be an extension method of GraphicsPath.

HandleGetEditRectangle ( Graphics g, Rectangle cellBounds, BrightIdeasSoftware.OLVListItem item, int subItemIndex, Size preferredSize ) : Rectangle

Handle a HitTest request after all state information has been initialized

Private Methods

Method Description
HighlightTextRenderer ( string text ) : System

Method Details

DrawGdiPlusTextHighlighting() protected method

Draw the highlighted text using GDI+
protected DrawGdiPlusTextHighlighting ( Graphics g, Rectangle r, string txt ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
txt string
return void

DrawGdiTextHighlighting() protected method

Draw the highlighted text using GDI
protected DrawGdiTextHighlighting ( Graphics g, Rectangle r, string txt ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
txt string
return void

DrawSubstringFrame() protected method

Draw an indication around the given frame that shows a text match
protected DrawSubstringFrame ( Graphics g, float x, float y, float width, float height ) : void
g System.Drawing.Graphics
x float
y float
width float
height float
return void

DrawTextGdi() protected method

Draw text using GDI
protected DrawTextGdi ( Graphics g, Rectangle r, string txt ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
txt string
return void

DrawTextGdiPlus() protected method

Draw the text using GDI+
protected DrawTextGdiPlus ( Graphics g, Rectangle r, string txt ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
txt string
return void

GetRoundedRect() protected method

Return a GraphicPath that is a round cornered rectangle
If I could rely on people using C# 3.0+, this should be an extension method of GraphicsPath.
protected GetRoundedRect ( RectangleF rect, float diameter ) : GraphicsPath
rect System.Drawing.RectangleF The rectangle
diameter float The diameter of the corners
return System.Drawing.Drawing2D.GraphicsPath

GetRoundedRect() protected method

Return a GraphicPath that is a round cornered rectangle
If I could rely on people using C# 3.0+, this should be an extension method of GraphicsPath.
protected GetRoundedRect ( float x, float y, float width, float height, float diameter ) : GraphicsPath
x float
y float
width float
height float
diameter float
return System.Drawing.Drawing2D.GraphicsPath

HandleGetEditRectangle() protected method

Handle a HitTest request after all state information has been initialized
protected HandleGetEditRectangle ( Graphics g, Rectangle cellBounds, BrightIdeasSoftware.OLVListItem item, int subItemIndex, Size preferredSize ) : Rectangle
g System.Drawing.Graphics
cellBounds System.Drawing.Rectangle
item BrightIdeasSoftware.OLVListItem
subItemIndex int
preferredSize System.Drawing.Size
return System.Drawing.Rectangle

HighlightTextRenderer() public method

Create a HighlightTextRenderer
public HighlightTextRenderer ( ) : System
return System

HighlightTextRenderer() public method

Create a HighlightTextRenderer
public HighlightTextRenderer ( TextMatchFilter filter ) : System
filter TextMatchFilter
return System