C# Class BrightIdeasSoftware.CheckStateRenderer

This renderer draws just a checkbox to match the check state of our model object.
Inheritance: BaseRenderer
Show file Open project: soywiz/cspspemu

Public Methods

Method Description
Render ( Graphics g, Rectangle r ) : void

Draw our cell

Protected Methods

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

Handle the GetEditRectangle request

HandleHitTest ( Graphics g, BrightIdeasSoftware.OlvListViewHitTestInfo hti, int x, int y ) : void

Handle the HitTest request

Method Details

HandleGetEditRectangle() protected method

Handle the GetEditRectangle request
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

HandleHitTest() protected method

Handle the HitTest request
protected HandleHitTest ( Graphics g, BrightIdeasSoftware.OlvListViewHitTestInfo hti, int x, int y ) : void
g System.Drawing.Graphics
hti BrightIdeasSoftware.OlvListViewHitTestInfo
x int
y int
return void

Render() public method

Draw our cell
public Render ( Graphics g, Rectangle r ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
return void