Hey All, I''ve just commited rev 1505, which now includes a GraphicsContext demo, just in time for a release. *wipes forehead* So far, it''s looking pretty good. BTW Alex, another bug came up while working with GraphicsContext, but wasn''t something as major that could prevent me from completing the demo. GraphicsContext#draw_lines(size_t n, Point2Double points, Integer fillStyle) Need another typemap wrapper for Point2Double. And I''m thinking that it should be an 2d array of sorts. Points represented by [x,y], and array of them, EG: [ [first_x,first_y], [second_x,second_y], [third_x,third_y], ....etc..... ....etc..... ] And proabbly a more ruby-ish way to do it, is to drop size_t, and just fill that info out from the length of the array. Ultimately creating GraphicsContext#draw_lines(Array points, Integer fillStyle). Just a suggestion. So far, that''s all that I have found. AUI is working beautifully now, without having to run GC.disable in it, with the newest patches. L8ers, -- Mario Steele http://www.trilake.net http://www.ruby-im.net http://rubyforge.org/projects/wxruby/ http://rubyforge.org/projects/wxride/ http://rubyforge.org/projects/vwmc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-development/attachments/20080112/f67b633c/attachment.html
Mario Steele wrote:> I''ve just commited rev 1505, which now includes a GraphicsContext > demo, just in time for a release. *wipes forehead* So far, it''s > looking pretty good.Nice one, looks good thanks. Just got back from the weekend and will try it out later. Looking to tag tomorrow.> BTW Alex, another bug came up while working with GraphicsContext, but > wasn''t something as major that could prevent me from completing the > demo. GraphicsContext#draw_lines(size_t n, Point2Double points, > Integer fillStyle)...> And proabbly a more ruby-ish way to do it, is to drop size_t, and just > fill that info out from the length of the array. Ultimately creating > GraphicsContext#draw_lines(Array points, Integer fillStyle). Just a > suggestion.Yep, there''s quite a few methods of this sort already where an Ruby array is converted to a length + array argument. A good model is that used in swig/typemap.i (int n, wxPoint points[]); I''ll try and replicate for GDC.> So far, that''s all that I have found. AUI is working beautifully now, > without having to run GC.disable in it, with the newest patches.Great, I''m glad we tracked that one down. It was a potentially ugly bug. cheers alex
Apparently Analagous Threads
- [ wxruby-Bugs-17108 ] Checkboxes not showing in GraphicsContext example
- CrossPlatform problem with GraphicsContext sample
- [ wxruby-Bugs-17013 ] Notebook#get_current_page
- [LLVMdev] "equivalent" .ll files diverge after optimizations are applied
- [LLVMdev] "equivalent" .ll files diverge after optimizations are applied