Base class for wx.propgrid.PropertyGrid cell renderers.
Paints property category selection rectangle. |
|
Utility to draw editor’s value, or vertically aligned text if editor is |
|
Utility to draw vertically centered text. |
|
Returns size of the image in front of the editable area. |
|
Utility to be called after drawing is done, to revert whatever changes |
|
Utility to render cell bitmap and set text colour plus bg brush colour. |
|
Returns |
Possible constructors:
PGCellRenderer()
Base class for PropertyGrid cell renderers.
Paints property category selection rectangle.
dc (wx.DC) –
x (int) –
y (int) –
w (int) –
h (int) –
Utility to draw editor’s value, or vertically aligned text if editor is None
.
dc (wx.DC) –
rect (wx.Rect) –
xOffset (int) –
text (string) –
property (wx.propgrid.PGProperty) –
editor (wx.propgrid.PGEditor) –
Utility to draw vertically centered text.
Returns size of the image in front of the editable area.
property (wx.propgrid.PGProperty) –
column (int) –
item (int) –
Size
Note
If property is None
, then this call is for a custom value. In that case the item is index to wx.propgrid.PropertyGrid’s custom values.
Utility to be called after drawing is done, to revert whatever changes PreDrawCell
did.
dc (wx.DC) –
propGrid (wx.propgrid.PropertyGrid) –
cell (wx.propgrid.PGCell) –
flags (int) – Same as those passed to PreDrawCell
.
Utility to render cell bitmap and set text colour plus bg brush colour.
dc (wx.DC) –
rect (wx.Rect) –
cell (wx.propgrid.PGCell) –
flags (int) –
int
Returns image width, which, for instance, can be passed to DrawText.
Returns True
if rendered something in the foreground (text or bitmap.
dc (wx.DC) –
rect (wx.Rect) –
propertyGrid (wx.propgrid.PropertyGrid) –
property (wx.propgrid.PGProperty) –
column (int) –
item (int) –
flags (int) –
bool