wx.GridCtrl.Extended.Renderers.Renderer Interface Reference

Inheritance diagram for wx.GridCtrl.Extended.Renderers.Renderer:

wx.GridCtrl.Extended.Renderers.Standard2DRenderer wx.GridCtrl.Extended.Renderers.Standard3DRenderer

List of all members.

Public Member Functions

void Draw (CellAttr attr, DC dc, Rectangle rect, object dataObject, PresentationMode mode)
Size GetBestSize (CellAttr attr, DC dc, object dataObject)
Rectangle GetErrorHandleHitregion (CellAttr attr, DC dc, Rectangle rect, object dataObject, PresentationMode mode)

Properties

Border BorderlineBetweenCells [get]


Detailed Description

Base class of renderers that fit exclusively to the extended grid.

Member Function Documentation

void wx.GridCtrl.Extended.Renderers.Renderer.Draw ( CellAttr  attr,
DC  dc,
Rectangle  rect,
object  dataObject,
PresentationMode  mode 
)

Implementations of this method draw a cell of an extended grid containing the provided data within the specified rectangle.

Parameters:
attr The attributes that shall be used to display the cell.
dc The graphics device context that shall be used for drawing.
rect The rectangle that shall be used to render the cell. This might be smaller than the best size.
dataObject The data object that shall be displayed.
mode Specifies the presentation mode, e.g. whether this cell is selected or not.

Implemented in wx.GridCtrl.Extended.Renderers.Standard2DRenderer, and wx.GridCtrl.Extended.Renderers.Standard3DRenderer.

Size wx.GridCtrl.Extended.Renderers.Renderer.GetBestSize ( CellAttr  attr,
DC  dc,
object  dataObject 
)

Computes and returns the size that is desired to render the given object using the specified cell attributes. The grid may ask to draw the cell into a smaller rectangle but usually the grid will turn on scrolling to provide at least this size for drawing.

Parameters:
attr The attributes that shall be used to render the object.
dataObject The data object that shall be rendered.
dc The graphics device context that shall be used for drawing.
Returns:
Returns the smallest size that ensures with Draw() a full display of the cell data.

Implemented in wx.GridCtrl.Extended.Renderers.Standard2DRenderer, and wx.GridCtrl.Extended.Renderers.Standard3DRenderer.

Rectangle wx.GridCtrl.Extended.Renderers.Renderer.GetErrorHandleHitregion ( CellAttr  attr,
DC  dc,
Rectangle  rect,
object  dataObject,
PresentationMode  mode 
)

Assume, that Draw() rendered a cell using the provided attributes on the provided device context presenting the provided data object. This method shall return the smallest rectangle containing the error handle. This is required for hit tests - e.g. to trigger the display of a tool tip presentign an error message. the result must, of course, be contained in argument rect.

Parameters:
attr The attributes that shall be used to render the object.
rect The rectangle that shall be used to render the cell. This might be smaller than the best size.
dataObject The data object that shall be rendered.
mode Specifies the presentation mode, e.g. whether this cell is selected or not.
dc The graphics device context that shall be used for drawing.
Returns:
The smallest rectangle containing the error handle.

Implemented in wx.GridCtrl.Extended.Renderers.Standard2DRenderer, and wx.GridCtrl.Extended.Renderers.Standard3DRenderer.


Property Documentation

Border wx.GridCtrl.Extended.Renderers.Renderer.BorderlineBetweenCells [get]

Specifies which kind of border shall be painted by the grid control to separate cells.

Implemented in wx.GridCtrl.Extended.Renderers.Standard2DRenderer, and wx.GridCtrl.Extended.Renderers.Standard3DRenderer.


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads