wx.GridCtrl.Extended.Renderers.Standard2DRenderer Class Reference

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

wx.GridCtrl.Extended.Renderers.Renderer

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)
 Standard2DRenderer ()

Properties

Border BorderlineBetweenCells [get]


Detailed Description

A renderer displaying a string representation of a grid cell value in 2 dimensional manner using background colour for the cell background and foreground colour for the text.

Constructor & Destructor Documentation

wx.GridCtrl.Extended.Renderers.Standard2DRenderer.Standard2DRenderer (  ) 

Creates an instance.


Member Function Documentation

void wx.GridCtrl.Extended.Renderers.Standard2DRenderer.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.

Implements wx.GridCtrl.Extended.Renderers.Renderer.

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

The text extend of the string representation of the data value +2 pixel in height and width.

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.

Implements wx.GridCtrl.Extended.Renderers.Renderer.

Rectangle wx.GridCtrl.Extended.Renderers.Standard2DRenderer.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.

Implements wx.GridCtrl.Extended.Renderers.Renderer.


Property Documentation

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

This renderer requires the grid to draw a border between the cells.

Implements wx.GridCtrl.Extended.Renderers.Renderer.


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