C# Class BrightIdeasSoftware.AbstractRenderer

Inheritance: System.ComponentModel.Component, IRenderer
Show file Open project: soywiz/cspspemu

Public Methods

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

When the value in the given cell is to be edited, where should the edit rectangle be placed?

HitTest ( BrightIdeasSoftware.OlvListViewHitTestInfo hti, int x, int y ) : void

What is under the given point?

This method should only alter HitTestLocation and/or UserData.

RenderItem ( DrawListViewItemEventArgs e, Graphics g, Rectangle itemBounds, object rowObject ) : bool

Render the whole item within an ObjectListView. This is only used in non-Details views.

RenderSubItem ( DrawListViewSubItemEventArgs e, Graphics g, Rectangle cellBounds, object rowObject ) : bool

Render one cell within an ObjectListView when it is in Details mode.

Method Details

GetEditRectangle() public method

When the value in the given cell is to be edited, where should the edit rectangle be placed?
public GetEditRectangle ( 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

HitTest() public method

What is under the given point?
This method should only alter HitTestLocation and/or UserData.
public HitTest ( BrightIdeasSoftware.OlvListViewHitTestInfo hti, int x, int y ) : void
hti BrightIdeasSoftware.OlvListViewHitTestInfo
x int x co-ordinate
y int y co-ordinate
return void

RenderItem() public method

Render the whole item within an ObjectListView. This is only used in non-Details views.
public RenderItem ( DrawListViewItemEventArgs e, Graphics g, Rectangle itemBounds, object rowObject ) : bool
e System.Windows.Forms.DrawListViewItemEventArgs The event
g System.Drawing.Graphics A Graphics for rendering
itemBounds System.Drawing.Rectangle The bounds of the item
rowObject object The model object to be drawn
return bool

RenderSubItem() public method

Render one cell within an ObjectListView when it is in Details mode.
public RenderSubItem ( DrawListViewSubItemEventArgs e, Graphics g, Rectangle cellBounds, object rowObject ) : bool
e System.Windows.Forms.DrawListViewSubItemEventArgs The event
g System.Drawing.Graphics A Graphics for rendering
cellBounds System.Drawing.Rectangle The bounds of the cell
rowObject object The model object to be drawn
return bool