Displaying 1 result from an estimated 1 matches for "__renderers".
2007 Jun 01
0
[1044] trunk/wxruby2: Special memory management for Wx::Grid
...# the GC mark phase and so preserved.
+ #
+ # For most classes we handle GC on the SWIG side but honestly it''d be
+ # a whole lot more messy coding...
+ wx_init = self.instance_method(:initialize)
+ define_method(:initialize) do | *args |
+ wx_init.bind(self).call(*args)
+
+ @__renderers = {}
+ @__editors = {}
+ end
+
+ wx_set_cell_renderer = self.instance_method(:set_cell_renderer)
+ define_method(:set_cell_renderer) do | row, col, rendr |
+ wx_set_cell_renderer.bind(self).call(row, col, rendr)
+ @__renderers[ [row, col] ] = rendr
+ end
+
+ wx_set_default_renderer...