Phoenix Logo

phoenix_title wx.lib.mixins.gridlabelrenderer.GridLabelRenderer

Base class for row, col or corner label renderers.


class_hierarchy Class Hierarchy

Inheritance diagram for class GridLabelRenderer:


method_summary Methods Summary

Draw Override this method in derived classes to do the actual
DrawBorder Draw a standard border around the label, to give a simple 3D
DrawText Draw the label’s text in the rectangle, using the alignment

api Class API



class GridLabelRenderer(object)

Base class for row, col or corner label renderers.


Methods



Draw(self, grid, dc, rect, row_or_col)

Override this method in derived classes to do the actual drawing of the label.



DrawBorder(self, grid, dc, rect)

Draw a standard border around the label, to give a simple 3D effect like the stock wx.grid.Grid labels do.



DrawText(self, grid, dc, rect, text, hAlign, vAlign)

Draw the label’s text in the rectangle, using the alignment flags, and the grid’s specified label font and color.