noreply at rubyforge.org
2007-Jan-08 01:07 UTC
[Wxruby-development] [ wxruby-Feature Requests-7657 ] Help re-use Font, Brush, Pen (similar to wxBrushList)
Feature Requests item #7657, was opened at 2007-01-08 01:07 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=221&aid=7657&group_id=35 Category: API improvement Group: None Status: Open Priority: 2 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: Help re-use Font, Brush, Pen (similar to wxBrushList) Initial Comment: wxBrushList, wxPenList and wxFontList keep track of the relevant type of objects that have been created, and allow the programmer to retrieve a previously-created instance rather than creating a new one with the same parameters. This is in the interests of speed and efficiency. There is no point in porting these List classes directly to Ruby, but the functionality could easily be emulated by memoizing calls to the Pen, Brush and Font constructors. Using a hash keyed on the passed-in arguments would be a simple way of doing this. Benchmark to see if it''s worth it. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=221&aid=7657&group_id=35
Apparently Analagous Threads
- Community help: creating Syntax-Highlighter-brush for R and WordPress.com
- [ wxruby-Feature Requests-17086 ] Add event handling for HtmlWindow
- [ wxruby-Feature Requests-7343 ] Add TextUrlEvent
- [ wxruby-Feature Requests-7460 ] Add tutorial/overviews to main documentation
- [ wxruby-Feature Requests-20905 ] Add MapXXX methods to Wx::Printout