C# Class BrightIdeasSoftware.AbstractRenderer

Inheritance: System.ComponentModel.Component, IRenderer
Afficher le fichier Open project: soywiz/cspspemu

Méthodes publiques

Méthode 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 méthode

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
Résultat System.Drawing.Rectangle

HitTest() public méthode

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
Résultat void

RenderItem() public méthode

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
Résultat bool

RenderSubItem() public méthode

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
Résultat bool